{ "document": { "category": "csaf_security_advisory", "csaf_version": "2.0", "distribution": { "tlp": { "label": "WHITE", "url": "https://www.first.org/tlp/" } }, "lang": "en", "notes": [ { "category": "description", "text": "A heap buffer overflow vulnerability was discovered in Perl. 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.", "title": "Vulnerability Description" } ], "publisher": { "category": "other", "contact_details": "gdt@cpan.org", "name": "giterlizzi", "namespace": "https://github.com/giterlizzi/" }, "references": [ { "category": "self", "summary": "CPANSA-perl-2024-56406 JSON", "url": "https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2025/cpansa-perl-2024-56406.json" }, { "category": "external", "summary": "https://github.com/Perl/perl5/commit/87f42aa0e0096e9a346c9672aa3a0bd3bef8c1dd.patch", "url": "https://github.com/Perl/perl5/commit/87f42aa0e0096e9a346c9672aa3a0bd3bef8c1dd.patch" }, { "category": "external", "summary": "https://metacpan.org/release/SHAY/perl-5.38.4/changes", "url": "https://metacpan.org/release/SHAY/perl-5.38.4/changes" }, { "category": "external", "summary": "https://metacpan.org/release/SHAY/perl-5.40.2/changes", "url": "https://metacpan.org/release/SHAY/perl-5.40.2/changes" }, { "category": "external", "summary": "http://www.openwall.com/lists/oss-security/2025/04/13/3", "url": "http://www.openwall.com/lists/oss-security/2025/04/13/3" }, { "category": "external", "summary": "http://www.openwall.com/lists/oss-security/2025/04/13/4", "url": "http://www.openwall.com/lists/oss-security/2025/04/13/4" }, { "category": "external", "summary": "CVE-2024-56406 (NVD)", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-56406" } ], "title": "perl vulnerability", "tracking": { "current_release_date": "2025-04-13T00:00:00", "generator": { "engine": { "name": "CSAF Perl Toolkit", "version": "0.26" } }, "id": "CPANSA-perl-2024-56406", "initial_release_date": "2025-04-13T00:00:00", "revision_history": [ { "date": "2025-04-13T00:00:00", "number": "1", "summary": "First release" } ], "status": "final", "version": "1" } }, "product_tree": { "branches": [ { "branches": [ { "category": "product_version_range", "name": "vers:cpan/>0|<5.38.4", "product": { "name": "perl greater than 0 and less than 5.38.4", "product_id": "CSAFPID-0001" } }, { "category": "product_version_range", "name": "vers:cpan/>=5.40.0|<5.40.2", "product": { "name": "perl greater than or equal 5.40.0 and less than 5.40.2", "product_id": "CSAFPID-0002" } }, { "category": "product_version_range", "name": "vers:cpan/>=5.40.1", "product": { "name": "perl greater than or equal 5.40.1", "product_id": "CSAFPID-0003" } }, { "category": "product_version_range", "name": "vers:cpan/>=5.38.4|<5.40.0", "product": { "name": "perl greater than or equal 5.38.4 and less than 5.40.0", "product_id": "CSAFPID-0004" } } ], "category": "product_name", "name": "perl" } ] }, "vulnerabilities": [ { "cve": "CVE-2024-56406", "cwe": { "id": "CWE-122", "name": "Heap-based Buffer Overflow" }, "notes": [ { "category": "description", "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   $ 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.", "title": "Vulnerability Description" } ], "product_status": { "fixed": [ "CSAFPID-0003", "CSAFPID-0004" ], "known_affected": [ "CSAFPID-0001", "CSAFPID-0002" ] }, "scores": [ { "cvss_v3": { "baseScore": 8.4, "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "version": "3.1" }, "products": [ "CSAFPID-0001", "CSAFPID-0002" ] } ] } ] }