CVE-2022-23602

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-23602
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-23602.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-23602
Aliases
  • GHSA-q3vh-x957-wr75
Published
2022-02-01T10:56:31Z
Modified
2025-10-23T14:13:09.612963Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
Nim's rst parser sandboxed mode allows include which can embed any local file
Details

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.

References

Affected packages

Git / github.com/nim-lang/nim

Affected ranges

Type
GIT
Repo
https://github.com/nim-lang/nim
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.10.2
v0.11.0
v0.11.2
v0.12.0
v0.13.0
v0.14.0
v0.14.2
v0.15.0
v0.15.2
v0.16.0
v0.17.0
v0.17.2
v0.18.0
v0.19.0
v0.20.0
v0.8.14
v0.9.0
v0.9.2
v0.9.4
v0.9.6

v1.*

v1.0.0

Git / github.com/nim-lang/nim

Affected ranges

Type
GIT
Repo
https://github.com/nim-lang/nimforum
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v2.*

v2.0.0
v2.0.1
v2.1.0