Every CVE Search/ Get API key

CVE-2018-6797

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap...

9.8 CriticalFix available

CVE-2018-6797 is a critical vulnerability (CVSS 9.8) in Perl, published April 14, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 6.48%, the 93rd percentile. Fixed in perl 5.26.2-r0.

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

6.48%Up 4.6 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

Record
CVE-2018-6797
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

Record
CVE-2018-6797
Updated
2026-11-02
EUVDEUVD-2018-18544 No score

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

Record
EUVD-2018-18544
Updated
2026-11-03
GitHub AdvisoriesGHSA-8qqx-9gj6-xx9p 9.8

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap...

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

Record
GHSA-8qqx-9gj6-xx9p
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-787
Updated
2026-11-02
OSVALPINE-CVE-2018-6797 9.8

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

Record
ALPINE-CVE-2018-6797
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVBELL-CVE-2018-6797 9.8

CVE-2018-6797 does not affect BellSoft software

Record
BELL-CVE-2018-6797
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 9 moreShow less
OSV 9.8

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

Record
CVE-2018-6797
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-6797 9.8

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

Record
DEBIAN-CVE-2018-6797
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2018:1192 8.1

Red Hat Security Advisory: rh-perl524-perl security update

Record
RHSA-2018:1192
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2018-6797 9.8

An issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes written.

Record
UBUNTU-CVE-2018-6797
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2018-0241 No score

Updated perl packages fix security vulnerabilities

Brian Carpenter reported that a crafted regular expression could cause a heap buffer write overflow, with control over the bytes written (CVE-2018-6797).

Nguyen Duc Manh reported that matching a crafted locale dependent regular expression can cause a heap-based buffer over-read and potentially information disclosure (CVE-2018-6798).

GwanYeong Kim reported that 'pack()' could cause a heap buffer write overflow with a large item count (CVE-2018-6913).

Record
MGASA-2018-0241
Updated
2026-11-02
OSVSUSE-SU-2018:1074-1 No score

Security update for perl

This update for perl fixes the following issues:

Security issues fixed:

  • CVE-2018-6913: Fixed space calculation issues in pp_pack.c (bsc#1082216).
  • CVE-2018-6798: Fixed heap buffer overflow in regexec.c (bsc#1082233).
  • CVE-2018-6797: Fixed sharp-s regexp overflow (bsc#1082234).
Record
SUSE-SU-2018:1074-1
Updated
2026-11-02
OSVSUSE-SU-2018:1972-1 No score

Security update for perl

This update for perl fixes the following issues:

These security issue were fixed:

  • CVE-2018-6913: Fixed space calculation issues in pp_pack.c (bsc#1082216).
  • CVE-2018-6798: Fixed heap buffer overflow in regexec.c (bsc#1082233).
  • CVE-2018-6797: Fixed sharp-s regexp overflow (bsc#1082234).
  • CVE-2018-12015: The Archive::Tar module allowed remote attackers to bypass a directory-traversal protection mechanism and overwrite arbitrary files (bsc#1096718)

This non-security issue was fixed:

  • fix debugger crash in tab completion with Term::ReadLine::Gnu [bsc#1068565]
Record
SUSE-SU-2018:1972-1
Updated
2026-11-02
OSVSUSE-SU-2018:1972-2 No score

Security update for perl

This update for perl fixes the following issues:

These security issue were fixed:

  • CVE-2018-6913: Fixed space calculation issues in pp_pack.c (bsc#1082216).
  • CVE-2018-6798: Fixed heap buffer overflow in regexec.c (bsc#1082233).
  • CVE-2018-6797: Fixed sharp-s regexp overflow (bsc#1082234).
  • CVE-2018-12015: The Archive::Tar module allowed remote attackers to bypass a directory-traversal protection mechanism and overwrite arbitrary files (bsc#1096718)

This non-security issue was fixed:

  • fix debugger crash in tab completion with Term::ReadLine::Gnu [bsc#1068565]
Record
SUSE-SU-2018:1972-2
Updated
2026-11-02
OSVUSN-3625-1 No score

perl vulnerabilities

It was discovered that Perl incorrectly handled certain regular expressions. An attacker could possibly use this issue to cause Perl to hang, resulting in a denial of service. This issue only affected Ubuntu 14.04 LTS. (CVE-2015-8853)

It was discovered that Perl incorrectly loaded libraries from the current working directory. A local attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2016-6185)

It was discovered that Perl incorrectly handled the rmtree and remove_tree functions. A local attacker could possibly use this issue to set the mode on arbitrary files. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2017-6512)

Brian Carpenter discovered that Perl incorrectly handled certain regular expressions. An attacker could use this issue to cause Perl to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue has only been addressed in Ubuntu 16.04 LTS and Ubuntu 17.10. (CVE-2018-6797)

Nguyen Duc Manh discovered that Perl incorrectly handled certain regular expressions. An attacker could use this issue to cause Perl to crash, resulting in a denial of service. This issue only affected Ubuntu 16.04 LTS and Ubuntu 17.10. (CVE-2018-6798)

GwanYeong Kim discovered that Perl incorrectly handled certain data when using the pack function. An attacker could use this issue to cause Perl to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2018-6913)

Record
USN-3625-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
perl
Alpine:v3.10
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.11
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.12
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.13
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.14
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.15
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.16
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.17
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.18
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.19
5.18 up to 5.26.2-r0
5.26.2-r0
Show 91 moreShow less
Affected packages
PackageAffectedFixed
perl
Alpine:v3.20
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.21
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.22
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.23
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.24
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.5
5.18 up to 5.24.4-r0
5.24.4-r0
perl
Alpine:v3.6
5.18 up to 5.24.4-r0
5.24.4-r0
perl
Alpine:v3.7
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.8
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Alpine:v3.9
5.18 up to 5.26.2-r0
5.26.2-r0
perl
Debian:12
before 5.26.1-6
5.26.1-6
perl
Debian:13
before 5.26.1-6
5.26.1-6
perl
Debian:14
before 5.26.1-6
5.26.1-6
perl
Mageia:6
before 5.22.3-3.2.mga6
5.22.3-3.2.mga6
rh-perl524-perl
Red Hat:rhel_software_collections:3::el6
before 4:5.24.0-380.el6
4:5.24.0-380.el6
rh-perl524-perl-Attribute-Handlers
Red Hat:rhel_software_collections:3::el6
before 0:0.99-380.el6
0:0.99-380.el6
rh-perl524-perl-Devel-Peek
Red Hat:rhel_software_collections:3::el6
before 0:1.23-380.el6
0:1.23-380.el6
rh-perl524-perl-Devel-SelfStubber
Red Hat:rhel_software_collections:3::el6
before 0:1.05-380.el6
0:1.05-380.el6
rh-perl524-perl-Errno
Red Hat:rhel_software_collections:3::el6
before 0:1.25-380.el6
0:1.25-380.el6
rh-perl524-perl-ExtUtils-Embed
Red Hat:rhel_software_collections:3::el6
before 0:1.33-380.el6
0:1.33-380.el6
rh-perl524-perl-ExtUtils-Miniperl
Red Hat:rhel_software_collections:3::el6
before 0:1.05-380.el6
0:1.05-380.el6
rh-perl524-perl-IO
Red Hat:rhel_software_collections:3::el6
before 0:1.36-380.el6
0:1.36-380.el6
rh-perl524-perl-IO-Zlib
Red Hat:rhel_software_collections:3::el6
before 1:1.10-380.el6
1:1.10-380.el6
rh-perl524-perl-Locale-Maketext-Simple
Red Hat:rhel_software_collections:3::el6
before 1:0.21-380.el6
1:0.21-380.el6
rh-perl524-perl-Math-BigInt-FastCalc
Red Hat:rhel_software_collections:3::el6
before 0:0.40-380.el6
0:0.40-380.el6
rh-perl524-perl-Math-BigRat
Red Hat:rhel_software_collections:3::el6
before 0:0.2608.02-380.el6
0:0.2608.02-380.el6
rh-perl524-perl-Math-Complex
Red Hat:rhel_software_collections:3::el6
before 0:1.59-380.el6
0:1.59-380.el6
rh-perl524-perl-Memoize
Red Hat:rhel_software_collections:3::el6
before 0:1.03-380.el6
0:1.03-380.el6
rh-perl524-perl-Module-Loaded
Red Hat:rhel_software_collections:3::el6
before 1:0.08-380.el6
1:0.08-380.el6
rh-perl524-perl-Net-Ping
Red Hat:rhel_software_collections:3::el6
before 0:2.43-380.el6
0:2.43-380.el6
rh-perl524-perl-Pod-Html
Red Hat:rhel_software_collections:3::el6
before 0:1.22-380.el6
0:1.22-380.el6
rh-perl524-perl-SelfLoader
Red Hat:rhel_software_collections:3::el6
before 0:1.23-380.el6
0:1.23-380.el6
rh-perl524-perl-Test
Red Hat:rhel_software_collections:3::el6
before 0:1.28-380.el6
0:1.28-380.el6
rh-perl524-perl-Time-Piece
Red Hat:rhel_software_collections:3::el6
before 0:1.31-380.el6
0:1.31-380.el6
rh-perl524-perl-bignum
Red Hat:rhel_software_collections:3::el6
before 0:0.42-380.el6
0:0.42-380.el6
rh-perl524-perl-core
Red Hat:rhel_software_collections:3::el6
before 0:5.24.0-380.el6
0:5.24.0-380.el6
rh-perl524-perl-debuginfo
Red Hat:rhel_software_collections:3::el6
before 4:5.24.0-380.el6
4:5.24.0-380.el6
rh-perl524-perl-devel
Red Hat:rhel_software_collections:3::el6
before 4:5.24.0-380.el6
4:5.24.0-380.el6
rh-perl524-perl-libnetcfg
Red Hat:rhel_software_collections:3::el6
before 4:5.24.0-380.el6
4:5.24.0-380.el6
rh-perl524-perl-libs
Red Hat:rhel_software_collections:3::el6
before 4:5.24.0-380.el6
4:5.24.0-380.el6
rh-perl524-perl-macros
Red Hat:rhel_software_collections:3::el6
before 4:5.24.0-380.el6
4:5.24.0-380.el6
rh-perl524-perl-open
Red Hat:rhel_software_collections:3::el6
before 0:1.10-380.el6
0:1.10-380.el6
rh-perl524-perl-tests
Red Hat:rhel_software_collections:3::el6
before 4:5.24.0-380.el6
4:5.24.0-380.el6
rh-perl524-perl-utils
Red Hat:rhel_software_collections:3::el6
before 0:5.24.0-380.el6
0:5.24.0-380.el6
rh-perl524-perl
Red Hat:rhel_software_collections:3::el7
before 4:5.24.0-380.el7
4:5.24.0-380.el7
rh-perl524-perl-Attribute-Handlers
Red Hat:rhel_software_collections:3::el7
before 0:0.99-380.el7
0:0.99-380.el7
rh-perl524-perl-Devel-Peek
Red Hat:rhel_software_collections:3::el7
before 0:1.23-380.el7
0:1.23-380.el7
rh-perl524-perl-Devel-SelfStubber
Red Hat:rhel_software_collections:3::el7
before 0:1.05-380.el7
0:1.05-380.el7
rh-perl524-perl-Errno
Red Hat:rhel_software_collections:3::el7
before 0:1.25-380.el7
0:1.25-380.el7
rh-perl524-perl-ExtUtils-Embed
Red Hat:rhel_software_collections:3::el7
before 0:1.33-380.el7
0:1.33-380.el7
rh-perl524-perl-ExtUtils-Miniperl
Red Hat:rhel_software_collections:3::el7
before 0:1.05-380.el7
0:1.05-380.el7
rh-perl524-perl-IO
Red Hat:rhel_software_collections:3::el7
before 0:1.36-380.el7
0:1.36-380.el7
rh-perl524-perl-IO-Zlib
Red Hat:rhel_software_collections:3::el7
before 1:1.10-380.el7
1:1.10-380.el7
rh-perl524-perl-Locale-Maketext-Simple
Red Hat:rhel_software_collections:3::el7
before 1:0.21-380.el7
1:0.21-380.el7
rh-perl524-perl-Math-BigInt-FastCalc
Red Hat:rhel_software_collections:3::el7
before 0:0.40-380.el7
0:0.40-380.el7
rh-perl524-perl-Math-BigRat
Red Hat:rhel_software_collections:3::el7
before 0:0.2608.02-380.el7
0:0.2608.02-380.el7
rh-perl524-perl-Math-Complex
Red Hat:rhel_software_collections:3::el7
before 0:1.59-380.el7
0:1.59-380.el7
rh-perl524-perl-Memoize
Red Hat:rhel_software_collections:3::el7
before 0:1.03-380.el7
0:1.03-380.el7
rh-perl524-perl-Module-Loaded
Red Hat:rhel_software_collections:3::el7
before 1:0.08-380.el7
1:0.08-380.el7
rh-perl524-perl-Net-Ping
Red Hat:rhel_software_collections:3::el7
before 0:2.43-380.el7
0:2.43-380.el7
rh-perl524-perl-Pod-Html
Red Hat:rhel_software_collections:3::el7
before 0:1.22-380.el7
0:1.22-380.el7
rh-perl524-perl-SelfLoader
Red Hat:rhel_software_collections:3::el7
before 0:1.23-380.el7
0:1.23-380.el7
rh-perl524-perl-Test
Red Hat:rhel_software_collections:3::el7
before 0:1.28-380.el7
0:1.28-380.el7
rh-perl524-perl-Time-Piece
Red Hat:rhel_software_collections:3::el7
before 0:1.31-380.el7
0:1.31-380.el7
rh-perl524-perl-bignum
Red Hat:rhel_software_collections:3::el7
before 0:0.42-380.el7
0:0.42-380.el7
rh-perl524-perl-core
Red Hat:rhel_software_collections:3::el7
before 0:5.24.0-380.el7
0:5.24.0-380.el7
rh-perl524-perl-debuginfo
Red Hat:rhel_software_collections:3::el7
before 4:5.24.0-380.el7
4:5.24.0-380.el7
rh-perl524-perl-devel
Red Hat:rhel_software_collections:3::el7
before 4:5.24.0-380.el7
4:5.24.0-380.el7
rh-perl524-perl-libnetcfg
Red Hat:rhel_software_collections:3::el7
before 4:5.24.0-380.el7
4:5.24.0-380.el7
rh-perl524-perl-libs
Red Hat:rhel_software_collections:3::el7
before 4:5.24.0-380.el7
4:5.24.0-380.el7
rh-perl524-perl-macros
Red Hat:rhel_software_collections:3::el7
before 4:5.24.0-380.el7
4:5.24.0-380.el7
rh-perl524-perl-open
Red Hat:rhel_software_collections:3::el7
before 0:1.10-380.el7
0:1.10-380.el7
rh-perl524-perl-tests
Red Hat:rhel_software_collections:3::el7
before 4:5.24.0-380.el7
4:5.24.0-380.el7
rh-perl524-perl-utils
Red Hat:rhel_software_collections:3::el7
before 0:5.24.0-380.el7
0:5.24.0-380.el7
perl
SUSE:Linux Enterprise Desktop 12 SP3
before 5.18.2-12.11.1
5.18.2-12.11.1
perl
SUSE:Linux Enterprise Server 12 SP3
before 5.18.2-12.11.1
5.18.2-12.11.1
perl
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 5.18.2-12.11.1
5.18.2-12.11.1
perl
SUSE:OpenStack Cloud 7
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
SUSE:Linux Enterprise Desktop 12 SP3
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
SUSE:Linux Enterprise Server 12-LTSS
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
SUSE:Linux Enterprise Server 12 SP1-LTSS
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
SUSE:Linux Enterprise Server 12 SP2-LTSS
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
SUSE:Linux Enterprise Server 12 SP3
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
SUSE:Enterprise Storage 4
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
SUSE:Linux Enterprise Server 12 SP2-BCL
before 5.18.2-12.14.1
5.18.2-12.14.1
perl
Ubuntu:Pro:14.04:LTS
All versions, plus listed versions
5.14.2-21build15.18.1-45.18.1-4build15.18.1-55.18.2-2
Show 12 moreShow less
5.18.2-2ubuntu15.18.2-2ubuntu1.15.18.2-2ubuntu1.35.18.2-2ubuntu1.45.18.2-2ubuntu1.65.18.2-2ubuntu1.75.18.2-2ubuntu1.7+esm35.18.2-2ubuntu1.7+esm45.18.2-2ubuntu1.7+esm55.18.2-2ubuntu1.7+esm75.18.2-2ubuntu1.7+esm85.18.2-2ubuntu1.7+esm9
None known
perl
Ubuntu:16.04:LTS
before 5.22.1-9ubuntu0.3, plus listed versions
5.20.2-65.22.1-35.22.1-45.22.1-55.22.1-75.22.1-85.22.1-95.22.1-9ubuntu0.2
5.22.1-9ubuntu0.3
perl
Ubuntu:14.04:LTS
before 5.18.2-2ubuntu1.4, plus listed versions
5.14.2-21build15.18.1-45.18.1-4build15.18.1-55.18.2-25.18.2-2ubuntu15.18.2-2ubuntu1.15.18.2-2ubuntu1.3
5.18.2-2ubuntu1.4

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 38 moreShow less
MoveEnter Open