Skip to content

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

HighCVSS 8.1 EPSS 1.3%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
nim-lang docutils < 1.6.2 1.6.2 Fixed
nim-lang nimforum < 2.2.0 2.2.0 Fixed

Affected products

ProductAffected versionsFixed in
nim-lang docutils < 1.6.2 1.6.2
nim-lang nimforum < 2.2.0 2.2.0

References