Skip to content
Fencer Intel
critical 9.1

CVE-2018-18313 json

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive information from process m…

published 7y ago modified 4mo ago also EUVD-2018-10046

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

Summary

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive information from process memory.

Patch / fix

  • perl perl 5.26.3
  • apple mac_os_x 10.14.4
  • perl Debian 14, Debian 13, Debian 12 5.28.0-3

debian advisories DEBIAN-CVE-2018-18313

  • perl Ubuntu 14.04 LTS 5.18.2-2ubuntu1.7
  • 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-18313

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

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

Is CVE-2018-18313 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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-18313 updated cvss 6.5

perl: Heap-based buffer read overflow in S_grok_bslash_N()

  • 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

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

Exploits and checks

  • rt.perl.org https://rt.perl.org/Ticket/Display.html?id=133192 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

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

Classification

Weakness

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.