Skip to main content
VulnerabilityPublished Updated

CVE-2024-56406: A heap buffer overflow vulnerability was discovered in Perl

Affects perlSource GCVE Database

0
Compare

Not known to be exploited · CVSS 8.4 High · fixed in 5.34.0-3ubuntu1.4 : patch perl soon.

Data as of 24 Nov 2026, 19:42 UTC

CVSS 3.1 base score
8.4High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 5.34.0-3ubuntu1.4, 5.38.2-3.2ubuntu0.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Apr 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade the Ubuntu perl to 5.34.0-3ubuntu1.4 (package) or 5.38.2-3.2ubuntu0.1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=nobleOther threatsAffected
  • <5.38.2-3.2ubuntu0.1
Fixed in
  • 5.38.2-3.2ubuntu0.1
Ubuntu 22.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=jammyOther threatsAffected
  • <5.34.0-3ubuntu1.4
Fixed in
  • 5.34.0-3ubuntu1.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

A heap buffer overflow vulnerability was discovered in Perl. Release branches 5.34, 5.36, 5.38 and 5.40 are affected, including development versions from 5.33.1 through 5.41.10. When there are non-ASCII bytes in the left-hand-side of the `tr` operator, `S_do_trans_invmap` can overflow the destination pointer `d`. $ perl -e '$_ = "\x{FF}" x 1000000; tr/\xFF/\x{100}/;'    Segmentation fault (core dumped) It is believed that this vulnerability can enable Denial of Service and possibly Code Execution attacks on platforms that lack sufficient defenses.

References

Community reviews

Loading reviews…