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

Published May 25, 2026
·
Updated

Last updated 26 June 2026

Other sources

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.

Perlstudychunk in regcompstudy.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 SSizet, 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.

— OSV

Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds

— Microsoft

Affected Software

9 affected componentsFixes available
Perl Perl<=5.43.10
Microsoft azl3 perl 5.38.2-509<5.38.2-511
5.38.2-511
Microsoft azl3 perl 5.38.2-512<5.38.2-512
5.38.2-512
alpine/perl<5.42.3-r0
5.42.3-r0
Perl Perl<=5.43.10
debian/perl<5.36.0-7+deb12u4
5.36.0-7+deb12u4
debian/perl<5.40.1-6+deb13u1
5.40.1-6+deb13u1
debian/perl<5.40.1-8
5.40.1-8
debian/perl<=5.36.0-7+deb12u3
5.36.0-7+deb12u45.40.1-6+deb13u15.40.1-8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.38.2-511
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.38.2-512
  3. Upgrade

    Upgrade alpine/perl to a version that resolves this vulnerability.

    Fixed in 5.42.3-r0
  4. Upgrade

    Upgrade debian/perl to a version that resolves this vulnerability.

    Fixed in 5.36.0-7+deb12u4
  5. Upgrade

    Upgrade debian/perl to a version that resolves this vulnerability.

    Fixed in 5.40.1-6+deb13u1
  6. Upgrade

    Upgrade debian/perl to a version that resolves this vulnerability.

    Fixed in 5.40.1-8
  7. Upgrade

    Upgrade debian/perl to a version that resolves this vulnerability.

    Fixed in 5.36.0-7+deb12u4Fixed in 5.40.1-6+deb13u1Fixed in 5.40.1-8
  8. Upgrade

    Upgrade perl to a version that resolves this vulnerability.

    Fixed in 5.40.5-RC1
  9. Upgrade

    Upgrade perl to a version that resolves this vulnerability.

    Fixed in 5.42.3-RC1
  10. Upgrade

    Upgrade perl to a version that resolves this vulnerability.

    Fixed in 5.44.0

Event History

May 25, 2026
CVE Published
via MITRE·11:53 PM
Data Sourced
via MITRE·11:53 PM
RemedyDescriptionWeakness
Data Sourced
via OSV·11:53 PM
DescriptionSeverityWeakness
May 26, 2026
Data Sourced
via NVD·12:16 AM
DescriptionWeakness
May 27, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:01 AM
Affected Software
Updated
via Microsoft·08:01 AM
WeaknessAffected Software
Data Sourced
via NVD·06:43 PM
RemedySeverityAffected Software
Updated
via NVD·07:16 PM
Severity
Jun 15, 2026
Event
via FIRST·12:00 AM
Jun 19, 2026
Updated
via Microsoft·08:40 AM
Weakness
Sep 8, 2026
Updated
via MITRE·09:33 PM
RemedyDescription
Updated
via NVD·10:19 PM
Description
Nov 3, 2026
Data Sourced
via OSV·07:30 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-8376?

The severity of CVE-2026-8376 is rated as risk level 28.

2

How do I fix CVE-2026-8376?

To fix CVE-2026-8376, upgrade to a future release of Perl or apply the upstream patch.

3

What versions of Perl are affected by CVE-2026-8376?

Perl versions through 5.43.10 are affected by CVE-2026-8376.

4

What type of vulnerability is CVE-2026-8376?

CVE-2026-8376 is classified as a buffer overflow vulnerability.

5

On which builds is CVE-2026-8376 a concern?

CVE-2026-8376 is a concern specifically on 32-bit builds of Perl.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203