{"answers":{"affected":"3 open source packages ship an affected version, including regex. It affects 3 products.","exploited":"There is no known exploitation of CVE-2022-24713 in the wild and no public exploit code.","fix":"Upgrade regex to 1.5.5 or later.","what":"CVE-2022-24713 is a high-severity denial of service vulnerability in Debian Debian Linux, published on 8 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-24713 and fix it if it is affected.\n\nWhat it is: CVE-2022-24713 is a high-severity denial of service vulnerability in Debian Debian Linux, published on 8 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-24713 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- regex (crates.io): affected all versions; fixed in 1.5.5\n- regex (crates.io): affected all versions; fixed in 1.5.5\n- regex (crates.io): affected from 0.0.0-0; fixed in 1.5.5\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-2022-24713/ (Markdown: https://insights.sbomify.com/CVE-2022-24713/index.md)","id":"CVE-2022-24713","markdown":"https://insights.sbomify.com/CVE-2022-24713/index.md","name":"CVE-2022-24713","record":{"aliases":["AZL-40907","AZL-45021","AZL-61405","AZL-62435","CLEANSTART-2024-AG66831","DEBIAN-CVE-2022-24713","GHSA-m5pq-gvj9-9vr8","RUSTSEC-2022-0013","SUSE-SU-2025:3911-1","UBUNTU-CVE-2022-24713","USN-5610-1","openSUSE-SU-2024:11913-1","openSUSE-SU-2024:11914-1","openSUSE-SU-2024:11917-1","openSUSE-SU-2024:11918-1","openSUSE-SU-2024:11920-1","openSUSE-SU-2024:11921-1","openSUSE-SU-2024:11922-1","openSUSE-SU-2024:11923-1","openSUSE-SU-2024:11925-1","openSUSE-SU-2024:11928-1","openSUSE-SU-2024:11931-1","openSUSE-SU-2024:11937-1","openSUSE-SU-2024:11941-1","openSUSE-SU-2024:11945-1","openSUSE-SU-2024:11946-1","openSUSE-SU-2024:11948-1","openSUSE-SU-2024:11962-1","openSUSE-SU-2024:12055-1","openSUSE-SU-2024:12114-1","openSUSE-SU-2024:12131-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust regex library","requires_auth":"none","summary":"Attackers can cause denial of service by sending specially crafted regular expressions to services accepting untrusted regexes, bypassing built-in mitigations.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"regex","vendor":"rust-lang"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"regex is an implementation of regular expressions for the Rust language. The regex crate features built-in mitigations to prevent denial of service attacks caused by untrusted regexes, or untrusted input matched by trusted regexes. Those (tunable) mitigations already provide sane defaults to prevent attacks. This guarantee is documented and it's considered part of the crate's API. Unfortunately a bug was discovered in the mitigations designed to prevent untrusted regexes to take an arbitrary amount of time during parsing, and it's possible to craft regexes that bypass such mitigations. This makes it possible to perform denial of service attacks by sending specially crafted regexes to services accepting user-controlled, untrusted regexes. All versions of the regex crate before or equal to 1.5.4 are affected by this issue. The fix is include starting from regex 1.5.5. All users accepting user-controlled regexes are recommended to upgrade immediately to the latest version of the regex crate. Unfortunately there is no fixed set of problematic regexes, as there are practically infinite regexes that could be crafted to exploit this vulnerability. Because of this, it us not recommend to deny known problematic regexes.","ecosystems":["crates.io","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2022-06-05","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-06-05T22:17:00Z","kind":"github_poc","ref":"https://github.com/jpeisach/CVE-2022-24713-POC","stars":0,"title":"Proof of Concept/Test for CVE-2022-24713 on Ubuntu"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Regular expression denial of service in Rust's regex crate","id":"CVE-2022-24713","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora"],"type":"denial_of_service","year":"2022"},"n_packages":19,"n_references":12,"next":{"headline":"Disclosure of hosts and related data, linked to decommissioned services in Icinga Web 2","id":"CVE-2022-24714"},"packages":[{"ecosystem":"crates.io","fixed":["1.5.5"],"introduced":["0"],"last_affected":[],"package":"regex","purl":null,"source":"GHSA-m5pq-gvj9-9vr8"},{"ecosystem":"crates.io","fixed":["1.5.5"],"introduced":["0"],"last_affected":[],"package":"regex","purl":"pkg:cargo/regex","source":"GHSA-m5pq-gvj9-9vr8"},{"ecosystem":"crates.io","fixed":["1.5.5"],"introduced":["0.0.0-0"],"last_affected":[],"package":"regex","purl":"pkg:cargo/regex","source":"RUSTSEC-2022-0013"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.21.0-1.1"],"introduced":["0"],"last_affected":[],"package":"bat","purl":"pkg:rpm/opensuse/bat\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12131-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.16.0~git0.625c965-3.1"],"introduced":["0"],"last_affected":[],"package":"cargo-audit","purl":"pkg:rpm/opensuse/cargo-audit\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11920-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.0.0-2.1"],"introduced":["0"],"last_affected":[],"package":"firecracker","purl":"pkg:rpm/opensuse/firecracker\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11925-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.12.1-1.1"],"introduced":["0"],"last_affected":[],"package":"git-delta","purl":"pkg:rpm/opensuse/git-delta\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11937-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.5.37-2.1"],"introduced":["0"],"last_affected":[],"package":"juliaup","purl":"pkg:rpm/opensuse/juliaup\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11913-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["6.0.6~git0.c21ce78-2.1"],"introduced":["0"],"last_affected":[],"package":"macchina","purl":"pkg:rpm/opensuse/macchina\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11914-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.0.0~rc3-1.1"],"introduced":["0"],"last_affected":[],"package":"parsec","purl":"pkg:rpm/opensuse/parsec\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11945-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.5.2-1.1"],"introduced":["0"],"last_affected":[],"package":"parsec-tool","purl":"pkg:rpm/opensuse/parsec-tool\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11946-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.0.0~beta.2-1.1"],"introduced":["0"],"last_affected":[],"package":"pijul","purl":"pkg:rpm/opensuse/pijul\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12055-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.5.1~git0.ce9627c-4.1"],"introduced":["0"],"last_affected":[],"package":"pleaser","purl":"pkg:rpm/opensuse/pleaser\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11928-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.7.1+0-2.1"],"introduced":["0"],"last_affected":[],"package":"rage-encryption","purl":"pkg:rpm/opensuse/rage-encryption\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11921-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.24.3~0-3.1"],"introduced":["0"],"last_affected":[],"package":"rustup","purl":"pkg:rpm/opensuse/rustup\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11922-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.2.15~git0.6b6d2f7-11.1"],"introduced":["0"],"last_affected":[],"package":"sccache","purl":"pkg:rpm/opensuse/sccache\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11923-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.3.3-5.1"],"introduced":["0"],"last_affected":[],"package":"spotifyd","purl":"pkg:rpm/opensuse/spotifyd\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11948-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.0.0~git0.5b3eac1-2.1"],"introduced":["0"],"last_affected":[],"package":"treefetch","purl":"pkg:rpm/opensuse/treefetch\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11917-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.7.1-4.1"],"introduced":["0"],"last_affected":[],"package":"tuigreet","purl":"pkg:rpm/opensuse/tuigreet\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11918-1"}],"prev":{"headline":"Cross-Site Request Forgery (CSRF) Protection Bypass Vulnerability in CodeIgniter4","id":"CVE-2022-24712"},"products":["regex"],"published":"2022-03-08","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["rust-lang"]},"summary":"Attackers can cause denial of service by sending specially crafted regular expressions to services accepting untrusted regexes, bypassing built-in mitigations.","url":"https://insights.sbomify.com/CVE-2022-24713/"}