CVE-2021-29475
NixOS vulnerability analysis and mitigation

Overview

HedgeDoc (formerly known as CodiMD), an open-source collaborative markdown editor, was found to contain a critical vulnerability (CVE-2021-29475) that was disclosed on April 26, 2021. The vulnerability allows attackers with note modification capabilities to extract arbitrary files from the system when using the PDF export feature. This affects all instances with PDF export enabled prior to version 1.5.0 (GitHub Advisory, NVD).

Technical details

The vulnerability stems from improper handling of file:/// references in PhantomJS during PDF export operations. While PhantomJS doesn't render these references in the PDF output, it processes them internally, allowing for data exfiltration through JavaScript rendering. The vulnerability has been assigned a CVSS v3.1 base score of 10.0 (Critical), with attack vector: Network, attack complexity: Low, privileges required: None, user interaction: None, scope: Changed, and high impacts on both confidentiality and integrity (NVD).

Impact

The vulnerability enables attackers to read sensitive files from the filesystem, including the HedgeDoc config.json file which often contains critical information such as database credentials and OAuth secrets. Even in Docker deployments, while the accessible files might be limited, the exposure of configuration files poses significant security risks (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in HedgeDoc version 1.5.0. For users unable to upgrade, a workaround is available by disabling the PDF export feature. This can be done by either starting the HedgeDoc instance with CMDALLOWPDF_EXPORT=false or setting "allowPDFExport": false in config.json (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management