perl: heap write overflow in regcomp.c
Published Apr 17, 2018
9.8
CRITICALCVSS 3.0
EPSS 6.48%
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 products
No data.
Configuration 1
- 8.0
- 9.0
Configuration 3
- 16.04
- 17.10
Configuration 4
- 7.0
- 7.3
- 7.4
- 7.5
- 7.6
- 6.0
- 7.0
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-perl524-perl-4:5.24.0-380.el6
Fixed · RHSA-2018:1192
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-perl524-perl-4:5.24.0-380.el6
Fixed · RHSA-2018:1192
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-perl524-perl-4:5.24.0-380.el7
Fixed · RHSA-2018:1192
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-perl524-perl-4:5.24.0-380.el7
Fixed · RHSA-2018:1192
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-perl524-perl-4:5.24.0-380.el7
Fixed · RHSA-2018:1192
Red Hat Enterprise Linux 5
perl
Not affected
Red Hat Enterprise Linux 6
perl
Not affected
Red Hat Enterprise Linux 7
perl
Not affected
Red Hat Enterprise Linux 8
perl
Not affected
Red Hat Software Collections
rh-perl520-perl
Will not fix
Red Hat Software Collections
rh-perl526-perl
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-perl524-perl-4:5.24.0-380.el6 | Fixed | RHSA-2018:1192 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-perl524-perl-4:5.24.0-380.el6 | Fixed | RHSA-2018:1192 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-perl524-perl-4:5.24.0-380.el7 | Fixed | RHSA-2018:1192 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-perl524-perl-4:5.24.0-380.el7 | Fixed | RHSA-2018:1192 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-perl524-perl-4:5.24.0-380.el7 | Fixed | RHSA-2018:1192 |
| Red Hat Enterprise Linux 5 | perl | Not affected | n/a |
| Red Hat Enterprise Linux 6 | perl | Not affected | n/a |
| Red Hat Enterprise Linux 7 | perl | Not affected | n/a |
| Red Hat Enterprise Linux 8 | perl | Not affected | n/a |
| Red Hat Software Collections | rh-perl520-perl | Will not fix | n/a |
| Red Hat Software Collections | rh-perl526-perl | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (52 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.48% (0.06477) | 93.54th | v5 (v2026.06.15) |
| Sep 22, 2026 | 6.60% (0.06599) | 93.54th | v5 (v2026.06.15) |
| Sep 21, 2026 | 5.56% (0.05558) | 92.55th | v5 (v2026.06.15) |
| Sep 6, 2026 | 6.60% (0.06599) | 93.39th | v5 (v2026.06.15) |
| Sep 5, 2026 | 5.56% (0.05558) | 92.39th | v5 (v2026.06.15) |
| Aug 30, 2026 | 6.60% (0.06599) | 93.36th | v5 (v2026.06.15) |
| Aug 28, 2026 | 5.56% (0.05558) | 92.34th | v5 (v2026.06.15) |
| Aug 24, 2026 | 6.60% (0.06599) | 93.32th | v5 (v2026.06.15) |
| Aug 23, 2026 | 5.56% (0.05558) | 92.31th | v5 (v2026.06.15) |
| Jun 15, 2026 | 7.52% (0.07519) | 93.69th | v5 (v2026.06.15) |
| Mar 4, 2026 | 1.47% (0.01475) | 80.67th | v4 (v2025.03.14) |
| Mar 1, 2026 | 2.93% (0.02930) | 86.23th | v4 (v2025.03.14) |
| Feb 4, 2026 | 1.47% (0.01475) | 80.59th | v4 (v2025.03.14) |
| Feb 1, 2026 | 2.93% (0.02930) | 86.12th | v4 (v2025.03.14) |
| Jan 4, 2026 | 1.47% (0.01475) | 80.51th | v4 (v2025.03.14) |
| Jan 1, 2026 | 2.93% (0.02930) | 86.06th | v4 (v2025.03.14) |
| Dec 4, 2025 | 1.47% (0.01475) | 80.36th | v4 (v2025.03.14) |
| Dec 1, 2025 | 2.93% (0.02930) | 86.02th | v4 (v2025.03.14) |
| Nov 21, 2025 | 1.47% (0.01475) | 80.35th | v4 (v2025.03.14) |
| Nov 18, 2025 | 6.43% (0.06431) | 90.11th | v4 (v2025.03.14) |
| Nov 4, 2025 | 1.47% (0.01475) | 80.30th | v4 (v2025.03.14) |
| Nov 1, 2025 | 2.93% (0.02930) | 85.96th | v4 (v2025.03.14) |
| Oct 4, 2025 | 1.55% (0.01553) | 80.79th | v4 (v2025.03.14) |
| Oct 1, 2025 | 3.08% (0.03082) | 86.31th | v4 (v2025.03.14) |
| Sep 4, 2025 | 1.88% (0.01877) | 82.44th | v4 (v2025.03.14) |
| Sep 1, 2025 | 3.71% (0.03709) | 87.58th | v4 (v2025.03.14) |
| Aug 4, 2025 | 1.88% (0.01877) | 82.38th | v4 (v2025.03.14) |
| Aug 1, 2025 | 3.71% (0.03709) | 87.60th | v4 (v2025.03.14) |
| Jul 4, 2025 | 1.88% (0.01877) | 82.33th | v4 (v2025.03.14) |
| Jul 1, 2025 | 3.71% (0.03709) | 87.52th | v4 (v2025.03.14) |
| Jun 4, 2025 | 1.88% (0.01877) | 82.22th | v4 (v2025.03.14) |
| Jun 1, 2025 | 3.71% (0.03709) | 87.44th | v4 (v2025.03.14) |
| May 4, 2025 | 1.88% (0.01877) | 82.14th | v4 (v2025.03.14) |
| May 1, 2025 | 3.71% (0.03709) | 87.36th | v4 (v2025.03.14) |
| Mar 30, 2025 | 1.88% (0.01877) | 81.51th | v4 (v2025.03.14) |
| Mar 29, 2025 | 7.98% (0.07976) | 86.53th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.12% (0.02123) | 82.97th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.85% (0.00853) | 82.94th | v3 (v2023.03.01) |
| Jan 31, 2024 | 0.85% (0.00853) | 80.47th | v3 (v2023.03.01) |
| Dec 5, 2023 | 1.21% (0.01206) | 83.61th | v3 (v2023.03.01) |
| Oct 18, 2023 | 2.02% (0.02018) | 87.63th | v3 (v2023.03.01) |
| Sep 8, 2023 | 1.95% (0.01947) | 87.23th | v3 (v2023.03.01) |
| Apr 11, 2023 | 2.40% (0.02395) | 88.26th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.83% (0.01832) | 86.36th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.18% (0.01183) | 61.76th | v2 (v2022.01.01) |
| Oct 19, 2022 | 1.18% (0.01183) | 60.79th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.18% (0.01183) | 58.77th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.18% (0.01183) | 35.15th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.86% (0.01865) | 48.06th | v1 |
| Jan 6, 2022 | 1.86% (0.01865) | 47.54th | v1 |
| Sep 1, 2021 | 1.86% (0.01865) | 76.13th | v1 |
| Apr 14, 2021 | 1.86% (0.01865) | 0.00th | v1 |
References (12)
- http://www.securitytracker.com/id/1040681 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1042004 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:1192 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-6797 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1547783 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2018-6797
- https://rt.perl.org/Public/Bug/Display.html?id=132227 x_refsource_CONFIRMPatchVendor Advisory
- https://security.gentoo.org/glsa/201909-01 vendor-advisoryx_refsource_GENTOO
- https://usn.ubuntu.com/3625-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-6797
- https://www.debian.org/security/2018/dsa-4172 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.oracle.com/security-alerts/cpujul2020.html x_refsource_MISC
| Link | Providers | Tags |
|---|---|---|
| http://www.securitytracker.com/id/1040681 | vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry | |
| http://www.securitytracker.com/id/1042004 | vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/errata/RHSA-2018:1192 | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2018-6797 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1547783 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-6797 | ||
| https://rt.perl.org/Public/Bug/Display.html?id=132227 | x_refsource_CONFIRMPatchVendor Advisory | |
| https://security.gentoo.org/glsa/201909-01 | vendor-advisoryx_refsource_GENTOO | |
| https://usn.ubuntu.com/3625-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-6797 | ||
| https://www.debian.org/security/2018/dsa-4172 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| https://www.oracle.com/security-alerts/cpujul2020.html | x_refsource_MISC |
Change history (0)
No recorded changes yet.