CVE & CISA-KEV Catalog

CVE-2018-18311

CRITICALEPSS 96th pctl
9.8
CVSS v3
NVD

Description

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

How to fix

Remediation Available
perlAmazon
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
perl-CPANAmazon
Fixed in:0:1.9800-294.amzn2
perl-ExtUtils-CBuilderAmazon
Fixed in:1:0.28.2.6-294.amzn2
perl-ExtUtils-EmbedAmazon
Fixed in:0:1.30-294.amzn2
perl-ExtUtils-InstallAmazon
Fixed in:0:1.58-294.amzn2
perl-IO-ZlibAmazon
Fixed in:1:1.10-294.amzn2
perl-Locale-Maketext-SimpleAmazon
Fixed in:1:0.21-294.amzn2
perl-Module-CoreListAmazon
Fixed in:1:2.76.02-294.amzn2
perl-Module-LoadedAmazon
Fixed in:1:0.08-294.amzn2
perl-Object-AccessorAmazon
Fixed in:1:0.42-294.amzn2
perl-Package-ConstantsAmazon
Fixed in:1:0.02-294.amzn2
perl-Pod-EscapesAmazon
Fixed in:1:1.04-294.amzn2
perl-Time-PieceAmazon
Fixed in:0:1.20.1-294.amzn2
Fixed in:0:1.20.1-294.amzn2
Fixed in:0:1.20.1-294.amzn2
perl-coreAmazon
Fixed in:0:5.16.3-294.amzn2
Fixed in:0:5.16.3-294.amzn2
Fixed in:0:5.16.3-294.amzn2
perl-debuginfoAmazon
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
perl-develAmazon
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
perl-libsAmazon
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
perl-macrosAmazon
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
perl-testsAmazon
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
Fixed in:4:5.16.3-294.amzn2
perlDebian
Fixed in:5.28.1-1CVE-2018-18311
Fixed in:5.28.1-1CVE-2018-18311
Fixed in:5.28.1-1CVE-2018-18311
perlUbuntu
Fixed in:5.18.2-2ubuntu1.7USN-3834-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:5.22.1-9ubuntu0.6USN-3834-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:5.26.1-6ubuntu0.3USN-3834-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Strawberry PerlWindows application
Affected:5.28.0 5.28.1Fixed in:5.28.1strawberryperl.com project
Affected:5.26.3Fixed in:5.26.3strawberryperl.com project

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

11.68%probability of exploitation in 30 days
96thpercentile

Very high risk: more likely to be exploited than 96% of all known CVEs.

References

Related Vulnerabilities

Other CWE-190 (Integer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-16040Medium6.5100%-Fix
CVE-2019-11477High7.599%-Fix
CVE-2023-44443High7.894%-Fix
CVE-2014-0569High9.391%--
CVE-2017-3599High7.590%-Fix
CVE-2023-21716Critical9.882%-Fix

Common questions

How do I fix CVE-2018-18311?

Published advisories record a fix for 22 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2018-18311 being actively exploited?

Not that we know of. CVE-2018-18311 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 11.7% is the estimated probability that it will be exploited in the next 30 days. That is higher than 96% of all scored CVEs.

How severe is CVE-2018-18311?

CVE-2018-18311 has a CVSS v3 base score of 9.8, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2018-18311 affect?

Published advisories record a fix for perl (Amazon), perl-CPAN (Amazon), perl-ExtUtils-CBuilder (Amazon), perl-ExtUtils-Embed (Amazon), and 18 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2018-18311
CVE-2018-18311 severity badge

Markdown

[![CVE-2018-18311](https://tridentstack.com/cve/badge/CVE-2018-18311.svg)](https://tridentstack.com/cve/CVE-2018-18311)

HTML

<a href="https://tridentstack.com/cve/CVE-2018-18311"><img src="https://tridentstack.com/cve/badge/CVE-2018-18311.svg" alt="CVE-2018-18311"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.