Path traversal in Discourse - CVE-2022-36066

 

Path traversal in Discourse - CVE-2022-36066

Published: September 29, 2022 / Updated: July 1, 2026


Vulnerability identifier: #VU136074
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2022-36066
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Civilized Discourse Construction Kit, Inc.
Affected software:
Discourse

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to path traversal in archive extraction when processing a maliciously crafted Zip or Gzip Tar archive upload. A remote privileged user can upload a specially crafted archive to execute arbitrary code.

The issue allows writing files to arbitrary locations before code execution is triggered.


How to mitigate CVE-2022-36066

Install security update from vendor's website.

Sources