{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-13221 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-13221 is a critical vulnerability in perl:perl, published on 13 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-13221 and fix it if it is affected.\n\nWhat it is: CVE-2026-13221 is a critical vulnerability in perl:perl, published on 13 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-13221 in the wild and no public exploit code.\n\nAffected product: perl:perl. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-13221/ (Markdown: https://insights.sbomify.com/CVE-2026-13221/index.md)","id":"CVE-2026-13221","markdown":"https://insights.sbomify.com/CVE-2026-13221/index.md","name":"CVE-2026-13221","record":{"aliases":["ALPINE-CVE-2026-13221","ALSA-2026:67155","ALSA-2026:67156","ALSA-2026:67162","ALSA-2026:67278","AZL-92300","DEBIAN-CVE-2026-13221","ECHO-6100-7255-ee29","GHSA-whhx-pv66-xhgq","MINI-2766-r85p-j4cp","MINI-ghgh-35v3-3mm5","MINI-h79w-p96m-84m7","MINI-ppxc-4vph-wfqh","OESA-2026-3144","OESA-2026-3145","OESA-2026-3146","RHSA-2026:67155","RHSA-2026:67156","RHSA-2026:67162","RHSA-2026:67278","RLSA-2026:67155","RLSA-2026:67156","RLSA-2026:67162","RLSA-2026:67278","ROOT-OS-ALPINE-322-CVE-2026-13221","ROOT-OS-ALPINE-323-CVE-2026-13221","ROOT-OS-DEBIAN-11-CVE-2026-13221","UBUNTU-CVE-2026-13221"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","other"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl programming language","requires_auth":"none","summary":"Perl regex engine integer overflow causes incorrect matches, potentially bypassing security filters or access controls.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[{"product":"perl","vendor":"perl"}],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.10 produce silently incorrect regular expression matches when an alternation of more than 65535 fixed string branches is compiled into a trie in Perl_study_chunk.\n\nWhen such branches are combined into a trie, the delta between the first branch and the shared tail is stored in a 16-bit field. A branch count above 65535 overflows the field, and the trie's match decision table is truncated with no warning or error.\n\nA pattern of this shape produces false positive matches (matching strings it should not) and false negative matches (failing to match strings it should). When such a pattern gates an access or filtering decision, the result is wrong.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:10.2","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Integer overflow in perl:perl","id":"CVE-2026-13221","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"integer_overflow","year":"2026"},"n_packages":1363,"n_references":2,"next":{"headline":"Insufficient validation of payment status in pretix-oppwa","id":"CVE-2026-13222"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["4:5.40.2-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl","purl":"pkg:rpm/almalinux/perl","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.03-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Attribute-Handlers","purl":"pkg:rpm/almalinux/perl-Attribute-Handlers","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["5.74-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-AutoLoader","purl":"pkg:rpm/almalinux/perl-AutoLoader","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["5.74-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-AutoSplit","purl":"pkg:rpm/almalinux/perl-AutoSplit","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.89-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-B","purl":"pkg:rpm/almalinux/perl-B","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.25-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Benchmark","purl":"pkg:rpm/almalinux/perl-Benchmark","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["0.68-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Class-Struct","purl":"pkg:rpm/almalinux/perl-Class-Struct","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["0.03-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Config-Extensions","purl":"pkg:rpm/almalinux/perl-Config-Extensions","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["0.06-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-DBM_Filter","purl":"pkg:rpm/almalinux/perl-DBM_Filter","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.34-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Devel-Peek","purl":"pkg:rpm/almalinux/perl-Devel-Peek","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.06-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Devel-SelfStubber","purl":"pkg:rpm/almalinux/perl-Devel-SelfStubber","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.05-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-DirHandle","purl":"pkg:rpm/almalinux/perl-DirHandle","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["2.27-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Dumpvalue","purl":"pkg:rpm/almalinux/perl-Dumpvalue","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.56-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-DynaLoader","purl":"pkg:rpm/almalinux/perl-DynaLoader","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.11-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-English","purl":"pkg:rpm/almalinux/perl-English","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.38-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Errno","purl":"pkg:rpm/almalinux/perl-Errno","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["0.25-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-ExtUtils-Constant","purl":"pkg:rpm/almalinux/perl-ExtUtils-Constant","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.35-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-ExtUtils-Embed","purl":"pkg:rpm/almalinux/perl-ExtUtils-Embed","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.14-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-ExtUtils-Miniperl","purl":"pkg:rpm/almalinux/perl-ExtUtils-Miniperl","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.18-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Fcntl","purl":"pkg:rpm/almalinux/perl-Fcntl","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["2.86-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-File-Basename","purl":"pkg:rpm/almalinux/perl-File-Basename","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.100.800-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-File-Compare","purl":"pkg:rpm/almalinux/perl-File-Compare","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["2.41-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-File-Copy","purl":"pkg:rpm/almalinux/perl-File-Copy","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.12-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-File-DosGlob","purl":"pkg:rpm/almalinux/perl-File-DosGlob","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.44-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-File-Find","purl":"pkg:rpm/almalinux/perl-File-Find","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.14-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-File-stat","purl":"pkg:rpm/almalinux/perl-File-stat","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.10-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-FileCache","purl":"pkg:rpm/almalinux/perl-FileCache","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["2.05-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-FileHandle","purl":"pkg:rpm/almalinux/perl-FileHandle","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.54-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-FindBin","purl":"pkg:rpm/almalinux/perl-FindBin","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1:1.24-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-GDBM_File","purl":"pkg:rpm/almalinux/perl-GDBM_File","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.14-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Getopt-Std","purl":"pkg:rpm/almalinux/perl-Getopt-Std","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["0.32-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Hash-Util","purl":"pkg:rpm/almalinux/perl-Hash-Util","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.27-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Hash-Util-FieldHash","purl":"pkg:rpm/almalinux/perl-Hash-Util-FieldHash","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.02-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-I18N-Collate","purl":"pkg:rpm/almalinux/perl-I18N-Collate","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["0.45-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-I18N-LangTags","purl":"pkg:rpm/almalinux/perl-I18N-LangTags","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["0.24-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-I18N-Langinfo","purl":"pkg:rpm/almalinux/perl-I18N-Langinfo","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.55-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-IO","purl":"pkg:rpm/almalinux/perl-IO","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.22-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-IPC-Open3","purl":"pkg:rpm/almalinux/perl-IPC-Open3","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1:0.21-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Locale-Maketext-Simple","purl":"pkg:rpm/almalinux/perl-Locale-Maketext-Simple","source":"ALSA-2026:67156"},{"ecosystem":"AlmaLinux:10","fixed":["1.62-515.el10_2"],"introduced":["0"],"last_affected":[],"package":"perl-Math-Complex","purl":"pkg:rpm/almalinux/perl-Math-Complex","source":"ALSA-2026:67156"}],"prev":{"headline":"Kubevirt: kubevirt: symlink following in writetocachedfile allows host file overwrite from virt-launcher","id":"CVE-2026-13218"},"products":["perl:perl"],"published":"2026-07-13","related":[{"cvss_score":9.8,"headline":"Supply chain in perl","id":"CVE-2026-4176","kev_date_added":null,"published":"2026-03-29"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2022-48522","kev_date_added":null,"published":"2023-08-22"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-12814","kev_date_added":null,"published":"2017-09-27"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2015-8608","kev_date_added":null,"published":"2017-02-07"},{"cvss_score":9.1,"headline":"Memory corruption in n/a","id":"CVE-2017-12883","kev_date_added":null,"published":"2017-09-19"},{"cvss_score":8.4,"headline":"Integer overflow in perl:perl","id":"CVE-2026-57432","kev_date_added":null,"published":"2026-07-13"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-08","vendors":["perl"]},"summary":"Perl regex engine integer overflow causes incorrect matches, potentially bypassing security filters or access controls.","url":"https://insights.sbomify.com/CVE-2026-13221/"}