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 trend (30 days)EPSS over the last 30 days for CVE-2022-24837: held from 0.011 to 0.011.

EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: 0.000

Affected products

Weakness classification (CWE)

References

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.