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

Moderate: python36:3.6 security and bug fix update

Published Nov 9, 2021 · Updated Feb 5, 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 Rocky Linux 8.5 Release Notes linked from the References section.

Fixed packages 17

ReleasePackageFixed in
Rocky Linux · 8 python-distro 0:1.4.0-2.module+el8.3.0+120+426d8baf
Rocky Linux · 8 python-docs 0:3.6.7-2.module+el8.4.0+597+ddf0ddea
Rocky Linux · 8 python-docs 0:3.6.7-2.module+el8.3.0+120+426d8baf
Rocky Linux · 8 python-docutils 0:0.14-12.module+el8.4.0+403+9ae17a31
Rocky Linux · 8 python-docutils 0:0.14-12.module+el8.3.0+120+426d8baf
Rocky Linux · 8 python-nose 0:1.3.7-31.module+el8.5.0+671+195e4563
Rocky Linux · 8 python-pygments 0:2.2.0-22.module+el8.5.0+671+195e4563
Rocky Linux · 8 python-pymongo 0:3.7.0-1.module+el8.5.0+671+195e4563
Rocky Linux · 8 python-pymongo 0:3.7.0-1.module+el8.4.0+597+ddf0ddea
Rocky Linux · 8 python-PyMySQL 0:0.10.1-2.module+el8.4.0+597+ddf0ddea
Rocky Linux · 8 python-PyMySQL 0:0.10.1-2.module+el8.4.0+574+843c4898
Rocky Linux · 8 python-sqlalchemy 0:1.3.2-2.module+el8.4.0+403+9ae17a31
Rocky Linux · 8 python-sqlalchemy 0:1.3.2-2.module+el8.3.0+120+426d8baf
Rocky Linux · 8 python-virtualenv 0:15.1.0-21.module+el8.5.0+671+195e4563
Rocky Linux · 8 python-wheel 1:0.31.1-3.module+el8.5.0+671+195e4563
Rocky Linux · 8 python36 0:3.6.8-38.module+el8.5.0+671+195e4563
Rocky Linux · 8 scipy 0:1.0.0-21.module+el8.5.0+671+195e4563

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/show_bug.cgi?id=1917971
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1922136
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1934199
  • report
    https://bugzilla.redhat.com/show_bug.cgi?id=1940603