Skip to content
Fencer Intel
critical 9.8

CVE-2018-6797 json

An issue was discovered in Perl 5.18 through 5.26.

published 2018-04-17 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-18544

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

Summary

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

Patch / fix

  • perl Debian 14, Debian 13, Debian 12 5.26.1-6

debian advisories DEBIAN-CVE-2018-6797

  • perl Ubuntu 16.04 LTS 5.22.1-9ubuntu0.3

ubuntu advisories UBUNTU-CVE-2018-6797

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

  • rh-perl524-perl RHEL 3 SOFTWARE_COLLECTIONS 4:5.24.0-380.el6
  • rh-perl524-perl RHEL 3 SOFTWARE_COLLECTIONS 4:5.24.0-380.el7
  • rh-perl524-perl-IO RHEL 3 SOFTWARE_COLLECTIONS 1.36-380.el6
  • rh-perl524-perl-IO RHEL 3 SOFTWARE_COLLECTIONS 1.36-380.el7
  • rh-perl524-perl-core RHEL 3 SOFTWARE_COLLECTIONS 5.24.0-380.el6
  • rh-perl524-perl-core RHEL 3 SOFTWARE_COLLECTIONS 5.24.0-380.el7
  • rh-perl524-perl-libs RHEL 3 SOFTWARE_COLLECTIONS 4:5.24.0-380.el6
  • rh-perl524-perl-libs RHEL 3 SOFTWARE_COLLECTIONS 4:5.24.0-380.el7

red hat advisories RHSA-2018:1192

  • perl SLES 12 SP3, SLES 12 SP2-BCL, SLED 12 SP3 +8 more 5.18.2-12.14.1
  • perl SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 5.18.2-12.11.1

suse advisories SUSE-SU-2018:1972-2SUSE-SU-2018:1972-1SUSE-SU-2018:1074-1

  • perl Alpine 3.24, Alpine 3.23, Alpine 3.22 +15 more 5.26.2-r0
  • perl Alpine 3.6, Alpine 3.5 5.24.4-r0

alpine advisories ALPINE-CVE-2018-6797

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-6797 updated cvss 8.1

perl: heap write overflow in regcomp.c

  • Red Hat Software Collections rh-perl520-perl, rh-perl520-perl-core, rh-perl520-perl-libs, rh-perl520-perl-tests, rh-perl520-perl-macros, rh-perl520-perl-IO-Zlib, +6 more
    affected: no fix planned “Will not fix”
  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-perl524-perl 5.24.0-380.el6, rh-perl524-perl-IO 1.36-380.el6, rh-perl524-perl-open 1.10-380.el6, rh-perl524-perl-Test 1.28-380.el6, rh-perl524-perl-Errno 1.25-380.el6, rh-perl524-perl-bignum 0.42-380.el6, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-perl524-perl 5.24.0-380.el7, rh-perl524-perl-IO 1.36-380.el7, rh-perl524-perl-open 1.10-380.el7, rh-perl524-perl-Test 1.28-380.el7, rh-perl524-perl-Errno 1.25-380.el7, rh-perl524-perl-bignum 0.42-380.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-perl524-perl 5.24.0-380.el6, rh-perl524-perl-IO 1.36-380.el6, rh-perl524-perl-open 1.10-380.el6, rh-perl524-perl-Test 1.28-380.el6, rh-perl524-perl-Errno 1.25-380.el6, rh-perl524-perl-bignum 0.42-380.el6, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-perl524-perl 5.24.0-380.el7, rh-perl524-perl-IO 1.36-380.el7, rh-perl524-perl-open 1.10-380.el7, rh-perl524-perl-Test 1.28-380.el7, rh-perl524-perl-Errno 1.25-380.el7, rh-perl524-perl-bignum 0.42-380.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-perl524-perl 5.24.0-380.el7, rh-perl524-perl-IO 1.36-380.el7, rh-perl524-perl-open 1.10-380.el7, rh-perl524-perl-Test 1.28-380.el7, rh-perl524-perl-Errno 1.25-380.el7, rh-perl524-perl-bignum 0.42-380.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-perl524-perl 5.24.0-380.el6, rh-perl524-perl-IO 1.36-380.el6, rh-perl524-perl-open 1.10-380.el6, rh-perl524-perl-Test 1.28-380.el6, rh-perl524-perl-Errno 1.25-380.el6, rh-perl524-perl-bignum 0.42-380.el6, +22 more
    +1 more products
    Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-perl524-perl 5.24.0-380.el7, rh-perl524-perl-IO 1.36-380.el7, rh-perl524-perl-open 1.10-380.el7, rh-perl524-perl-Test 1.28-380.el7, rh-perl524-perl-Errno 1.25-380.el7, rh-perl524-perl-bignum 0.42-380.el7, +22 more
    fixed: vendor fix RHSA-2018:1192
  • 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 Software Collections rh-perl526-perl, rh-perl526-perl-IO, rh-perl526-perl-libs, rh-perl526-perl-open, rh-perl526-perl-Test, rh-perl526-perl-Errno, +19 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.48% 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 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

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.