{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-56406 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-56406 is a high-severity memory corruption vulnerability in perl, published on 13 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-56406 and fix it if it is affected.\n\nWhat it is: CVE-2024-56406 is a high-severity memory corruption vulnerability in perl, published on 13 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-56406 in the wild and no public exploit code.\n\nAffected product: perl. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-56406/ (Markdown: https://insights.sbomify.com/CVE-2024-56406/index.md)","id":"CVE-2024-56406","markdown":"https://insights.sbomify.com/CVE-2024-56406/index.md","name":"CVE-2024-56406","record":{"aliases":["ALPINE-CVE-2024-56406","ALSA-2025:7500","AZL-60384","AZL-60409","BELL-CVE-2024-56406","DEBIAN-CVE-2024-56406","DSA-5902-1","GHSA-p6jf-pv8c-623c","MINI-9chw-ggjf-xhp4","MINI-9g43-q5q5-gw9j","MINI-rchm-g487-qw2c","OESA-2025-1470","OESA-2025-1471","OESA-2025-1472","OESA-2025-1473","RHSA-2025:7500","RLSA-2025:7500","SUSE-SU-2025:20334-1","UBUNTU-CVE-2024-56406","USN-7434-1","USN-7434-2","openSUSE-SU-2025:15003-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Perl programming language","requires_auth":"none","summary":"Attackers can trigger a heap buffer overflow in Perl's transliteration operator, causing crashes or potentially executing arbitrary code.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[{"product":"perl","vendor":"perl"}],"cvss":{"score":8.4,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"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 (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.","ecosystems":["AlmaLinux:10","Red Hat:enterprise_linux:10.0","Rocky Linux:10","SUSE:Linux Micro 6.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Perl is vulnerable to a heap buffer overflow when transliterating non-ASCII bytes","id":"CVE-2024-56406","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2024"},"n_packages":223,"n_references":3,"next":{"headline":"PhpSpreadsheet allows unauthorized reflected XSS in `Convert-Online.php` file","id":"CVE-2024-56408"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["4:5.40.2-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl","purl":"pkg:rpm/almalinux/perl","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.03-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Attribute-Handlers","purl":"pkg:rpm/almalinux/perl-Attribute-Handlers","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["5.74-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-AutoLoader","purl":"pkg:rpm/almalinux/perl-AutoLoader","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["5.74-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-AutoSplit","purl":"pkg:rpm/almalinux/perl-AutoSplit","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.89-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-B","purl":"pkg:rpm/almalinux/perl-B","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.25-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Benchmark","purl":"pkg:rpm/almalinux/perl-Benchmark","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["0.68-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Class-Struct","purl":"pkg:rpm/almalinux/perl-Class-Struct","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["0.03-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Config-Extensions","purl":"pkg:rpm/almalinux/perl-Config-Extensions","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["0.06-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-DBM_Filter","purl":"pkg:rpm/almalinux/perl-DBM_Filter","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.34-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Devel-Peek","purl":"pkg:rpm/almalinux/perl-Devel-Peek","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.06-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Devel-SelfStubber","purl":"pkg:rpm/almalinux/perl-Devel-SelfStubber","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.05-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-DirHandle","purl":"pkg:rpm/almalinux/perl-DirHandle","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["2.27-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Dumpvalue","purl":"pkg:rpm/almalinux/perl-Dumpvalue","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.56-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-DynaLoader","purl":"pkg:rpm/almalinux/perl-DynaLoader","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.11-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-English","purl":"pkg:rpm/almalinux/perl-English","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.38-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Errno","purl":"pkg:rpm/almalinux/perl-Errno","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["0.25-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-ExtUtils-Constant","purl":"pkg:rpm/almalinux/perl-ExtUtils-Constant","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.35-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-ExtUtils-Embed","purl":"pkg:rpm/almalinux/perl-ExtUtils-Embed","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.14-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-ExtUtils-Miniperl","purl":"pkg:rpm/almalinux/perl-ExtUtils-Miniperl","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.18-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Fcntl","purl":"pkg:rpm/almalinux/perl-Fcntl","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["2.86-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-File-Basename","purl":"pkg:rpm/almalinux/perl-File-Basename","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.100.800-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-File-Compare","purl":"pkg:rpm/almalinux/perl-File-Compare","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["2.41-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-File-Copy","purl":"pkg:rpm/almalinux/perl-File-Copy","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.12-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-File-DosGlob","purl":"pkg:rpm/almalinux/perl-File-DosGlob","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.44-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-File-Find","purl":"pkg:rpm/almalinux/perl-File-Find","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.14-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-File-stat","purl":"pkg:rpm/almalinux/perl-File-stat","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.10-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-FileCache","purl":"pkg:rpm/almalinux/perl-FileCache","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["2.05-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-FileHandle","purl":"pkg:rpm/almalinux/perl-FileHandle","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.54-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-FindBin","purl":"pkg:rpm/almalinux/perl-FindBin","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1:1.24-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-GDBM_File","purl":"pkg:rpm/almalinux/perl-GDBM_File","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.14-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Getopt-Std","purl":"pkg:rpm/almalinux/perl-Getopt-Std","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["0.32-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Hash-Util","purl":"pkg:rpm/almalinux/perl-Hash-Util","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.27-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Hash-Util-FieldHash","purl":"pkg:rpm/almalinux/perl-Hash-Util-FieldHash","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.02-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-I18N-Collate","purl":"pkg:rpm/almalinux/perl-I18N-Collate","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["0.45-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-I18N-LangTags","purl":"pkg:rpm/almalinux/perl-I18N-LangTags","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["0.24-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-I18N-Langinfo","purl":"pkg:rpm/almalinux/perl-I18N-Langinfo","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.55-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-IO","purl":"pkg:rpm/almalinux/perl-IO","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.22-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-IPC-Open3","purl":"pkg:rpm/almalinux/perl-IPC-Open3","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1:0.21-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Locale-Maketext-Simple","purl":"pkg:rpm/almalinux/perl-Locale-Maketext-Simple","source":"ALSA-2025:7500"},{"ecosystem":"AlmaLinux:10","fixed":["1.62-512.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-Math-Complex","purl":"pkg:rpm/almalinux/perl-Math-Complex","source":"ALSA-2025:7500"}],"prev":{"headline":"Privilege escalation in Identity Manager","id":"CVE-2024-56404"},"products":["perl"],"published":"2025-04-13","related":[{"cvss_score":9.8,"headline":"Supply chain in perl","id":"CVE-2026-4176","kev_date_added":null,"published":"2026-03-29"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2022-48522","kev_date_added":null,"published":"2023-08-22"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-12814","kev_date_added":null,"published":"2017-09-27"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2015-8608","kev_date_added":null,"published":"2017-02-07"},{"cvss_score":9.1,"headline":"Integer overflow in perl:perl","id":"CVE-2026-13221","kev_date_added":null,"published":"2026-07-13"},{"cvss_score":9.1,"headline":"Memory corruption in n/a","id":"CVE-2017-12883","kev_date_added":null,"published":"2017-09-19"},{"cvss_score":8.4,"headline":"Integer overflow in perl:perl","id":"CVE-2026-57432","kev_date_added":null,"published":"2026-07-13"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-16","vendors":["perl"]},"summary":"Attackers can trigger a heap buffer overflow in Perl's transliteration operator, causing crashes or potentially executing arbitrary code.","url":"https://insights.sbomify.com/CVE-2024-56406/"}