Vulnerabilities / CVE-2018-6797

critical

CVE-2018-6797

perl: heap write overflow in regcomp.c

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.1CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Ubuntu (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 1.0perl5.24.1-1.ph1
Photon OS 2.0perl5.24.1-5.ph2
alpine 3.10perl5.26.2-r0
alpine 3.11perl5.26.2-r0
alpine 3.12perl5.26.2-r0
alpine 3.13perl5.26.2-r0
alpine 3.14perl5.26.2-r0
alpine 3.15perl5.26.2-r0
alpine 3.16perl5.26.2-r0
alpine 3.17perl5.26.2-r0
alpine 3.18perl5.26.2-r0
alpine 3.19perl5.26.2-r0
Show all 36 entries from 36 sources
SourcePackageFixed in
Photon OS 1.0perl5.24.1-1.ph1
Photon OS 2.0perl5.24.1-5.ph2
alpine 3.10perl5.26.2-r0
alpine 3.11perl5.26.2-r0
alpine 3.12perl5.26.2-r0
alpine 3.13perl5.26.2-r0
alpine 3.14perl5.26.2-r0
alpine 3.15perl5.26.2-r0
alpine 3.16perl5.26.2-r0
alpine 3.17perl5.26.2-r0
alpine 3.18perl5.26.2-r0
alpine 3.19perl5.26.2-r0
alpine 3.20perl5.26.2-r0
alpine 3.21perl5.26.2-r0
alpine 3.22perl5.26.2-r0
alpine 3.23perl5.26.2-r0
alpine 3.24perl5.26.2-r0
alpine 3.5perl5.24.4-r0
alpine 3.6perl5.24.4-r0
alpine 3.7perl5.26.2-r0
alpine 3.8perl5.26.2-r0
alpine 3.9perl5.26.2-r0
alpine edgeperl5.26.2-r0
debian 11perl5.26.1-6
debian 12perl5.26.1-6
debian 13perl5.26.1-6
debian 14perl5.26.1-6
debian 7perlno fix listed
debian 8perlno fix listed
debian 9perl5.24.1-3+deb9u3
echoperl5.26.1-6
root.io debian 11rootio-perl5.26.1-6
root.io debian 12rootio-perl5.26.1-6
ubuntu 16.04perl5.22.1-9ubuntu0.3
ubuntu 16.04-ESMperl5.22.1-9ubuntu0.3
ubuntu 17.10perl5.26.0-8ubuntu1.1

References

All 12 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.