{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-56406","id":"CVE-2024-56406","title":"Perl is vulnerable to a heap buffer overflow when transliterating non-ASCII bytes","description":"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 ","descriptionLong":"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.","published":"2025-04-13T13:16:09.841Z","updated":"2026-10-28T10:42:12.330670420Z","reserved":"2024-12-23T02:07:38.152Z","status":"Modified","rejected":false,"assigner":"CPANSec","metric":{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["perl"],"affectedProducts":[{"vendor":"perl","product":"perl","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"5.41.10","status":"affected","version":"5.41.0","versionType":"custom"},{"lessThan":"5.40.2-RC1","status":"affected","version":"5.39.0","versionType":"custom"},{"lessThan":"5.38.4-RC1","status":"affected","version":"5.33.1","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-122","CWE-787"],"aliases":[],"references":[{"url":"https://github.com/Perl/perl5/commit/87f42aa0e0096e9a346c9672aa3a0bd3bef8c1dd.patch","tags":["patch","Patch","fix"]},{"url":"https://metacpan.org/release/SHAY/perl-5.38.4/changes","tags":["release-notes","Release Notes","advisory"]},{"url":"https://metacpan.org/release/SHAY/perl-5.40.2/changes","tags":["release-notes","Release Notes","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2025/04/13/3","tags":["Mailing List","web"]},{"url":"http://www.openwall.com/lists/oss-security/2025/04/13/4","tags":["Mailing List","web"]},{"url":"http://www.openwall.com/lists/oss-security/2025/04/13/5","tags":["Mailing List","web"]},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/Perl/perl5/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56406.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56406","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00536,"epssPercentile":0.45961,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-56406","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56406","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-56406","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-56406","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}