{"id":"UBUNTU-CVE-2024-56406","details":"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.","modified":"2026-04-22T15:21:32.149942Z","published":"2025-04-13T13:00:00Z","related":["USN-7434-1","USN-7434-2"],"upstream":["CVE-2024-56406"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-56406"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-56406"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7434-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7434-2"}],"affected":[{"package":{"name":"perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/perl@5.34.0-3ubuntu1.4?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.34.0-3ubuntu1.4"}]}],"versions":["5.32.1-3ubuntu3","5.34.0-3ubuntu1","5.34.0-3ubuntu1.1","5.34.0-3ubuntu1.2","5.34.0-3ubuntu1.3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libperl5.34","binary_version":"5.34.0-3ubuntu1.4"},{"binary_version":"5.34.0-3ubuntu1.4","binary_name":"perl"},{"binary_version":"5.34.0-3ubuntu1.4","binary_name":"perl-base"},{"binary_name":"perl-debug","binary_version":"5.34.0-3ubuntu1.4"},{"binary_name":"perl-modules-5.34","binary_version":"5.34.0-3ubuntu1.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56406.json"}},{"package":{"name":"perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/perl@5.38.2-3.2ubuntu0.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.38.2-3.2ubuntu0.1"}]}],"versions":["5.36.0-9ubuntu1","5.36.0-10ubuntu1","5.38.2-3","5.38.2-3.2","5.38.2-3.2build1","5.38.2-3.2build2","5.38.2-3.2build2.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libperl5.38t64","binary_version":"5.38.2-3.2ubuntu0.1"},{"binary_name":"perl","binary_version":"5.38.2-3.2ubuntu0.1"},{"binary_name":"perl-base","binary_version":"5.38.2-3.2ubuntu0.1"},{"binary_name":"perl-debug","binary_version":"5.38.2-3.2ubuntu0.1"},{"binary_name":"perl-modules-5.38","binary_version":"5.38.2-3.2ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56406.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}