CVE-2018-18312: Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that trigge CRITICAL 9.8 REMOTE WATCHLIST UPGRADE MITIGATE MITIGATE
CVE-2018-18312 is a critical-severity flaw (CVSS 9.8) affecting perl, ubuntu linux, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority Critical severity EPSS top 4%: very likely to be exploited Public exploit reference Remotely exploitable, no login, no user action On your watchlist A fixed release or distro patch exists.
Risk facts CVSS score 9.8 (Critical) Attack vector Network (remote) Attack complexity Low Privileges needed None User interaction None EPSS exploit chance 12.8% (top 4%) CISA exploited list No Weakness CWE-119 Published 2018-12-05 Last modified 2026-06-17
Share: LinkedIn · X · Reddit
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline 2018-12-05 22:29 UTC Published CVE record published2026-06-17 01:46 UTC Updated Record last modifiedperl perl UPGRADE
Affected: < 5.26.3 · >= 5.28.0 and < 5.28.1
Fixed in: 5.26.3, 5.28.1
Safe to downgrade to: a release before 5.28.0
1. Check installed version
Copy apt-cache policy perl || rpm -q perl || perl --version
2. UPGRADE to 5.26.3 (Debian / Ubuntu)
Copy sudo apt update && sudo apt install --only-upgrade perl
2. UPGRADE (RHEL / Amazon Linux / Fedora)
Copy sudo dnf upgrade perl
Note
Copy Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 5.28.0 (Debian / Ubuntu)
Copy apt-cache madison perl
sudo apt install perl=<VERSION_BEFORE_5.28.0>
sudo apt-mark hold perl
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list perl
sudo dnf downgrade perl-<VERSION_BEFORE_5.28.0>
sudo dnf versionlock add perl
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
canonical ubuntu linux MITIGATE
Affected: 14.04 · 16.04 · 18.04 · 18.10
Fixed in: no fixed release known
Safe to downgrade to: a release before 14.04
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
debian debian linux MITIGATE
Affected: 9.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 9.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
redhat enterprise linux MITIGATE
Affected: 6.0 · 7.0 · 7.4 · 7.5 · 7.6
Fixed in: no fixed release known
Safe to downgrade to: a release before 6.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
netapp e-series santricity os controller UPGRADE
Affected: >= 11.0 and <= 11.40
Fixed in: newer than 11.40
Safe to downgrade to: a release before 11.0
1. Check installed version
Copy apt-cache policy e-series-santricity-os-controller || rpm -q e-series-santricity-os-controller || e-series-santricity-os-controller --version
2. UPGRADE to newer than 11.40 (Debian / Ubuntu)
Copy sudo apt update && sudo apt install --only-upgrade e-series-santricity-os-controller
2. UPGRADE (RHEL / Amazon Linux / Fedora)
Copy sudo dnf upgrade e-series-santricity-os-controller
Note
Copy Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 11.0 (Debian / Ubuntu)
Copy apt-cache madison e-series-santricity-os-controller
sudo apt install e-series-santricity-os-controller=<VERSION_BEFORE_11.0>
sudo apt-mark hold e-series-santricity-os-controller
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list e-series-santricity-os-controller
sudo dnf downgrade e-series-santricity-os-controller-<VERSION_BEFORE_11.0>
sudo dnf versionlock add e-series-santricity-os-controller
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
netapp snap creator framework MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
1. Check installed version
Copy apt-cache policy snap-creator-framework || rpm -q snap-creator-framework || snap-creator-framework --version
No fixed or unaffected release known
Copy Apply the vendor mitigation from the advisory, disable the affected feature, or restrict network access.
Exact fixes by distribution Show all
A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · copyparty ·
FIXED · 1.20.26-1.fc46 · FEDORA-2026-8fbe18458e ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-8fbe18458e
Fedora ELN · man-pages ·
FIXED · 6.20-1.eln159 · FEDORA-2026-f1f5fb11b4 ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-f1f5fb11b4
Debian 12 · perl · FIXED · 5.28.1-1
Copy sudo apt update && sudo apt install --only-upgrade perl
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' perl)" ge "5.28.1-1" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · perl · FIXED · 5.28.1-1
Copy sudo apt update && sudo apt install --only-upgrade perl
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' perl)" ge "5.28.1-1" && echo PATCHED || echo STILL-VULNERABLE
RHEL 5 · perl · NOT AFFECTED
RHEL 6 · perl · NOT AFFECTED
RHEL 7 · perl · NOT AFFECTED
RHEL 8 · perl · NOT AFFECTED
RHEL 8 · perl:5.24/perl · NOT AFFECTED
Alpine 3.20 · perl · FIXED · perl-5.26.3-r0
Copy apk add --upgrade perl
apk info -v perl
Alpine 3.21 · perl · FIXED · perl-5.26.3-r0
Copy apk add --upgrade perl
apk info -v perl
Alpine 3.22 · perl · FIXED · perl-5.26.3-r0
Copy apk add --upgrade perl
apk info -v perl
Alpine 3.23 · perl · FIXED · perl-5.26.3-r0
Copy apk add --upgrade perl
apk info -v perl
Public exploits and detection Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Verify at the official source NVD ·
CVE Program ·
Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems. Quick answers How do I fix CVE-2018-18312? perl: upgrade to 5.26.3, 5.28.1; ubuntu linux: mitigate or apply the listed mitigation; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2018-18312 being exploited? CVE-2018-18312 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2018-18312 affect? CVE-2018-18312 affects perl, ubuntu linux, debian linux. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2018-18312? Priority 73/100. Critical severity; EPSS top 4%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist
Software pages Ubuntu vulnerabilities · Debian vulnerabilities · Perl vulnerabilities
Related CVEs CVE-2026-13221 CRITICAL 9.1 UPGRADE Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.10 produce silently inCVE-2026-57432 HIGH 8.4 UPGRADE Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have an integer oveCVE-2022-48522 CRITICAL 9.8 DOWNGRADE In Perl 5.34.0, function S_find_uninit_var in sv.c has a stack-based crash that can lead to remote code executCVE-2020-12723 HIGH 7.5 UPGRADE MITIGATE regcomp.c in Perl before 5.30.3 allows a buffer overflow via a crafted regular expression because of recursiveCVE-2020-10878 HIGH 8.6 UPGRADE MITIGATE Perl before 5.30.3 has an integer overflow related to mishandling of a "PL_regkind[OP(n)] == NOTHING" situatioReferences ← Back to latest CVEs