{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-36064 exists.","fix":"No fix has been published for CVE-2022-36064 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-36064 is a medium-severity denial of service vulnerability in ericcornelissen shescape, published on 6 Sep 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-36064 and fix it if it is affected.\n\nWhat it is: CVE-2022-36064 is a medium-severity denial of service vulnerability in ericcornelissen shescape, published on 6 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-36064 exists.\n\nAffected product: ericcornelissen shescape. 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-2022-36064/ (Markdown: https://insights.sbomify.com/CVE-2022-36064/index.md)","id":"CVE-2022-36064","markdown":"https://insights.sbomify.com/CVE-2022-36064/index.md","name":"CVE-2022-36064","record":{"aliases":["GHSA-gp75-h7j6-5pv3"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"JavaScript shell escape library","requires_auth":"none","summary":"Attackers can cause denial of service via inefficient regular expressions in Shescape when escaping arguments for specific shells or using interpolation.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"shescape","vendor":"shescape_project"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"Shescape is a shell escape package for JavaScript. An Inefficient Regular Expression Complexity vulnerability impacts users that use Shescape to escape arguments for the Unix shells `Bash` and `Dash`, or any not-officially-supported Unix shell; and/or using the `escape` or `escapeAll` functions with the `interpolation` option set to `true`. An attacker can cause polynomial backtracking or quadratic runtime in terms of the input string length due to two Regular Expressions in Shescape that are vulnerable to Regular Expression Denial of Service (ReDoS). This bug has been patched in v1.5.10. For `Dash` only, this bug has been patched since v1.5.9. As a workaround, a maximum length can be enforced on input strings to Shescape to reduce the impact of the vulnerability. It is not recommended to try and detect vulnerable input strings, as the logic for this may end up being vulnerable to ReDoS itself.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Shescape Inefficient Regular Expression Complexity vulnerability","id":"CVE-2022-36064","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":0,"n_references":3,"next":{"headline":"GrowthBook account creation and file upload vulnerability in self-hosted configurations","id":"CVE-2022-36065"},"packages":[],"prev":{"headline":"USBX Host CDC ECM integer underflow with buffer overflow","id":"CVE-2022-36063"},"products":["shescape"],"published":"2022-09-06","related":[{"cvss_score":9.8,"headline":"Insufficient escaping of whitespace in shescape","id":"CVE-2022-31180","kev_date_added":null,"published":"2022-08-01"},{"cvss_score":8.1,"headline":"Insufficient escaping of line feeds for CMD in shescape","id":"CVE-2022-31179","kev_date_added":null,"published":"2022-08-01"},{"cvss_score":6.9,"headline":"Shescape escape() leaves bracket glob expansion active on Bash, BusyBox, and Dash","id":"CVE-2026-32094","kev_date_added":null,"published":"2026-03-11"},{"cvss_score":6.5,"headline":"Shescape on Windows escaping may be bypassed in threaded context","id":"CVE-2023-40185","kev_date_added":null,"published":"2023-08-23"},{"cvss_score":6.3,"headline":"Null characters not escaped in shescape","id":"CVE-2021-21384","kev_date_added":null,"published":"2021-03-18"},{"cvss_score":6.2,"headline":"Exposure of home directory through shescape on Unix with Bash","id":"CVE-2022-24725","kev_date_added":null,"published":"2022-03-03"}],"sources":[{"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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["ericcornelissen"]},"summary":"Attackers can cause denial of service via inefficient regular expressions in Shescape when escaping arguments for specific shells or using interpolation.","url":"https://insights.sbomify.com/CVE-2022-36064/"}