CVE-2018-6913: Buffer Overflow

Published Feb 21, 2018
·
Updated

A flaw was found in Perl 5. Vulnerable code in pppack.c file accepts either large blocks of data from untrusted sources and/or duplicates such blocks, which allows an attacker to exploit this vulnerability at runtime by supplying malicious crafted data. This could result in a denial-of-service (DoS) attack.

Other sources

Heap-based buffer overflow in the pack function in Perl before 5.26.2 allows context-dependent attackers to execute arbitrary code via a large item count.

— Launchpad

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

Credit

Brian Carpenter, GwanYeong Kim

Affected Software

18 affected componentsFixes available
Apple macOS High Sierra<10.13.6
10.13.6
Apple Sierra
Apple El Capitan
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Perl Perl<5.26.2
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
F5 BIG-IP=17.5.0, >=17.1.0<=17.1.2
17.5.117.1.3
F5 BIG-IP>=16.1.0<=16.1.6
F5 BIG-IP>=15.1.0<=15.1.10
F5 BIG-IQ Centralized Management>=8.2.0<=8.4.0
debian/perl
5.32.1-4+deb11u35.32.1-4+deb11u55.36.0-7+deb12u35.36.0-7+deb12u25.40.1-65.40.1-8
redhat/perl<5.26.2
5.26.2
redhat/perl<5.24.4
5.24.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade macOS High Sierra to a version that resolves this vulnerability.

    Fixed in 10.13.6
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 17.5.117.1.3
  3. Upgrade

    Upgrade debian/perl to a version that resolves this vulnerability.

    Fixed in 5.32.1-4+deb11u3Fixed in 5.32.1-4+deb11u5Fixed in 5.36.0-7+deb12u3Fixed in 5.36.0-7+deb12u2Fixed in 5.40.1-6Fixed in 5.40.1-8
  4. Upgrade

    Upgrade redhat/perl to a version that resolves this vulnerability.

    Fixed in 5.26.2
  5. Upgrade

    Upgrade redhat/perl to a version that resolves this vulnerability.

    Fixed in 5.24.4
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.26.2

Event History

Feb 21, 2018
Data Sourced
via Red Hat·10:31 PM
DescriptionSeverityAffected Software
Apr 14, 2018
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedySeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Apr 17, 2018
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Aug 24, 2020
Data Sourced
05:37 PM
Weakness
Data Sourced
via NVD·05:37 PM
DescriptionSeverityWeaknessAffected Software
Updated
05:37 PM
Affected Software
Oct 1, 2024
Advisory Published
via F5·09:26 PM
Data Sourced
via F5·09:26 PM
DescriptionSeverityWeaknessAffected Software
Nov 21, 2024
Updated
via NVD·04:11 AM
Affected Software
Mar 27, 2025
Updated
via F5·02:41 AM
Affected Software
Apr 29, 2025
Updated
via F5·10:36 PM
Affected Software
Jun 27, 2025
Updated
via F5·09:02 AM
Affected Software
Oct 15, 2025
Updated
via F5·06:27 AM
Affected Software
Event
via F5·06:27 AM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2018-6913?

CVE-2018-6913 is a vulnerability in Perl that allows attackers to execute arbitrary code through a heap-based buffer overflow in the pack function.

2

How severe is CVE-2018-6913?

CVE-2018-6913 is classified as critical with a severity rating of 9.8.

3

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

Perl versions before 5.26.2 are affected by CVE-2018-6913.

4

How can I fix CVE-2018-6913?

To fix CVE-2018-6913, update Perl to version 5.26.2 or later.

5

Where can I find more information about CVE-2018-6913?

You can find more information about CVE-2018-6913 on the MITRE CVE database and the Ubuntu security notices.

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