VulnarioBlogPerl vulnerabilities

Perl Vulnerabilities: The 10 Most Critical Perl Security Bugs (CVEs)

Perl vulnerabilities are security flaws in Perl that attackers can abuse to steal data, take over a server or interrupt a service. Perl is a long-standing scripting language still used in system administration and legacy web code. The National Vulnerability Database (NVD) lists 46 CVEs for Perl, 13 of them rated critical, and 4 were published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.

This guide lists the 10 most critical Perl security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Perl security basics, the current end-of-life dates and a free way to be told about the next Perl CVE as soon as it is published.

Key takeaways

  • No Perl CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
  • 13 Perl CVEs are rated critical (CVSS v3), and 4 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2026-8376, published May 26, 2026.
  • Supported Perl releases today (per endoflife.date): 5.44, 5.42, 5.40. Releases not on the list are past their announced end of life.
  • You can monitor Perl for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these Perl CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical Perl CVEs at a glance

Most critical Perl vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2026-83769.8 Critical2026-05-26Buffer overflowNo
2CVE-2026-41769.8 Critical2026-03-29Critical security flawNo
3CVE-2022-485229.8 Critical2023-08-22Out-of-bounds writeNo
4CVE-2018-183119.8 Critical2018-12-07Integer overflowNo
5CVE-2018-183149.8 Critical2018-12-07Memory buffer overflowNo
6CVE-2018-183129.8 Critical2018-12-05Memory buffer overflowNo
7CVE-2018-67979.8 Critical2018-04-17Out-of-bounds writeNo
8CVE-2018-69139.8 Critical2018-04-17Out-of-bounds writeNo
9CVE-2017-128149.8 Critical2017-09-28Memory buffer overflowNo
10CVE-2015-86089.8 Critical2017-02-07Out-of-bounds readNo

Each Perl CVE explained

1. CVE-2026-8376: Buffer overflow

  • CVSS 9.8 Critical
  • Published 2026-05-26
  • CWE-680
What NVD says
Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds. Perl_study_chunk in regcomp_study.c checked the size of the joined substring buffer in characters rather than bytes.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 5.43.10
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2026-8376 (opens in a new tab)

2. CVE-2026-4176: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2026-03-29
What NVD says
Perl versions from 5.9.4 before 5.40.4-RC1, from 5.41.0 before 5.42.2-RC1, from 5.43.0 before 5.43.9 contain a vulnerable version of Compress::Raw::Zlib. Compress::Raw::Zlib is included in the Perl package as a dual-life core module, and is vulnerable to CVE-2026-3381 due to a vendored version of zlib which has several vulnerabilities, including CVE-2026-27171.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
5.9.4 to before 5.40.4; 5.41.0 to before 5.42.2; 5.43.0 to before 5.43.9
What to do
Upgrade to the fixed release for your branch (5.40.4, 5.42.2, 5.43.9) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-4176 (opens in a new tab)

3. CVE-2022-48522: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2023-08-22
  • CWE-787
What NVD says
In Perl 5.34.0, function S_find_uninit_var in sv.c has a stack-based crash that can lead to remote code execution or local privilege escalation.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
5.34.0
What to do
Apply the vendor's security update for your release and restart the service.

NVD record for CVE-2022-48522 (opens in a new tab)

4. CVE-2018-18311: Integer overflow

  • CVSS 9.8 Critical
  • Published 2018-12-07
  • CWE-190
What NVD says
Perl 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.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 5.26.3; 5.28.0 to before 5.28.1
What to do
Upgrade to the fixed release for your branch (5.26.3, 5.28.1) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2018-18311 (opens in a new tab)

5. CVE-2018-18314: Memory buffer overflow

  • CVSS 9.8 Critical
  • Published 2018-12-07
  • CWE-119
What NVD says
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 5.26.3
What to do
Upgrade to 5.26.3 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2018-18314 (opens in a new tab)

6. CVE-2018-18312: Memory buffer overflow

  • CVSS 9.8 Critical
  • Published 2018-12-05
  • CWE-119
What NVD says
Perl 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.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 5.26.3; 5.28.0 to before 5.28.1
What to do
Upgrade to the fixed release for your branch (5.26.3, 5.28.1) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2018-18312 (opens in a new tab)

7. CVE-2018-6797: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2018-04-17
  • CWE-787
What NVD says
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.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
5.18 through 5.26
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2018-6797 (opens in a new tab)

8. CVE-2018-6913: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2018-04-17
  • CWE-787
What NVD says
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.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 5.26.2
What to do
Upgrade to 5.26.2 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2018-6913 (opens in a new tab)

9. CVE-2017-12814: Memory buffer overflow

  • CVSS 9.8 Critical
  • Published 2017-09-28
  • CWE-119
What NVD says
Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before 5.26.1-RC1 on Windows allows attackers to execute arbitrary code via a long environment variable.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 5.24.2; 5.26.0
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2017-12814 (opens in a new tab)

10. CVE-2015-8608: Out-of-bounds read

  • CVSS 9.8 Critical
  • Published 2017-02-07
  • CWE-125
What NVD says
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of-bounds read) and possibly execute arbitrary code via a crafted (1) drive letter or (2) pInName argument.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
5.22
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2015-8608 (opens in a new tab)

Perl end of life: which versions still get security fixes

Running a release that still receives security fixes is the most effective way to avoid Perl vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported Perl releases are 5.44, 5.42, 5.40.

Perl release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
Perl 5.44Jul 15, 2026Jul 15, 20295.44.0Supported
Perl 5.42Jul 3, 2025Jul 3, 20285.42.3Supported
Perl 5.40Jun 9, 2024Jun 9, 20275.40.5Supported
Perl 5.38Jul 2, 2023Jul 2, 20265.38.5End of life
Perl 5.36May 27, 2022May 27, 20255.36.3End of life
Perl 5.34May 20, 2021May 20, 20245.34.3End of life
Perl 5.32Jun 20, 2020Jun 20, 20235.32.1End of life
Perl 5.30May 22, 2019May 22, 20225.30.3End of life

Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.

How to check if your Perl is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

perl -v

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

Perl security checklist

  1. Run a supported release and move to the next branch before the current one reaches end of life.
  2. Apply patch releases promptly.
  3. Pin and audit your dependencies, and update the vulnerable ones.
  4. Run applications as an unprivileged user.
  5. Disable features and functions your application does not need.

Where you run Perl matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating Perl: on most plans the operating system and applications are yours to patch unless the plan says otherwise.

Your stack is bigger than Perl. A flaw anywhere in the chain can be the way in, so also review our guides to Apache HTTP Server vulnerabilities, Debian vulnerabilities and Exim vulnerabilities.

How to get alerted about new Perl vulnerabilities

NVD received 4 new Perl CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Perl and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run Perl alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about Perl vulnerabilities

What are the most critical Perl vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Perl CVEs include CVE-2026-8376 (CVSS 9.8), CVE-2026-4176 (CVSS 9.8), CVE-2022-48522 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.

Have Perl vulnerabilities been exploited in real attacks?

For the Perl product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep Perl patched.

How many vulnerabilities does Perl have?

As of Nov 3, 2026 the National Vulnerability Database lists 46 CVEs for Perl, with 13 rated critical by CVSS v3. 4 were published in the previous twelve months.

Which Perl versions are still supported?

As of Nov 3, 2026, endoflife.date lists these Perl releases as supported: 5.44, 5.42, 5.40. Releases that are not listed are past their announced end of life.

How do I check which Perl version I run?

Run perl -v on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new Perl CVE is published?

Add Perl to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Perl and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is Perl secure?

Perl is as secure as its patch level. NVD published 4 new Perl CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2026-8376?

CVE-2026-8376 is a critical Perl vulnerability with a CVSS score of 9.8, published May 26, 2026. Perl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have a heap buffer overflow when compiling regular expressions with a repeated fixed string on 32-bit builds.

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.