CVE-2018-18312 in the critical feed json
Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.
published 2018-12-05 7 y ago modified 2026-06-17 4 mo ago also EUVD-2018-10045
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 12.8%
- EPSS 12.8% chance of exploitation in 30 days, percentile 96%
- public exploits
- 0
- none known
Summary
Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.
Patch / fix
- perl perl 5.26.3, 5.28.1
- perl Debian 14, Debian 13, Debian 12 5.28.1-1
debian advisories DEBIAN-CVE-2018-18312
- perl Ubuntu 16.04 LTS 5.22.1-9ubuntu0.6
- perl Ubuntu 18.04 LTS 5.26.1-6ubuntu0.3
ubuntu advisories UBUNTU-CVE-2018-18312
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.1.hum1
- perl-B hummingbird 1 1.89-524.1.hum1
- perl-if hummingbird 1 0.61.000-524.1.hum1
- perl-IO hummingbird 1 1.55-524.1.hum1
- perl-ph hummingbird 1 5.42.2-524.1.hum1
- perl-lib hummingbird 1 0.65-524.1.hum1
- perl-mro hummingbird 1 1.29-524.1.hum1
- perl-Net hummingbird 1 1.04-524.1.hum1
red hat advisories RHSA-2026:7604RHSA-2019:0010RHSA-2019:0001
- perl SLE Module for Development Tools 15, SLE Module for Basesystem 15 5.26.1-7.6.1
suse advisories SUSE-SU-2018:4187-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.3-r0
- perl Alpine 3.6 5.24.4-r2
alpine advisories ALPINE-CVE-2018-18312
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-2018-18312 updated cvss 7.0
perl: Heap-based buffer overflow in S_handle_regex_sets()
-
Red Hat Hardened Images perl 5.42.2-524.1.hum1, perl-B 1.89-524.1.hum1, perl-IO 1.55-524.1.hum1, perl-Tie 4.6-524.1.hum1, perl-lib 0.65-524.1.hum1, perl-mro 1.29-524.1.hum1, +93 morefixed: vendor fix RHSA-2026:7604
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-perl524-perl 5.24.0-381.el6, rh-perl524-perl-IO 1.36-381.el6, rh-perl524-perl-open 1.10-381.el6, rh-perl524-perl-Test 1.28-381.el6, rh-perl524-perl-Errno 1.25-381.el6, rh-perl524-perl-bignum 0.42-381.el6, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-perl524-perl 5.24.0-381.el7, rh-perl526-perl 5.26.3-405.el7, rh-perl524-perl-IO 1.36-381.el7, rh-perl526-perl-IO 1.38-405.el7, rh-perl524-perl-open 1.10-381.el7, rh-perl524-perl-Test 1.28-381.el7, +49 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-perl524-perl 5.24.0-381.el7, rh-perl526-perl 5.26.3-405.el7, rh-perl524-perl-IO 1.36-381.el7, rh-perl526-perl-IO 1.38-405.el7, rh-perl524-perl-open 1.10-381.el7, rh-perl524-perl-Test 1.28-381.el7, +49 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-perl524-perl 5.24.0-381.el7, rh-perl526-perl 5.26.3-405.el7, rh-perl524-perl-IO 1.36-381.el7, rh-perl526-perl-IO 1.38-405.el7, rh-perl524-perl-open 1.10-381.el7, rh-perl524-perl-Test 1.28-381.el7, +49 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-perl524-perl 5.24.0-381.el7, rh-perl526-perl 5.26.3-405.el7, rh-perl524-perl-IO 1.36-381.el7, rh-perl526-perl-IO 1.38-405.el7, rh-perl524-perl-open 1.10-381.el7, rh-perl524-perl-Test 1.28-381.el7, +49 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-perl524-perl 5.24.0-381.el6, rh-perl524-perl-IO 1.36-381.el6, rh-perl524-perl-open 1.10-381.el6, rh-perl524-perl-Test 1.28-381.el6, rh-perl524-perl-Errno 1.25-381.el6, rh-perl524-perl-bignum 0.42-381.el6, +22 morefixed: vendor fix RHSA-2019:0010
+1 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-perl524-perl 5.24.0-381.el7, rh-perl526-perl 5.26.3-405.el7, rh-perl524-perl-IO 1.36-381.el7, rh-perl526-perl-IO 1.38-405.el7, rh-perl524-perl-open 1.10-381.el7, rh-perl524-perl-Test 1.28-381.el7, +49 more -
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 Red Hat Enterprise Linux 8 perl, perl-IO, perl-libs, perl-open, perl-Test, perl-Errno, +19 more Red Hat OpenShift Enterprise 3 perlnot 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
12.77% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rt.perl.org https://rt.perl.org/Public/Bug/Display.html?id=133423 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
rt.perl.org
/Public/Bug/Display.html?id=133423
exploit, patch, third-party-advisory
-
debian.org
/security/2018/dsa-4347
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:0010
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/RWQGEB543QN7SSBRKYJM6PSOC3RLYGSM/
vendor-advisory
-
access.redhat.com
/errata/RHSA-2019:0001
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3834-1/
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201909-01
vendor-advisory
-
securityfocus.com
/bid/106179
vdb-entry, third-party-advisory
-
securitytracker.com
/id/1042181
vdb-entry, third-party-advisory
- oracle.com /security-alerts/cpujul2020.html
-
security.netapp.com
/advisory/ntap-20190221-0003/
third-party-advisory
-
metacpan.org
/changes/release/SHAY/perl-5.26.3
third-party-advisory
-
metacpan.org
/changes/release/SHAY/perl-5.28.1
third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1646734
issue-tracking, third-party-advisory
Sources
- CVE List CVE-2018-18312
- NVD CVE-2018-18312
Fencer Vulns 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.