Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-29474

4.7 · MEDIUM
Published Apr 26, 2021 hedgedoc CWE-20 EPSS 1.60% (74th pctl)

Overview

CVE-2021-29474 is a medium-severity vulnerability affecting hedgedoc hedgedoc. It was published on April 26, 2021 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 4.7, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

HedgeDoc (formerly known as CodiMD) is an open-source collaborative markdown editor. An attacker can read arbitrary `.md` files from the server's filesystem due to an improper input validation, which results in the ability to perform a relative path traversal. To verify if you are affected, you can try to open the following URL: `http://localhost:3000/..%2F..%2FREADME#` (replace `http://localhost:3000` with your instance's base-URL e.g. `https://demo.hedgedoc.org/..%2F..%2FREADME#`). If you see a README page being rendered, you run an affected version. The attack works due the fact that the internal router passes the url-encoded alias to the `noteController.showNote`-function. This function passes the input directly to findNote() utility function, that will pass it on the the parseNoteId()-function, that tries to make sense out of the noteId/alias and check if a note already exists and if so, if a corresponding file on disk was updated. If no note exists the note creation-function is c

Remediation

Check the references section for vendor advisories and patches from hedgedoc. Update hedgedoc to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
hedgedoc hedgedoc >= 0, < 1.8.0 Affected

Frequently Asked Questions

What is CVE-2021-29474?

CVE-2021-29474 is a medium-severity vulnerability affecting hedgedoc hedgedoc. It was published on April 26, 2021 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

How severe is CVE-2021-29474?

This vulnerability has a CVSS 3.1 base score of 4.7, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-29474?

Check the references section for vendor advisories and patches from hedgedoc. Update hedgedoc to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-29474?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-29474 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.