{"answers":{"affected":"5 open source packages ship an affected version, including github.com/projectdiscovery/nuclei/v2 and github.com/projectdiscovery/nuclei. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-37896 in the wild and no public exploit code.","fix":"Upgrade github.com/projectdiscovery/nuclei/v2 to 2.9.9 or later.","what":"CVE-2023-37896 is a high-severity path traversal vulnerability in projectdiscovery nuclei, published on 4 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-37896 and fix it if it is affected.\n\nWhat it is: CVE-2023-37896 is a high-severity path traversal vulnerability in projectdiscovery nuclei, published on 4 Aug 2023. 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-2023-37896 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/projectdiscovery/nuclei/v2 (Go): affected all versions; fixed in 2.9.9\n- github.com/projectdiscovery/nuclei/v2 (Go): affected all versions; fixed in 2.9.9\n- github.com/projectdiscovery/nuclei/v2 (Go): affected all versions; fixed in 2.9.9\n- github.com/projectdiscovery/nuclei (Go): affected all versions; fixed in 2.9.9\n- github.com/projectdiscovery/nuclei (Go): affected all versions; fixed in 2.9.9\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-2023-37896/ (Markdown: https://insights.sbomify.com/CVE-2023-37896/index.md)","id":"CVE-2023-37896","markdown":"https://insights.sbomify.com/CVE-2023-37896/index.md","name":"CVE-2023-37896","record":{"aliases":["GHSA-2xx4-jj5v-6mff","GO-2023-1998"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Nuclei Go SDK","requires_auth":"none","summary":"Attackers using the Nuclei Go SDK with custom templates can read arbitrary files due to improper path sanitization in sandbox mode.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nuclei","vendor":"projectdiscovery"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Nuclei is a vulnerability scanner. Prior to version 2.9.9, a security issue in the Nuclei project affected users utilizing Nuclei as Go code (SDK) running custom templates. This issue did not affect CLI users. The problem was related to sanitization issues with payload loading in sandbox mode. There was a potential risk with payloads loading in sandbox mode. The issue occurred due to relative paths not being converted to absolute paths before doing the check for `sandbox` flag allowing arbitrary files to be read on the filesystem in certain cases when using Nuclei from `Go` SDK implementation. \n\nThis issue has been fixed in version 2.9.9. The maintainers have also enabled sandbox by default for filesystem loading. This can be optionally disabled if required. The `-sandbox` option has been deprecated and is now divided into two new options: `-lfa` (allow local file access) which is enabled by default and `-lna` (restrict local network access) which can be enabled by users optionally. The `-lfa` allows file (payload) access anywhere on the system (disabling sandbox effectively), and `-lna` blocks connections to the local/private network.","ecosystems":["Go"],"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":"Nuclei Path Traversal vulnerability","id":"CVE-2023-37896","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":5,"n_references":3,"next":{"headline":"Server-side Template Injection (SSTI) in grav","id":"CVE-2023-37897"},"packages":[{"ecosystem":"Go","fixed":["2.9.9"],"introduced":["0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei","purl":null,"source":"GHSA-2xx4-jj5v-6mff"},{"ecosystem":"Go","fixed":["2.9.9"],"introduced":["0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei","purl":"pkg:golang/github.com/projectdiscovery/nuclei","source":"GHSA-2xx4-jj5v-6mff"},{"ecosystem":"Go","fixed":["2.9.9"],"introduced":["0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v2","purl":null,"source":"GHSA-2xx4-jj5v-6mff"},{"ecosystem":"Go","fixed":["2.9.9"],"introduced":["0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v2","purl":"pkg:golang/github.com/projectdiscovery/nuclei/v2","source":"GHSA-2xx4-jj5v-6mff"},{"ecosystem":"Go","fixed":["2.9.9"],"introduced":["0"],"last_affected":[],"package":"github.com/projectdiscovery/nuclei/v2","purl":"pkg:golang/github.com/projectdiscovery/nuclei/v2","source":"GO-2023-1998"}],"prev":{"headline":"Apache Jackrabbit RMI access can lead to RCE","id":"CVE-2023-37895"},"products":["nuclei"],"published":"2023-08-04","related":[{"cvss_score":7.4,"headline":"Nuclei Template Signature Verification Bypass","id":"CVE-2024-43405","kev_date_added":null,"published":"2024-09-04"},{"cvss_score":7.4,"headline":"Unsigned code template execution through workflows in projectdiscovery/nuclei","id":"CVE-2024-27920","kev_date_added":null,"published":"2024-03-15"},{"cvss_score":5.5,"headline":"Nuclei: Local File Read via require() Module Loader Bypass","id":"CVE-2026-41646","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":5.3,"headline":"Nuclei: Environment variable disclosure via Response-Derived DSL Expressions","id":"CVE-2026-41645","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":4,"headline":"Code injection in Nuclei","id":"CVE-2026-41282","kev_date_added":null,"published":"2026-04-20"}],"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":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-08","vendors":["projectdiscovery"]},"summary":"Attackers using the Nuclei Go SDK with custom templates can read arbitrary files due to improper path sanitization in sandbox mode.","url":"https://insights.sbomify.com/CVE-2023-37896/"}