Arbitrary file upload in Discourse
CVE-2022-36066
- CVSS v3
- 9.1 Critical
- Public exploits
- None known
- EPSS
- 0.021 · 82.0th percentile
- Published
- 2022-09-29
What to do
- Fixed in
2.8.9- Affected
- 1 affected product
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
Published · last modified .
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.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- High
PR:H - User Interaction
- None
UI:N - Scope
- Changed
S:C - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.021, 82.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Discourse — versions >= 2.9.0.beta0, < 2.9.0.beta10, 2.9.0, < 2.8.9
Weakness classification (CWE)
References
- github.com/discourse/discourse/security/advisories/GHSA-grvh-qcpg-hfmv (Third Party Advisory)
- github.com/discourse/discourse/pull/18421 (Patch, Third Party Advisory)
- github.com/discourse/discourse/commit/b27d5626d208a22c516a0adfda7554b67b493835 (Patch, Third Party Advisory)