cve.bz

CVE-2018-6797 Out-of-bounds Write

9.8 criticalEPSS 6.7%Fix available

Critical (9.8). EPSS 6.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
6.7% (unchanged from 6.5% a week ago; 6.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-6797 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-6797?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-6797?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-6797 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
debian:debian_linux8.0
debian:debian_linux9.0
perl:perlfrom 5.18 through 5.26
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server7.3
redhat:enterprise_linux_server7.4
redhat:enterprise_linux_server7.5
redhat:enterprise_linux_server7.6
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14perl5.26.1-6DEBIAN-CVE-2018-6797
Ubuntu14.04:LTSperl5.18.2-2ubuntu1.4USN-3625-1
Ubuntu16.04:LTSperl5.22.1-9ubuntu0.3UBUNTU-CVE-2018-6797 USN-3625-1
UbuntuPro:14.04:LTSperlno fix listedUBUNTU-CVE-2018-6797
Red Hatrhel_software_collections:3::el6rh-perl524-perl, rh-perl524-perl-libs, rh-perl524-perl-devel and 4 more4:5.24.0-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-Attribute-Handlers0:0.99-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-Devel-Peek, rh-perl524-perl-SelfLoader0:1.23-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-Devel-SelfStubber, rh-perl524-perl-ExtUtils-Miniperl0:1.05-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-Errno0:1.25-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-ExtUtils-Embed0:1.33-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-IO0:1.36-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-IO-Zlib1:1.10-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-Locale-Maketext-Simple1:0.21-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-Math-BigInt-FastCalc0:0.40-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-Math-BigRat0:0.2608.02-380.el6RHSA-2018:1192
Red Hatrhel_software_collections:3::el6rh-perl524-perl-Math-Complex0:1.59-380.el6RHSA-2018:1192
30 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP1-LTSS and 7 moreperl5.18.2-12.14.1SUSE-SU-2018:1972-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3perl5.18.2-12.11.1SUSE-SU-2018:1074-1
SUSELinux Enterprise Server 12 SP2-BCLperl5.18.2-12.14.1SUSE-SU-2018:1972-2
Alpinev3.5, v3.6perl5.24.4-r0ALPINE-CVE-2018-6797
Alpinev3.7, v3.8, v3.9 and 15 moreperl5.26.2-r0ALPINE-CVE-2018-6797

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Versions of the perl interpreter older than 5.18 are not vulnerable. As a result, the versions of perl as shipped in Red Hat Enterprise Linux version 7, 6 and 5 are not affected by this vulnerability.

ProductPackageStateAdvisory
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-perl524-perl-4:5.24.0-380.el6Fixed 2018-04-23RHSA-2018:1192
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-perl524-perl-4:5.24.0-380.el6Fixed 2018-04-23RHSA-2018:1192
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-perl524-perl-4:5.24.0-380.el7Fixed 2018-04-23RHSA-2018:1192
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSrh-perl524-perl-4:5.24.0-380.el7Fixed 2018-04-23RHSA-2018:1192
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSrh-perl524-perl-4:5.24.0-380.el7Fixed 2018-04-23RHSA-2018:1192
Red Hat Enterprise Linux 5perlNot affected
Red Hat Enterprise Linux 6perlNot affected
Red Hat Enterprise Linux 7perlNot affected
Red Hat Enterprise Linux 8perlNot affected
Red Hat Software Collectionsrh-perl520-perlWill not fix
Red Hat Software Collectionsrh-perl526-perlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-6797.

References

Check your stackJSON