CVE-2018-6797: Buffer Overflow

Published Feb 21, 2018
·
Updated

A flaw was found in Perl 5. A heap write overflow in regcomp.c file might be exploited when a perl program allows user input of patterns. A crafted regular expression can cause the heap buffer overflow, with control over the bytes written.

Other sources

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.

Launchpad

Perl. Multiple issues in Perl were addressed with improved memory handling.

Credit

Brian Carpenter, GwanYeong Kim

Affected Software

20 affected componentsFixes available
redhat/perl<5.26.2
5.26.2
redhat/perl<5.24.4
5.24.4
Apple macOS Mojave<10.14.1
10.14.1
Apple High Sierra
Apple Sierra
Apple macOS High Sierra<10.13.6
10.13.6
Apple El Capitan
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Perl Perl>=5.18<=5.26
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server=7.3
redhat Enterprise Linux Server=7.4
redhat Enterprise Linux Server=7.5
redhat Enterprise Linux Server=7.6
redhat Enterprise Linux Workstation=6.0
redhat Enterprise Linux Workstation=7.0
debian/perl
5.32.1-4+deb11u35.32.1-4+deb11u45.36.0-7+deb12u35.36.0-7+deb12u25.40.1-65.40.1-7

Event History

Apr 17, 2018
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Data Sourced
via NVD·08:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:09 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·12:14 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·12:14 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-6797?

CVE-2018-6797 is a vulnerability in Perl 5.18 through 5.26 that allows a crafted regular expression to cause a heap-based buffer overflow.

2

What is the severity of CVE-2018-6797?

CVE-2018-6797 has a severity rating of 9.8, which is considered critical.

3

How does CVE-2018-6797 affect Perl?

CVE-2018-6797 affects Perl versions 5.18 through 5.26.

4

Which software versions are affected by CVE-2018-6797?

CVE-2018-6797 affects Perl versions 5.18 through 5.26 on various operating systems including Ubuntu, Debian, Red Hat, and macOS.

5

How can I fix CVE-2018-6797?

To fix CVE-2018-6797, update Perl to version 5.22.1-9ubuntu0.3 for Ubuntu, 5.26.0-8ubuntu1.1 for Ubuntu Artful, or the respective fixed versions for other operating systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203