# CVE-2022-24837: Enumerable upload file names in hedgedoc

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.13%, higher than 67% of CVEs (2026-12-01)
- Published: 2022-04-11T20:20:26.000Z
- Modified: 2026-06-17T04:32:37.743Z
- Weaknesses: CWE-200, CWE-434
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- hedgedoc hedgedoc: >=1.9.1, < 1.9.3; from 1.9.1 before 1.9.3

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-q6vv-2q26-j7rx> (patch, third-party-advisory)
- <https://github.com/node-formidable/formidable/issues/808> (issue-tracking, third-party-advisory)
- <https://github.com/hedgedoc/hedgedoc/commit/9e2f9e21e904c4a319e84265da7ef03b0a8e343a> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-24837](https://www.cve.org/CVERecord?id=CVE-2022-24837), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-24837](https://nvd.nist.gov/vuln/detail/CVE-2022-24837), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24837 · Whole record: https://cve.day/CVE-2022-24837.json · Rebuilt by cve.day 2026-11-25T22:58:10.545Z
