p PatchFirst

CVE-2026-8376

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

CVSS 7.3 · High · EPSS 0.6% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • perl Alpine 3.24Update to 5.42.3-r0
  • perl Debian 12Update to 5.36.0-7+deb12u4
  • perl Debian 13Update to 5.40.1-6+deb13u1
  • perl Debian 14Update to 5.40.1-8
  • and 7 more

Check the installed version:

apk list -I -o perl
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="perl"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • DLA-4821-1 · Debian 12 ·
  • SUSE-SU-2026:3558-1 · SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Micro 5.3, SUSE Linux Enterprise Micro 5.4, SUSE Linux Enterprise Micro 5.5, SUSE Linux Enterprise Module for Basesystem 15 SP7, SUSE Linux Enterprise Module for Development Tools 15 SP7, SUSE Linux Enterprise Module for Package Hub 15 SP7, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server 15 SP6-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5, SUSE Linux Enterprise Server for SAP Applications 15 SP6 ·
  • SUSE-SU-2026:3540-1 · SUSE Linux Enterprise Server 12 SP5-LTSS, SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 ·
  • SUSE-SU-2026:23075-1 · SUSE Linux Micro 6.1 ·
  • SUSE-SU-2026:23008-1 · SUSE Linux Micro 6.0 ·
  • SUSE-SU-2026:22847-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
  • SUSE-SU-2026:22929-1 · SUSE Linux Micro 6.2 ·
  • openSUSE-SU-2026:21411-1 · openSUSE Leap 16.0 ·
  • USN-8467-2 · Ubuntu 25.10 ·
  • USN-8467-1 · Ubuntu Pro 14.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS ·

Stack: system

Affected products and versions

  • perl Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 5.42.3-r0

    Update to 5.42.3-r0

  • perl Debian 12

    Versions
    • 5.36.0-7
    • 5.36.0-7+deb12u1
    • 5.36.0-7+deb12u2
    • 5.36.0-7+deb12u3
    Affected ranges
    • ECOSYSTEM: < 5.36.0-7+deb12u4

    Update to 5.36.0-7+deb12u4

  • perl Debian 13

    Versions
    • 5.40.1-6
    Affected ranges
    • ECOSYSTEM: < 5.40.1-6+deb13u1

    Update to 5.40.1-6+deb13u1

  • perl Debian 14

    Versions
    • 5.40.1-6
    • 5.40.1-7
    Affected ranges
    • ECOSYSTEM: < 5.40.1-8

    Update to 5.40.1-8

  • perl Ubuntu Pro 14.04 LTS

    Versions
    • 5.14.2-21build1
    • 5.18.1-4
    • 5.18.1-4build1
    • 5.18.1-5
    • 5.18.2-2
    • 5.18.2-2ubuntu1
    All versions (14)
    • 5.18.2-2ubuntu1.1
    • 5.18.2-2ubuntu1.3
    • 5.18.2-2ubuntu1.4
    • 5.18.2-2ubuntu1.6
    • 5.18.2-2ubuntu1.7
    • 5.18.2-2ubuntu1.7+esm3
    • 5.18.2-2ubuntu1.7+esm4
    • 5.18.2-2ubuntu1.7+esm5
    Affected ranges
    • ECOSYSTEM: < 5.18.2-2ubuntu1.7+esm7

    Update to 5.18.2-2ubuntu1.7+esm7

  • perl Ubuntu Pro 18.04 LTS

    Versions
    • 5.26.0-8ubuntu1
    • 5.26.1-2ubuntu1
    • 5.26.1-3
    • 5.26.1-4
    • 5.26.1-4build1
    • 5.26.1-5
    All versions (13)
    • 5.26.1-6
    • 5.26.1-6ubuntu0.1
    • 5.26.1-6ubuntu0.2
    • 5.26.1-6ubuntu0.3
    • 5.26.1-6ubuntu0.5
    • 5.26.1-6ubuntu0.6
    • 5.26.1-6ubuntu0.7
    Affected ranges
    • ECOSYSTEM: < 5.26.1-6ubuntu0.7+esm2

    Update to 5.26.1-6ubuntu0.7+esm2

  • perl Ubuntu Pro 20.04 LTS

    Versions
    • 5.28.1-6build1
    • 5.30.0-7
    • 5.30.0-9
    • 5.30.0-9build1
    • 5.30.0-9ubuntu0.2
    • 5.30.0-9ubuntu0.3
    All versions (8)
    • 5.30.0-9ubuntu0.4
    • 5.30.0-9ubuntu0.5
    Affected ranges
    • ECOSYSTEM: < 5.30.0-9ubuntu0.5+esm2

    Update to 5.30.0-9ubuntu0.5+esm2

  • perl Ubuntu 22.04 LTS

    Versions
    • 5.32.1-3ubuntu3
    • 5.34.0-3ubuntu1
    • 5.34.0-3ubuntu1.1
    • 5.34.0-3ubuntu1.2
    • 5.34.0-3ubuntu1.3
    • 5.34.0-3ubuntu1.4
    All versions (7)
    • 5.34.0-3ubuntu1.5
    Affected ranges
    • ECOSYSTEM: < 5.34.0-3ubuntu1.7

    Update to 5.34.0-3ubuntu1.7

  • perl Ubuntu 24.04 LTS

    Versions
    • 5.36.0-9ubuntu1
    • 5.36.0-10ubuntu1
    • 5.38.2-3
    • 5.38.2-3.2
    • 5.38.2-3.2build1
    • 5.38.2-3.2build2
    All versions (9)
    • 5.38.2-3.2build2.1
    • 5.38.2-3.2ubuntu0.1
    • 5.38.2-3.2ubuntu0.2
    Affected ranges
    • ECOSYSTEM: < 5.38.2-3.2ubuntu0.3

    Update to 5.38.2-3.2ubuntu0.3

  • perl Ubuntu 25.10

    Versions
    • 5.40.1-2
    • 5.40.1-3
    • 5.40.1-5
    • 5.40.1-6
    • 5.40.1-6build1
    Affected ranges
    • ECOSYSTEM: < 5.40.1-6ubuntu0.1

    Update to 5.40.1-6ubuntu0.1

  • perl Ubuntu 26.04 LTS

    Versions
    • 5.40.1-6build1
    • 5.40.1-7build1
    Affected ranges
    • ECOSYSTEM: < 5.40.1-7ubuntu0.1

    Update to 5.40.1-7ubuntu0.1

Original sources

Check your server →