Arbitrary file upload in Discourse

CVE-2022-36066

Discourse is an open source discussion platform. In versions prior to 2.8.9 on the `stable` branch and prior to 2.9.0.beta10 on the `beta` and `tests-passed` branches, admins can upload a maliciously crafted Zip or Gzip Tar archive to write files at arbitrary locations and trigger remote code execution. The problem is patched in version 2.8.9 on the `stable` branch and version 2.9.0.beta10 on the `beta` and `tests-passed` branches. There are no known workarounds.

Vulnerability class: Unrestricted File Upload

EPSS: 0.016 (73.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.

Affected products

  • Discourse — versions >= 2.9.0.beta0, < 2.9.0.beta10, 2.9.0, < 2.8.9

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2022-36066?
CVE-2022-36066 is a critical-severity vulnerability in Discourse, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 9.1/10. Published 2022-09-29.
How severe is CVE-2022-36066?
Critical severity. CVSS v3 base score is 9.1 out of 10.