Skip to content
Noroxi
CVE-2018-6798· NVD / CVE Program· CNA mitre

An issue was discovered in Perl 5.22 through 5.26.

An issue was discovered in Perl 5.22 through 5.26. Matching a crafted locale dependent regular expression can cause a heap-based buffer over-read and potentially information disclosure.

HighCVSS 7.5 · v3.0—No exploit Fix available
Published
Apr 17, 2018
Updated
Jun 16, 2026
EPSS
3.9% · 90th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

31

Monitor

Low priority for now.

CVSS
30 / 40 · 7.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.9%

Affected systems

VendorProduct
perlperl
debiandebian linux
canonicalubuntu linux
redhatenterprise linux server
redhatenterprise linux workstation

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • canonical ubuntu linux14.04
  • canonical ubuntu linux16.04
  • canonical ubuntu linux17.10
  • debian debian linux7.0
  • debian debian linux8.0
  • debian debian linux9.0
  • perl perl5.22 and later · up to 5.26 inclusive
  • redhat enterprise linux server6.0
  • redhat enterprise linux server7.0
  • redhat enterprise linux server7.3
  • redhat enterprise linux server7.4
  • redhat enterprise linux server7.5
  • redhat enterprise linux workstation6.0
  • redhat enterprise linux workstation7.0

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.10perlfrom 5.22 · before 5.26.2-r05.26.2-r0
Alpine:v3.5perlfrom 5.22 · before 5.24.4-r05.24.4-r0
Debian:12perlbefore 5.26.1-65.26.1-6
Red Hat:rhel_software_collections:3::el6rh-perl524-perlbefore 4:5.24.0-380.el64:5.24.0-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-Attribute-Handlersbefore 0:0.99-380.el60:0.99-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-bignumbefore 0:0.42-380.el60:0.42-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-corebefore 0:5.24.0-380.el60:5.24.0-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-debuginfobefore 4:5.24.0-380.el64:5.24.0-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-develbefore 4:5.24.0-380.el64:5.24.0-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-Devel-Peekbefore 0:1.23-380.el60:1.23-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-Devel-SelfStubberbefore 0:1.05-380.el60:1.05-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-Errnobefore 0:1.25-380.el60:1.25-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-ExtUtils-Embedbefore 0:1.33-380.el60:1.33-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-ExtUtils-Miniperlbefore 0:1.05-380.el60:1.05-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-IObefore 0:1.36-380.el60:1.36-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-IO-Zlibbefore 1:1.10-380.el61:1.10-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-libnetcfgbefore 4:5.24.0-380.el64:5.24.0-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-libsbefore 4:5.24.0-380.el64:5.24.0-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-Locale-Maketext-Simplebefore 1:0.21-380.el61:0.21-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-macrosbefore 4:5.24.0-380.el64:5.24.0-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-Math-BigInt-FastCalcbefore 0:0.40-380.el60:0.40-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-Math-BigRatbefore 0:0.2608.02-380.el60:0.2608.02-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-Math-Complexbefore 0:1.59-380.el60:1.59-380.el6
Red Hat:rhel_software_collections:3::el6rh-perl524-perl-Memoizebefore 0:1.03-380.el60:1.03-380.el6

+45

Same product

perl: all records

Other highest-scoring records for the same primary product.

  • CVE-2012-6329The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly handle backslashes and f
    49Plan
  • CVE-2018-18311Perl 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.
    43Plan
  • CVE-2018-18312Perl 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.
    43Plan
  • CVE-2018-6913Heap-based buffer overflow in the pack function in Perl before 5.26.2 allows context-dependent attackers to execute arbitrary code via a lar
    42Plan
  • CVE-2018-18314Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations.
    41Plan
  • CVE-2018-6797An issue was discovered in Perl 5.18 through 5.26.
    41Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:perl5.26.2-r0 · Alpine:v3.10Package registry (OSV)
debian:perl5.26.1-6 · Debian:12Package registry (OSV)
opensuse:perl5.26.1-150300.17.17.1 · openSUSE:Leap Micro 5.3Package registry (OSV)
red hat:rh-perl524-perl4:5.24.0-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-Attribute-Handlers0:0.99-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-Devel-Peek0:1.23-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-Devel-SelfStubber0:1.05-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-Errno0:1.25-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-ExtUtils-Embed0:1.33-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-ExtUtils-Miniperl0:1.05-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-IO0:1.36-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-IO-Zlib1:1.10-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-Locale-Maketext-Simple1:0.21-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-Math-BigInt-FastCalc0:0.40-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
red hat:rh-perl524-perl-Math-BigRat0:0.2608.02-380.el6 · Red Hat:rhel_software_collections:3::el6Package registry (OSV)
suse:perl5.10.0-64.81.10.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4Package registry (OSV)
suse:perl5.26.1-150300.17.17.1 · SUSE:Linux Enterprise Micro 5.3Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
none
Availability
none
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
None
Availability impact
None

Weakness class (CWE)

CWE-125 · Out-of-bounds Read

CVSS vector

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

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

ATT&CK techniques

—

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records