Path Traversal: \'../filedir\' in nim - CVE-2022-23602

 

Path Traversal: \'../filedir\' in nim - CVE-2022-23602

Published: January 31, 2022 / Updated: November 25, 2026


Vulnerability identifier: #VU170084
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-23602
CWE-ID: CWE-24
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose the contents of arbitrary local files readable by the parser.

The vulnerability exists due to insufficient path restrictions in Nim's reStructuredText parser when it processes include directives in sandboxed mode. A remote attacker can supply crafted reStructuredText content to expose local file contents in the rendered output.


Affected software

nim

How to mitigate CVE-2022-23602

Install security update from vendor's website.

nim - update to 1.6.2

External References

Related Security Bulletins