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, 66.8th percentile (scored ); unchanged over 30 days. About EPSS.
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)