Skip to main content
CVE-2026-8376VulnerabilityPublished Updated

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

Affects perlSource GCVE Database

0
Compare
Authoritative record:CVE-2026-8376· High 7.3

Not known to be exploited · CVSS 7.3 High · fixed in 5.18.2-2ubuntu1.7+esm7 : patch perl soon.

Data as of 24 Nov 2026, 21:16 UTC

CVSS 3.1 base score
7.3High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CISA-ADPCVSS 3.17.3
EPSS
0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.18.2-2ubuntu1.7+esm7, 5.26.1-6ubuntu0.7+esm2, 5.30.0-9ubuntu0.5+esm2 +4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 24 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=resoluteOther threatsAffected
  • <5.40.1-7ubuntu0.1
Fixed in
  • 5.40.1-7ubuntu0.1
Ubuntu 25.10perlpkg:deb/ubuntu/perl?arch=source&distro=questingOther threatsAffected
  • <5.40.1-6ubuntu0.1
Fixed in
  • 5.40.1-6ubuntu0.1
Ubuntu 24.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=nobleOther threatsAffected
  • <5.38.2-3.2ubuntu0.3
Fixed in
  • 5.38.2-3.2ubuntu0.3
Ubuntu 22.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=jammyOther threatsAffected
  • <5.34.0-3ubuntu1.7
Fixed in
  • 5.34.0-3ubuntu1.7
Ubuntu Pro 20.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=esm-infra/focalOther threatsAffected
  • <5.30.0-9ubuntu0.5+esm2
Fixed in
  • 5.30.0-9ubuntu0.5+esm2
Ubuntu Pro 18.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <5.26.1-6ubuntu0.7+esm2
Fixed in
  • 5.26.1-6ubuntu0.7+esm2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…