CVE-2026-80490: Algorithm::AhoCorasick::XS versions through 0.04 for Perl read the haystack string length before the
Source GCVE Database
Not known to be exploited · CVSS 4.4 Medium.
Data as of 9 Nov 2026, 19:32 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 4.4 |
|---|
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 30 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Algorithm-AhoCorasick-XS | Affected
| Fixed in– |
CPANAlgorithm-AhoCorasick-XSpkg:cpan/Algorithm-AhoCorasick-XSOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should avoid passing non-string scalars such as integers, floats, references, or blessed objects as the haystack input to the affected methods. Validate and convert inputs to strings before calling matches, first_match, or match_details. Monitor vendor advisories for any forthcoming patches or updates addressing this issue.
Description
Algorithm::AhoCorasick::XS versions through 0.04 for Perl contain a vulnerability where the haystack string length is read before the scalar is properly stringified. This can cause an out-of-bounds read leading to process aborts when the input is a numeric value or a reference. The issue arises due to the unspecified evaluation order of arguments in the std::string constructor, causing the length macro to run before stringification. This affects methods like matches, first_match, and match_details when processing non-string inputs such as numbers or blessed objects.
References
- nvd.nist.gov/vuln/detail/CVE-2026-80490 (opens in a new tab)
- github.com/richardjharris/Algorithm-AhoCorasick-XS/pull/1 (opens in a new tab)
- metacpan.org/release/RJH/Algorithm-AhoCorasick-XS-0.04/source/typemap (opens in a new tab)
- rt.cpan.org/Ticket/Display.html?id=181560 (opens in a new tab)
- security.metacpan.org/patches/A/Algorithm-AhoCorasick-XS/0.04/CVE-2026-80490-r1.patch (opens in a new tab)
- openwall.com/lists/oss-security/2026/09/30/15 (opens in a new tab)