Arbitrary file upload in Hedgedoc
CVE-2020-26286
HedgeDoc is a collaborative platform for writing and sharing markdown. In HedgeDoc before version 1.7.1 an unauthenticated attacker can upload arbitrary files to the upload storage backend including HTML, JS and PHP files. The problem is patched in HedgeDoc 1.7.1. You should however verify that your uploaded file storage only contains files that are allowed, as uploaded files might still be served. As workaround it's possible to block the `/uploadimage` endpoint on your instance using your reverse proxy. And/or restrict MIME-types and file names served from your upload file storage.
Vulnerability class: Unrestricted File Upload
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS: 0.014 (72.1th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 72nd percentile — 72.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.014 · newest: 0.014 · change: +0.000
Affected products
- Hedgedoc — versions < 1.7.1
Weakness classification (CWE)
References
- github.com/hedgedoc/hedgedoc/security/advisories/GHSA-wcr3-xhv7-8gxc (Third Party Advisory)
- github.com/hedgedoc/hedgedoc/releases/tag/1.7.1 (Third Party Advisory)
- github.com/hedgedoc/hedgedoc/commit/e9306991cdb5ff2752c1eeba3fedba42aec3c2d8 (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2020-26286?
- CVE-2020-26286 is a high-severity vulnerability in Hedgedoc, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 7.5/10. Published 2020-12-29.
- How severe is CVE-2020-26286?
- High severity. CVSS v3 base score is 7.5 out of 10.