CVE-2018-18312

Exp

Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.

Published: 2018-12-05 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2018-18312 is rated High Exploit Risk (89/100): CVSS Critical severity, with high exploitation likelihood (EPSS 12.09%, 96th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +1.38% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2018-18312

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2018-18312

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 10.71% 12.09% +1.38%
2 2026-05-27 10.85% 10.71% -0.14%
3 2026-03-04 10.85%

Full EPSS history (53 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2018-18312

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.8 3.0 CRITICAL
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]
7.5 2.0 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
10.0 6.4 [email protected]

Weakness enumeration for CVE-2018-18312

OS Trackers for CVE-2018-18312

vendor priority summary link
alpine critical CVE-2018-18312: 1 source package rows (perl); 25 state rows across 10 repos (3.10-main, 3.11-main, 3.12-main, 3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 10, open 15. https://security.alpinelinux.org/vuln/CVE-2018-18312
debian not yet assigned CVE-2018-18312 not yet assigned priority: Debian including 1 source packages (perl), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2018-18312
gentoo normal CVE-2018-18312: 1 GLSA(s) (201909-01), 1 atom(s) (dev-lang/perl); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2018-18312
redhat medium https://access.redhat.com/security/cve/CVE-2018-18312
suse low CVE-2018-18312 severity low: SUSE including 347 source package names (0.1.0:perl-base-5.26.1-7.6.1, 0.1.75:perl-base-5.26.1-7.6.1, …), 488 product×package rows across 131 product lines (Container caasp/v4/389-ds, Container caasp/v4/busybox, … (131 product lines)): Fixed 223, Known Affected 157, Known Not Affected 108. https://www.suse.com/security/cve/CVE-2018-18312/
ubuntu medium CVE-2018-18312 medium priority: Ubuntu including 1 source packages (perl), 5 status rows across 5 suites (bionic, cosmic, trusty, upstream, xenial): released 4, not-affected 1. https://ubuntu.com/security/CVE-2018-18312

Affected software / configurations for CVE-2018-18312

Vendor Product Version Raw CPE
perl perl < 5.26.3 cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*
perl perl >= 5.28.0, < 5.28.1 cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*
canonical ubuntu_linux 14.04 cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 16.04 cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 18.04 cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 18.10 cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
redhat enterprise_linux 6.0 cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
redhat enterprise_linux 7.0 cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
redhat enterprise_linux 7.4 cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*
redhat enterprise_linux 7.5 cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:*
redhat enterprise_linux 7.6 cpe:2.3:o:redhat:enterprise_linux:7.6:*:*:*:*:*:*:*
netapp e-series_santricity_os_controller >= 11.0, <= 11.40 cpe:2.3:a:netapp:e-series_santricity_os_controller:*:*:*:*:*:*:*:*
netapp snap_creator_framework cpe:2.3:a:netapp:snap_creator_framework:-:*:*:*:*:*:*:*
netapp snapcenter cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:*
netapp snapdrive cpe:2.3:a:netapp:snapdrive:-:*:*:*:*:unix:*:*

References for CVE-2018-18312

URL Tags
http://www.securityfocus.com/bid/106179 Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1042181 Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2019:0001 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0010 Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1646734 Issue Tracking Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RWQGEB543QN7SSBRKYJM6PSOC3RLYGSM/
https://metacpan.org/changes/release/SHAY/perl-5.26.3 Third Party Advisory
https://metacpan.org/changes/release/SHAY/perl-5.28.1 Third Party Advisory
https://rt.perl.org/Public/Bug/Display.html?id=133423 Exploit Patch Third Party Advisory
https://security.gentoo.org/glsa/201909-01
https://security.netapp.com/advisory/ntap-20190221-0003/ Third Party Advisory
https://usn.ubuntu.com/3834-1/ Third Party Advisory
https://www.debian.org/security/2018/dsa-4347 Third Party Advisory
https://www.oracle.com/security-alerts/cpujul2020.html
cvelogic Threat Intelligence