CVE-2026-80490
Algorithm::AhoCorasick::XS versions through 0.04 for Perl read the haystack string length before the scalar is stringified
Check your servers for CVE-2026-80490
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-80490 affects algorithm-ahocorasick-xs, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Algorithm::AhoCorasick::XS versions through 0.04 for Perl read the haystack string length before the scalar is stringified.
The matches, first_match and match_details methods use the T_STD_STRING typemap to translate Perl scalars (SVs) into strings via the std::string constructor, using the SvPV macro to stringify the haystack input, and the SvCUR macro to determine the length of the SV.
When the input SVs are references, integers (IVs) or floats (NVs), the SvCUR macro will return an invalid length if it is run before the input is stringified, leading to an out-of-bounds read which can abort the process.
Note that the evaluation order of arguments to std::string is unspecified. Depending on the compiler, SvCUR may be run first and lead to an abort that cannot be caught within Perl.
This can be triggered when the haystack is a numeric value, for example,
my $ac = Algorithm::AhoCorasick::XS->new( [ "11", "22" ] ); $ac->matches( 211 );
This can occur when the haystack is the result of reading data from decoded JSON or a numeric database column. It can also be triggered when using a blessed object as a haystack.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.12%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.27% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 8 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-125 Out-of-bounds Read
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Algorithm-AhoCorasick-XS
package
Algorithm-AhoCorasick-XS |
affected up to and including 0.04
Other versions: unaffected
|
Is my server affected?
Find the installed version of algorithm-ahocorasick-xs and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i algorithm-ahocorasick-xs
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-80490 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-80490RHEL, Rocky, Alma, Fedora
rpm -q algorithm-ahocorasick-xs
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-80490Alpine
apk list --installed | grep -i algorithm-ahocorasick-xsWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-80490
trivy image --scanners vuln IMAGE | grep CVE-2026-80490
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://rt.cpan.org/Ticket/Display.html?id=181560 rt.cpan.org · vendor advisory, issue tracking
Patches and release notes
- https://security.metacpan.org/patches/A/Algorithm-AhoCorasick-XS/0.04/CVE-2026-80490-r1.patch security.metacpan.org · patch
Other references
- https://metacpan.org/release/RJH/Algorithm-AhoCorasick-XS-0.04/source/typemap#L14 metacpan.org
- https://github.com/richardjharris/Algorithm-AhoCorasick-XS/pull/1 github.com · issue tracking
- http://www.openwall.com/lists/oss-security/2026/09/30/15 openwall.com
Source: the record CVE-2026-80490 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse