Skip to content
Fencer Intel
high 7.5

CVE-2017-12837 json

Heap-based buffer overflow in the S_regatom function in regcomp.c in Perl 5 before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1 allows remote at…

published 2017-09-19 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-4374

cvss
7.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
6.2%
EPSS 6.2% chance of exploitation in 30 days, percentile 93%
public exploits
0
none known

Summary

Heap-based buffer overflow in the S_regatom function in regcomp.c in Perl 5 before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1 allows remote attackers to cause a denial of service (out-of-bounds write) via a regular expression with a '\N{}' escape and the case-insensitive modifier.

Patch / fix

  • perl Debian 14, Debian 13, Debian 12 5.26.0-8

debian advisories DEBIAN-CVE-2017-12837

  • perl Ubuntu 14.04 LTS 5.18.2-2ubuntu1.3
  • perl Ubuntu 16.04 LTS 5.22.1-9ubuntu0.2

ubuntu advisories UBUNTU-CVE-2017-12837

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • perl hummingbird 1 5.42.2-524.hum1
  • perl-B hummingbird 1 1.89-524.hum1
  • perl-if hummingbird 1 0.61.000-524.hum1
  • perl-IO hummingbird 1 1.55-524.hum1
  • perl-ph hummingbird 1 5.42.2-524.hum1
  • perl-lib hummingbird 1 0.65-524.hum1
  • perl-mro hummingbird 1 1.29-524.hum1
  • perl-Net hummingbird 1 1.04-524.hum1

red hat advisories RHSA-2026:6206

  • perl SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +4 more 5.18.2-12.3.1

suse advisories SUSE-SU-2017:3092-1

  • perl openSUSE Tumbleweed 5.34.0-1.1

opensuse advisories openSUSE-SU-2024:11158-1

  • perl Alpine 3.24, Alpine 3.23, Alpine 3.22 +15 more 5.26.1-r0
  • perl Alpine 3.4, Alpine 3.3 5.22.3-r0
  • perl Alpine 3.6, Alpine 3.5 5.24.3-r0

alpine advisories ALPINE-CVE-2017-12837

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2017-12837 updated cvss 5.9

perl: Heap buffer overflow in regular expression compiler

  • Red Hat Software Collections rh-perl520-perl, rh-perl524-perl, rh-perl524-perl-IO, rh-perl520-perl-core, rh-perl520-perl-libs, rh-perl524-perl-core, +34 more
    affected: no fix planned “Will not fix”
  • Red Hat Hardened Images perl 5.42.2-524.hum1, perl-B 1.89-524.hum1, perl-IO 1.55-524.hum1, perl-Tie 4.6-524.hum1, perl-lib 0.65-524.hum1, perl-mro 1.29-524.hum1, +93 more
    fixed: vendor fix RHSA-2026:6206
  • Red Hat Enterprise Linux 5 perl Red Hat Enterprise Linux 6 perl, perl-CGI, perl-core, perl-CPAN, perl-libs, perl-parent, +39 more Red Hat Enterprise Linux 7 perl, perl-core, perl-CPAN, perl-libs, perl-tests, perl-macros, +11 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

6.21% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.