# CVE-2022-23602: Nim's rst parser sandboxed mode allows include which can embed any local file

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.39%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-01T10:56:31.000Z
- Modified: 2026-06-17T04:30:27.430Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- nim-lang docutils: before 1.6.2
- nim-lang nimforum: before 2.2.0

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:N`

## References

- <https://github.com/nim-lang/nimforum/security/advisories/GHSA-q3vh-x957-wr75> (exploit, patch, third-party-advisory)
- <https://github.com/nim-lang/Nim/commit/cb894c7094fb49014f85815a9dafc38b5dda743e> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-23602](https://www.cve.org/CVERecord?id=CVE-2022-23602), CVE Terms of Use, modified 2025-05-05
- NVD: [CVE-2022-23602](https://nvd.nist.gov/vuln/detail/CVE-2022-23602), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23602 · Whole record: https://cve.day/CVE-2022-23602.json · Rebuilt by cve.day 2026-11-25T22:58:09.453Z
