# CVE-2026-8376: Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds

- Severity: High 7.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-05-25T23:53:27.812Z
- Modified: 2026-11-10T13:19:41.447Z
- Weaknesses: CWE-680
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds.

Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes. For a quantified fixed substring with a large minimum count, the byte length mincount * l could overflow SSize_t, producing an undersized SvGROW allocation; the subsequent copy writes past the end of the buffer.

A caller that compiles an attacker-controlled regular expression on a 32-bit perl build triggers a heap buffer overflow at compile time.

(As written by CVE List.)

## Affected

- perl: before 5.40.5-RC1; from 5.41.0 before 5.42.3-RC1; from 5.43.0 before 5.43.11
- perl perl: up to 5.43.10

## Every score

- CISA-ADP: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Perl/perl5/commit/5e7f119eb2bb1181be908701f22bf7068e722f1c.patch> (patch)
- <http://www.openwall.com/lists/oss-security/2026/05/26/1> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2026-8376](https://www.cve.org/CVERecord?id=CVE-2026-8376), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-8376](https://nvd.nist.gov/vuln/detail/CVE-2026-8376), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-8376 · Whole record: https://cve.day/CVE-2026-8376.json · Rebuilt by cve.day 2026-11-25T22:59:22.302Z
