Path Traversal in Nim-Lang Docutils
CVE-2022-23602
Nimforum is a lightweight alternative to Discourse written in Nim. In versions prior to 2.2.0 any forum user can create a new thread/post with an include referencing a file local to the host operating system. Nimforum will render the file if able. This can also be done silently by using NimForum's post "preview" endpoint. Even if NimForum is running as a non-critical user, the forum.json secrets can be stolen. Version 2.2.0 of NimForum includes patches for this vulnerability. Users are advised to upgrade as soon as is possible. There are no known workarounds for this issue.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.7 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.013, 71.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (HotDB-Community/HotDB-Engine). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/nim-lang/nimforum/security/advisories/GHSA-q3vh-x957-wr75 (Exploit, Patch, Third Party Advisory)
- github.com/nim-lang/Nim/commit/cb894c7094fb49014f85815a9dafc38b5dda743e (Patch, Third Party Advisory)