Arbitrary file upload in Hedgedoc
CVE-2022-24837
HedgeDoc is an open-source, web-based, self-hosted, collaborative markdown editor. Images uploaded with HedgeDoc version 1.9.1 and later have an enumerable filename after the upload, resulting in potential information leakage of uploaded documents. This is especially relevant for private notes and affects all upload backends, except Lutim and imgur. This issue is patched in version 1.9.3 by replacing the filename generation with UUIDv4. If you cannot upgrade to HedgeDoc 1.9.3, it is possible to block POST requests to `/uploadimage`, which will disable future uploads.
Vulnerability class: Information Disclosure
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS: 0.011 (65.0th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 65th percentile — 65.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: 0.000
Affected products
- Hedgedoc — versions >=1.9.1, < 1.9.3
Weakness classification (CWE)
References
- github.com/hedgedoc/hedgedoc/security/advisories/GHSA-q6vv-2q26-j7rx (Patch, Third Party Advisory)
- github.com/node-formidable/formidable/issues/808 (Third Party Advisory, Issue Tracking)
- github.com/hedgedoc/hedgedoc/commit/9e2f9e21e904c4a319e84265da7ef03b0a8e343a (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-24837?
- CVE-2022-24837 is a medium-severity vulnerability in Hedgedoc, classified under Information Disclosure. CVSS score: 5.3/10. Published 2022-04-11.
- How severe is CVE-2022-24837?
- Medium severity. CVSS v3 base score is 5.3 out of 10.