Critical Heap Buffer Overflow Vulnerability in Perl Package

perl Updated 02 Oct 2025

Summary

13/05/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:7500: Important: perl security update. Affects perl versions < 4:5.40.2-512.1.el10_0. Fixed in 4:5.40.2-512.1.el10_0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Perl is a high-level programming language widely used for system administration, web programming, and various utilities. It is known for its flexibility and capability to handle complex tasks efficiently. However, certain versions of Perl, specifically 5.34, 5.36, 5.38, and 5.40, are vulnerable to a heap buffer overflow when transliterating non-ASCII bytes, which can lead to severe security risks.

Vulnerability Detail

The vulnerability identified as CVE-2024-56406 arises from a heap buffer overflow in the Perl programming language. This flaw occurs during the transliteration process of non-ASCII bytes, potentially allowing an attacker to exploit the overflow to execute arbitrary code or cause a denial of service. The technical implications of this vulnerability can lead to unauthorized access to sensitive data or system resources, making it critical for users to address it promptly.

How To Fix

Minimum fixed version

4:5.40.2-512.1.el10_0

This is the first release that contains the fix.

sudo dnf update perl

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not feasible, consider restricting the use of non-ASCII bytes in your Perl scripts as a temporary measure to minimize exposure to the vulnerability until a proper update can be applied.

Conclusion

The heap buffer overflow vulnerability in Perl poses significant security risks, particularly for applications that handle non-ASCII bytes. It is crucial for users to update their Perl packages to the patched version to safeguard against potential exploits. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for perl →

Share this vulnerability

FAQ

CVE-2024-56406 is a vulnerability in certain versions of the Perl programming language that allows for a heap buffer overflow during the transliteration of non-ASCII bytes.

The affected versions include Perl 5.34, 5.36, 5.38, and 5.40.

Exploitation of this vulnerability can lead to arbitrary code execution, unauthorized access to sensitive data, or denial of service.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.

As a temporary workaround, avoid using non-ASCII bytes in your Perl scripts until you can apply the necessary updates.

Related vulnerabilities

Recent vulnerabilities recorded for perl.

How To Fix

Minimum fixed version

4:5.40.2-512.1.el10_0

This is the first release that contains the fix.

sudo dnf update perl

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback