CVE catalog

CVE-2026-4539

A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function AdlLexer of the file pygments/lexers/archetype.py. The manipulation results in inefficient regular ex

[CVE catalog]

Severity
Medium · CVSS 4.8
Published
Source
[NVD] · [CVE record]
EPSS
0.16% · Oct 25, 2026

A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function AdlLexer of the file pygments/lexers/archetype.py. The manipulation results in inefficient regular expression complexity. The attack is only possible with local access. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpygmentssid2.20.0+dfsg-2fixed
Debianpygmentsforky2.20.0+dfsg-2fixed
Debianpygmentstrixie2.18.0+dfsg-2vulnerable
Debianpygmentsbookworm2.14.0+dfsg-1vulnerable
CpepygmentsNot reportedNot reportedvulnerable
PyPIpygmentsNot reported2.20.0fixed
PyPIpygmentsNot reported2.20.0fixed
Susepython-Pygmentslinux enterprise server 16.02.19.1-160000.3.1fixed
Susepython-Pygmentslinux enterprise server for sap applications 16.02.19.1-160000.3.1fixed
Opensusepython-Pygmentsleap 16.02.19.1-160000.3.1fixed
Susepython-Pygmentslinux micro 6.22.19.1-160000.3.1fixed
Opensusepython-Pygmentstumbleweed2.20.0-2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpygmentssourcesid2.20.0+dfsg-1not yet assignedNot reported[1132233]
Debianpygmentssourceforky2.20.0+dfsg-1not yet assignedNot reported[1132233]
Debianpygmentssourcetrixie(unfixed)not yet assignedNot reported[1132233]
Debianpygmentssourcebookworm(unfixed)not yet assignedNot reported[1132233]
PyPIpygmentsPyPINot reported2.20.0Not reportedGHSA-5239-WWWM-4PMQNot reported
PyPIpygmentsPyPINot reported2.20.0Not reportedNot reportedNot reported
Susepython-Pygmentsrpmlinux enterprise server 16.02.19.1-160000.3.1Not reportedSUSE-SU-2026:22093-1Not reported
Susepython-Pygmentsrpmlinux enterprise server for sap applications 16.02.19.1-160000.3.1Not reportedSUSE-SU-2026:22093-1Not reported
Opensusepython-Pygmentsrpmleap 16.02.19.1-160000.3.1Not reportedOPENSUSE-SU-2026:20931-1Not reported
Susepython-Pygmentsrpmlinux micro 6.22.19.1-160000.3.1Not reportedSUSE-SU-2026:22058-1Not reported
Opensusepython-Pygmentsrpmtumbleweed2.20.0-2.1Not reportedOPENSUSE-SU-2026:10476-1Not reported

[Debian bug #1132233]

Notes

[trixie] pygments: Minor issue [bookworm] pygments: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [pygments]

    Details (2)
    • 2.14.0+dfsg-1 · all · bookworm

      Affected

      nvd · pygments · debian · bookworm; nvd · pygments · debian · 12

    • 2.14.0+dfsg-1 · all · bookworm

      Affected

      nvd · pygments · debian · bookworm; nvd · pygments · debian · 12

  • Source package: [pygments]

    Details (2)
    • 2.14.0+dfsg-1 · all · bookworm

      Affected

      nvd · pygments · debian · bookworm; nvd · pygments · debian · 12

    • 2.14.0+dfsg-1 · all · bookworm

      Affected

      nvd · pygments · debian · bookworm; nvd · pygments · debian · 12

[Debian 13 (Trixie)]

  • Source package: [pygments]

    Details (2)
    • 2.18.0+dfsg-2 · all · trixie

      Affected

      nvd · pygments · debian · 13

    • 2.18.0+dfsg-2 · all · trixie

      Affected

      nvd · pygments · debian · 13

  • Source package: [pygments]

    Details (2)
    • 2.18.0+dfsg-2 · all · trixie

      Affected

      nvd · pygments · debian · 13

    • 2.18.0+dfsg-2 · all · trixie

      Affected

      nvd · pygments · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-Pygments]

    Details (1)
    • 2.21.0-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.20.0-2.1

      Version impact unknown

      nvd · python-Pygments · opensuse · tumbleweed

  • Source package: [python-Pygments]

    Details (1)
    • 2.21.0-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2.20.0-2.1

      Version impact unknown

      nvd · python-Pygments · opensuse · tumbleweed

Observed:

References