Skip to content
OpenAdvisories
Medium ALSA-2021:4150 2 CVEs

Moderate: python36:3.6 security and bug fix update

Published Nov 9, 2021 · Updated Nov 2, 2026

Summary

Python is an interpreted, interactive, object-oriented programming language, which includes modules, classes, exceptions, very high level dynamic data types and dynamic typing. Python supports interfaces to many system calls and libraries, as well as to various windowing systems.

Security Fix(es):

* python-pygments: Infinite loop in SML lexer may lead to DoS (CVE-2021-20270)

* python-pygments: ReDoS in multiple lexers (CVE-2021-27291)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.

Fixed packages 44

ReleasePackageFixed in
AlmaLinux · 8 python-nose-docs 1.3.7-31.module_el8.6.0+2781+fed64c13
AlmaLinux · 8 python-nose-docs 1.3.7-31.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python-pymongo-doc 3.7.0-1.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python-pymongo-doc 3.7.0-1.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python-sqlalchemy-doc 1.3.2-2.module_el8.6.0+2781+fed64c13
AlmaLinux · 8 python-sqlalchemy-doc 1.3.2-2.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python-virtualenv-doc 15.1.0-21.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python-virtualenv-doc 15.1.0-21.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-bson 3.7.0-1.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-bson 3.7.0-1.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-distro 1.4.0-2.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-distro 1.4.0-2.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-docs 3.6.7-2.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-docs 3.6.7-2.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-docutils 0.14-12.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-docutils 0.14-12.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-nose 1.3.7-31.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-nose 1.3.7-31.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-pygments 2.2.0-22.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-pygments 2.2.0-22.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-pymongo 3.7.0-1.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-pymongo 3.7.0-1.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-pymongo-gridfs 3.7.0-1.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-pymongo-gridfs 3.7.0-1.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-PyMySQL 0.10.1-2.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-PyMySQL 0.10.1-2.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-scipy 1.0.0-21.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-scipy 1.0.0-21.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-sqlalchemy 1.3.2-2.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-sqlalchemy 1.3.2-2.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-virtualenv 15.1.0-21.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-virtualenv 15.1.0-21.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-wheel 1:0.31.1-3.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-wheel 1:0.31.1-3.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python3-wheel-wheel 1:0.31.1-3.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python3-wheel-wheel 1:0.31.1-3.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python36 3.6.8-38.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python36 3.6.8-38.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python36-debug 3.6.8-38.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python36-debug 3.6.8-38.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python36-devel 3.6.8-38.module_el8.5.0+2569+5c5719bc
AlmaLinux · 8 python36-devel 3.6.8-38.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python36-rpm-macros 3.6.8-38.module_el8.5.0+135+5ce32bc4
AlmaLinux · 8 python36-rpm-macros 3.6.8-38.module_el8.5.0+2569+5c5719bc

Vulnerabilities 2

  • High 7.5

    Infinite Loop in Pygments

    An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the "exception" keyword.

  • High 7.5

    Pygments vulnerable to Regular Expression Denial of Service (ReDoS)

    In pygments 1.1+, fixed in 2.7.4, the lexers used to parse programming languages rely heavily on regular expressions. Some of the regular expressions have exponential or cubic worst-case complexity and are vulnerable to ReDoS. By crafting malicious input, an …

References

  • report
    https://bugzilla.redhat.com/1917971
  • report
    https://bugzilla.redhat.com/1922136
  • report
    https://bugzilla.redhat.com/1934199
  • report
    https://bugzilla.redhat.com/1940603
  • advisory
    https://errata.almalinux.org/8/ALSA-2021-4150.html
  • report
    https://vulners.com/cve/CVE-2021-20270
  • report
    https://vulners.com/cve/CVE-2021-27291