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 moreaffected: 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 morefixed: 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 morenot 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
-
bugzilla.redhat.com
/show_bug.cgi?id=1492091
issue-tracking, patch, third-party-advisory, vdb-entry
-
perl5.git.perl.org
/perl.git/commitdiff/96c83ed78aeea1a0496dd2b2d935869a822dc8a5
patch, vendor-advisory
-
debian.org
/security/2017/dsa-3982
vendor-advisory
-
perl5.git.perl.org
/perl.git/log/refs/tags/v5.26.1-RC1
release-notes, vendor-advisory
-
perl5.git.perl.org
/perl.git/log/refs/tags/v5.24.3-RC1
release-notes, vendor-advisory
-
securityfocus.com
/bid/100860
vdb-entry, third-party-advisory
- oracle.com /security-alerts/cpujul2020.html
- security.netapp.com /advisory/ntap-20180426-0001/
- rt.perl.org /Public/Bug/Display.html?id=131582
Sources
- CVE List CVE-2017-12837
- NVD CVE-2017-12837
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.