Arbitary file upload
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-434.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
- Fix · CNA hedgedoc (hedgedoc) Fixed in 1.7.1
Timeline
- 2026-10-02 Threatist record created from CVE-2020-26286
References
More Hedgedoc vulnerabilities
- TI-2023-19867 HedgeDoc API allows to hide existing notes CVSS 3.1HIGH 8.2
- TI-2024-30379 MySQL & free URL mode allows to hide existing notes in hedgedoc CVSS 3.1MEDIUM 6.5
- TI-2021-10188 PDF export allows arbitrary file reads CVSS 3.1CRITICAL 10.0
- TI-2020-16108 Stored XSS in mermaid diagrams CVSS 3.1HIGH 8.7
- TI-2021-10211 Improper Neutralization of Script-Related HTML Tags in Notes CVSS 3.1HIGH 8.1
- TI-2021-16561 XSS vector in slide mode speaker-view CVSS 3.1HIGH 8.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences