CVE-2018-18313
No exploitation reported by the sources we read.
- Published2018-12-07
- Fixed in5.26.3
- WeaknessCWE-125
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive information from process memory.
Timeline
dates in UTC- 2018-12-0721:29CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.26 | < 5.26.3 | 5.26.3 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 12.4 | = 12.04 | no fix published | NVD |
| 14.4 | = 14.04 | no fix published | NVD |
| 16.4 | = 16.04 | no fix published | NVD |
| 18.4 | = 18.04 | no fix published | NVD |
| 18.10 | = 18.10 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 6.0 | = 6.0 | no fix published | NVD |
| 7.0 | = 7.0 | no fix published | NVD |
| 7.4 | = 7.4 | no fix published | NVD |
| 7.5 | = 7.5 | no fix published | NVD |
| 7.6 | = 7.6 | no fix published | NVD |
6 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- perlUbuntu:18.04:LTSall versions · fixed in 5.26.1-6ubuntu0.3
- perlUbuntu:16.04:LTSall versions · fixed in 5.22.1-9ubuntu0.6
- perlUbuntu:14.04:LTSall versions · fixed in 5.18.2-2ubuntu1.7
- perlSUSE:Linux Enterprise Module for Development Tools 15all versions · fixed in 5.26.1-7.6.1
- perlSUSE:Linux Enterprise Module for Basesystem 15all versions · fixed in 5.26.1-7.6.1
- perlRed Hat:hummingbird:1all versions · fixed in 0:5.42.2-524.1.hum1and 10 other packages
- perlDebian:14all versions · fixed in 5.28.0-3
- perlDebian:13all versions · fixed in 5.28.0-3
149 more package ranges on OSV.dev
Vendor advisories
perl: Heap-based buffer read overflow in S_grok_bslash_N()
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Red Hat Security Advisory: rh-perl524-perl security update
Red Hat Security Advisory: rh-perl526-perl security and enhancement update
Fix
- Update Perl to 5.26.3
- Vendor fix Red Hat Product Security RHSA-2026:7604 · 203 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
- Vendor fix Red Hat Product Security RHSA-2019:0010 · 217 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
Advisories and patches
- bugzilla.redhat.comPatch
- github.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-07
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.09.1read 2026-10-23
- NVDCVSS 2.06.4read 2026-10-23
- NVDweakness (CWE)CWE-125read 2026-10-23
- FIRST EPSSEPSS score9.5 %2026-11-06
- OSVaffected packages—
Identifiers
- EUVD-2018-10046same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- DSA-4347-1advisory covering several CVEsDebian · LicenseRef-unstated
- RHSA-2019:0001advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2019:0010advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:7604advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2018:4187-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-3834-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- Published
- 2018-12-07
- Last Modified
- 2026-06-17
- NVD status
- Modified
Frequently asked questions
What is CVE-2018-18313?
Is CVE-2018-18313 actively exploited?
What is the CVSS score for CVE-2018-18313?
Running Perl? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0