CVE-2026-4539

NameCVE-2026-4539
DescriptionA 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1132233

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pygments (PTS)bullseye2.7.1+dfsg-2.1vulnerable
bookworm2.14.0+dfsg-1vulnerable
trixie2.18.0+dfsg-2vulnerable
forky, sid2.19.2+dfsg-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pygmentssource(unstable)(unfixed)1132233

Notes

[trixie] - pygments <no-dsa> (Minor issue)
[bookworm] - pygments <no-dsa> (Minor issue)
[bullseye] - pygments <postponed> (Minor issue)
https://github.com/pygments/pygments/issues/3058
https://github.com/pygments/pygments/pull/3064
Fixed by: https://github.com/pygments/pygments/commit/24b8aa76c6cd6d70f39c6dd605cce319c98e2ccc (2.20.0)

Search for package or bug name: Reporting problems