{"id":"JLSEC-2026-1395","aliases":["JLSEC-2026-1395"],"related":["CVE-2024-56406","EUVD-2024-54400","GHSA-p6jf-pv8c-623c"],"kind":"vulnerability","state":"published","title":"A heap buffer overflow vulnerability was discovered in Perl. When there are non-ASCII bytes in...","summary":"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```\n$ perl -e '`$_` = \"`\\x`{FF}\" x 1000000; `tr/\\xFF/\\x`{100}/;'\n   Segmentation fault (core dumped)\n```\n\nIt is believed that this vulnerability can enable Denial of Service and possibly Code Execution attacks on platforms that lack sufficient defenses.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"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```\n$ perl -e '`$_` = \"`\\x`{FF}\" x 1000000; `tr/\\xFF/\\x`{100}/;'\n   Segmentation fault (core dumped)\n```\n\nIt is believed that this vulnerability can enable Denial of Service and possibly Code Execution attacks on platforms that lack sufficient defenses.","format":"markdown","source":"jlsec"}],"published":"2026-11-23T15:17:06.961Z","modified":"2026-11-23T15:43:34.614Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"5.34.0+0","status":"affected"}],"ecosystem":"Julia","package":"Perl_jll","purl":"pkg:julia/Perl_jll?uuid=83958c19-0796-5285-893e-a1267f8ec499","source":"jlsec"}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2025/04/13/3","tags":["web"],"sources":["jlsec"]},{"url":"http://www.openwall.com/lists/oss-security/2025/04/13/4","tags":["web"],"sources":["jlsec"]},{"url":"http://www.openwall.com/lists/oss-security/2025/04/13/5","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/Perl/perl5/commit/87f42aa0e0096e9a346c9672aa3a0bd3bef8c1dd.patch","tags":["web"],"sources":["jlsec"]},{"url":"https://github.com/advisories/GHSA-p6jf-pv8c-623c","tags":["web"],"sources":["jlsec"]},{"url":"https://metacpan.org/release/SHAY/perl-5.38.4/changes","tags":["web"],"sources":["jlsec"]},{"url":"https://metacpan.org/release/SHAY/perl-5.40.2/changes","tags":["web"],"sources":["jlsec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56406","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2026-1395","url":"https://osv.dev/vulnerability/JLSEC-2026-1395","licence":"CC-BY-4.0","modified":"2026-11-23T15:43:34.614Z"}],"updatedAt":"2026-11-25T22:56:25.966Z"}