CVE-2026-80490
Algorithm::AhoCorasick::XS versions through 0.04 for Perl read the haystack string length before the scalar is stringified
Mitigation
- Vendor workaround: No fixed release is available. Apply the patch or the change in the linked pull request.
- For deployments that cannot apply the patch, ensure that all input passed to the matching functions is stringified, for example
- $ac->matches( "$input" );
Who should check
- Anyone running Algorithm-AhoCorasick-XS <= 0.04
Vulnerability facts
- Affected
- Algorithm-AhoCorasick-XS <= 0.04
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.4 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: Low
- EPSS
- 0.16% chance of exploitation in 30 days (percentile 2, 2026-11-26)
- CWE
- CWE-125
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Algorithm-AhoCorasick-XS | <= 0.04 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-80490. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-80490.md Affected: Algorithm-AhoCorasick-XS <= 0.04 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for Algorithm-AhoCorasick-XS: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-80490 being exploited?
There is no confirmed exploitation: CVE-2026-80490 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-80490?
Medium: CVSS 4.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-80490?
Algorithm-AhoCorasick-XS <= 0.04.
Is there a fix for CVE-2026-80490?
No fixed version is listed in the sources yet. Vendor workaround: No fixed release is available. Apply the patch or the change in the linked pull request. For deployments that cannot apply the patch, ensure that all input passed to the matching functions is stringified, for example $ac->matches( "$input" );
How do I check if I'm affected by CVE-2026-80490?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.