{"id":"ALPINE-CVE-2024-56406","details":"A heap buffer overflow vulnerability was discovered in Perl. \n\nRelease branches 5.34, 5.36, 5.38 and 5.40 are affected, including development versions from 5.33.1 through 5.41.10.\n\nWhen there are non-ASCII bytes in the left-hand-side of the `tr` operator, `S_do_trans_invmap` can overflow the destination pointer `d`.\n\n   $ perl -e '$_ = \"\\x{FF}\" x 1000000; tr/\\xFF/\\x{100}/;' \n   Segmentation fault (core dumped)\n\nIt is believed that this vulnerability can enable Denial of Service and possibly Code Execution attacks on platforms that lack sufficient defenses.","modified":"2026-03-09T01:23:50.917022Z","published":"2025-04-13T14:15:14.527Z","upstream":["CVE-2024-56406"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2024-56406"}],"affected":[{"package":{"name":"perl","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.36.2-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0","5.34.0-r1","5.34.1-r0","5.36.0-r0","5.36.0-r1","5.36.0-r2","5.36.0-r3","5.36.1-r0","5.36.1-r1","5.36.1-r2","5.36.2-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-56406.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.38.3-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0","5.34.0-r1","5.34.1-r0","5.36.0-r0","5.36.0-r1","5.36.0-r2","5.36.0-r3","5.36.1-r0","5.36.1-r1","5.36.1-r2","5.36.1-r3","5.38.0-r0","5.38.1-r0","5.38.2-r0","5.38.3-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-56406.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.38.3-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0","5.34.0-r1","5.34.1-r0","5.36.0-r0","5.36.0-r1","5.36.0-r2","5.36.0-r3","5.36.1-r0","5.36.1-r1","5.36.1-r2","5.36.1-r3","5.38.0-r0","5.38.1-r0","5.38.2-r0","5.38.3-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-56406.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.40.1-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0","5.34.0-r1","5.34.1-r0","5.36.0-r0","5.36.0-r1","5.36.0-r2","5.36.0-r3","5.36.1-r0","5.36.1-r1","5.36.1-r2","5.36.1-r3","5.38.0-r0","5.38.1-r0","5.38.2-r0","5.40.0-r0","5.40.0-r1","5.40.0-r2","5.40.0-r3","5.40.1-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-56406.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.40.1-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0","5.34.0-r1","5.34.1-r0","5.36.0-r0","5.36.0-r1","5.36.0-r2","5.36.0-r3","5.36.1-r0","5.36.1-r1","5.36.1-r2","5.36.1-r3","5.38.0-r0","5.38.1-r0","5.38.2-r0","5.40.0-r0","5.40.0-r1","5.40.0-r2","5.40.0-r3","5.40.1-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-56406.json"}},{"package":{"name":"perl","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/perl?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.40.1-r1"}]}],"versions":["5.10.0-r0","5.10.0-r1","5.10.1-r0","5.10.1-r1","5.10.1-r2","5.12.1-r0","5.12.2-r0","5.12.2-r1","5.12.3-r0","5.14.0-r0","5.14.1-r0","5.14.2-r0","5.14.2-r1","5.16.0-r0","5.16.1-r0","5.16.2-r0","5.16.3-r0","5.18.0-r0","5.18.1-r0","5.18.2-r0","5.20.0-r0","5.20.1-r0","5.20.2-r0","5.20.2-r1","5.22.0-r0","5.22.1-r0","5.22.2-r0","5.24.0-r0","5.24.0-r1","5.24.0-r2","5.24.1-r0","5.24.1-r1","5.24.1-r2","5.26.0-r0","5.26.1-r0","5.26.1-r1","5.26.2-r0","5.26.2-r1","5.26.3-r0","5.28.1-r0","5.28.2-r0","5.28.2-r1","5.30.0-r0","5.30.0-r1","5.30.0-r2","5.30.1-r0","5.30.2-r0","5.30.3-r0","5.30.3-r1","5.30.3-r2","5.32.0-r0","5.32.1-r0","5.34.0-r0","5.34.0-r1","5.34.1-r0","5.36.0-r0","5.36.0-r1","5.36.0-r2","5.36.0-r3","5.36.1-r0","5.36.1-r1","5.36.1-r2","5.36.1-r3","5.38.0-r0","5.38.1-r0","5.38.2-r0","5.40.0-r0","5.40.0-r1","5.40.0-r2","5.40.0-r3","5.40.1-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2024-56406.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}