Skip to content
Fencer Vulns
critical 9.8

CVE-2018-18314 json

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations.

published 2018-12-07 7 y ago modified 2026-06-17 4 mo ago also EUVD-2018-10047

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

Summary

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations.

Patch / fix

  • perl perl 5.26.3
  • perl Debian 14, Debian 13, Debian 12 5.28.0-3

debian advisories DEBIAN-CVE-2018-18314

  • 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-18314

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 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-18314

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-18314 updated cvss 7.0

perl: Heap-based buffer overflow in S_regatom()

  • 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 more
    fixed: 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 more
    +1 more products
    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
    fixed: vendor fix RHSA-2019:0010
  • 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 perl
    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.06% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • rt.perl.org https://rt.perl.org/Ticket/Display.html?id=131649 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

Sources

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.