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
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2026-8376 | 9.8 Critical | 2026-05-26 | Buffer overflow | No |
| 2 | CVE-2026-4176 | 9.8 Critical | 2026-03-29 | Critical security flaw | No |
| 3 | CVE-2022-48522 | 9.8 Critical | 2023-08-22 | Out-of-bounds write | No |
| 4 | CVE-2018-18311 | 9.8 Critical | 2018-12-07 | Integer overflow | No |
| 5 | CVE-2018-18314 | 9.8 Critical | 2018-12-07 | Memory buffer overflow | No |
| 6 | CVE-2018-18312 | 9.8 Critical | 2018-12-05 | Memory buffer overflow | No |
| 7 | CVE-2018-6797 | 9.8 Critical | 2018-04-17 | Out-of-bounds write | No |
| 8 | CVE-2018-6913 | 9.8 Critical | 2018-04-17 | Out-of-bounds write | No |
| 9 | CVE-2017-12814 | 9.8 Critical | 2017-09-28 | Memory buffer overflow | No |
| 10 | CVE-2015-8608 | 9.8 Critical | 2017-02-07 | Out-of-bounds read | No |
Each Perl CVE explained
1. CVE-2026-8376: Buffer overflow
- 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).
2. CVE-2026-4176: Critical security flaw
- 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)
3. CVE-2022-48522: Out-of-bounds write
- 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.
4. CVE-2018-18311: Integer overflow
- 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)
5. CVE-2018-18314: Memory buffer overflow
- 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)
6. CVE-2018-18312: Memory buffer overflow
- 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)
7. CVE-2018-6797: Out-of-bounds write
- 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).
8. CVE-2018-6913: Out-of-bounds write
- 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)
9. CVE-2017-12814: Memory buffer overflow
- 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).
10. CVE-2015-8608: Out-of-bounds read
- 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).
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.
| Release | Released | End of life | Latest | Status |
|---|---|---|---|---|
| Perl 5.44 | Jul 15, 2026 | Jul 15, 2029 | 5.44.0 | Supported |
| Perl 5.42 | Jul 3, 2025 | Jul 3, 2028 | 5.42.3 | Supported |
| Perl 5.40 | Jun 9, 2024 | Jun 9, 2027 | 5.40.5 | Supported |
| Perl 5.38 | Jul 2, 2023 | Jul 2, 2026 | 5.38.5 | End of life |
| Perl 5.36 | May 27, 2022 | May 27, 2025 | 5.36.3 | End of life |
| Perl 5.34 | May 20, 2021 | May 20, 2024 | 5.34.3 | End of life |
| Perl 5.32 | Jun 20, 2020 | Jun 20, 2023 | 5.32.1 | End of life |
| Perl 5.30 | May 22, 2019 | May 22, 2022 | 5.30.3 | End 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
- Run a supported release and move to the next branch before the current one reaches end of life.
- Apply patch releases promptly.
- Pin and audit your dependencies, and update the vulnerable ones.
- Run applications as an unprivileged user.
- 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.
Related security guides
Few stacks run Perl alone. These guides cover the technologies it is most often deployed with.
- Apache HTTP Server vulnerabilities: Apache HTTP Server is one of the most widely deployed open-source web servers.
- Debian vulnerabilities: Debian is a long-established community Linux distribution used widely on servers.
- Exim vulnerabilities: Exim is a mail transfer agent (MTA) used by default on many hosting servers.
- Go vulnerabilities: Go (Golang) is Google's compiled programming language used for cloud and network software.
- Java vulnerabilities: Java is the language and runtime behind a large share of enterprise software.
- Log4j vulnerabilities: Apache Log4j is the Java logging library at the center of the Log4Shell crisis.
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
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
- endoflife.date: Perl (opens in a new tab), release and support dates, checked Nov 3, 2026.
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.