CVE-2026-8376: Perl - Buffer Overflow
- Cve: CVE-2026-8376
- Name: Perl - Buffer Overflow
- 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.
- Impact: Attackers can cause heap buffer overflow leading to potential memory corruption or code execution on 32-bit Perl builds.
- Remediation: Update to a version later than 5.43.10 or the latest available version.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00643
- Epss percentile: 0.51781
- Assignee: 9b29abf9-4ab0-4765-b253-1875cd9b441e
- Published at: 2026-05-26T00:16:57Z
- Age in days: 182
- Modified at: 2026-11-10T13:19:41Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-8376
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-680 | Integer Overflow to Buffer Overflow |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| perl:perl | <= 5.43.10 | no | nvd | /v1/products/perl/perl |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| Perl/perl5 | commit, fix | yes | /v1/repositories/Perl/perl5 |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 2464272
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports