VULNERABILITY

FreeBSD: VID-A380F43E-19E5-11F0-9568-B42E991FC52E (CVE-2024-56406): Perl -- heap buffer overflow when transliterating non-ASCII bytes

Try Surface Command Get a continuous 360° view of your attack surface
Back to Search

FreeBSD: VID-A380F43E-19E5-11F0-9568-B42E991FC52E (CVE-2024-56406): Perl -- heap buffer overflow when transliterating non-ASCII bytes

Severity
9
CVSS
(AV:N/AC:L/Au:N/C:P/I:P/A:C)
Published
04/13/2025
Created
04/18/2025
Added
04/16/2025
Modified
04/24/2025

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.

Solution(s)

  • freebsd-upgrade-package-perl5-36
  • freebsd-upgrade-package-perl5-38
  • freebsd-upgrade-package-perl5-40
  • freebsd-upgrade-package-perl5-devel

insightVM

Advanced vulnerability management analytics and reporting.
Key Features
  • Lightweight Endpoint Agent
  • Live Dashboards
  • Real Risk Prioritization
  • IT-Integrated Remediation Projects
  • Cloud, Virtual, and Container Assessment
  • Integrated Threat Feeds
  • Easy-to-Use RESTful API
  • Automation-Assisted Patching
  • Automated Containment
Free InsightVM Trial View All Features

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;