Security Resilience

CVE-2024-45308

Hedgedoc ≤ 1.10.0

Public PoC
Published
02 September 2024
Modified
22 September 2025
Patch / advisory
CVSS Score v3.1 6.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L
EPSS Score 0.0055 47th percentile
Risk Priority 50 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-45308 is a medium-severity Improper Validation of Unsafe Equivalence in Input (CWE-1289) vulnerability in Hedgedoc. Its CVSS base score is 6.5 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Space after Filename (T1036.006); ranked at the 47th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

HedgeDoc is an open source, real-time, collaborative, markdown notes application. When using HedgeDoc 1 with MySQL or MariaDB, it is possible to create notes with an alias matching the ID of existing notes. The affected existing note can then not…

more

be accessed anymore and is effectively hidden by the new one. When the freeURL feature is enabled (by setting the `allowFreeURL` config option or the `CMD_ALLOW_FREEURL` environment variable to `true`), any user with the appropriate permissions can create a note with an arbitrary alias, e.g. by accessing it in the browser. When MySQL or MariaDB are used, it is possible to create a new note with an alias that matches the lower-cased ID of a different note. HedgeDoc then always presents the new note to users, as these databases perform case-insensitive matching and the lower-cased alias is found first. This issue only affects HedgeDoc instances that use MySQL or MariaDB. Depending on the permission settings of the HedgeDoc instance, the issue can be exploited only by logged-in users or by all (including non-logged-in) users. The exploit requires knowledge of the ID of the target note. Attackers could use this issue to present a manipulated copy of the original note to the user, e.g. by replacing the links with malicious ones. Attackers can also use this issue to prevent access to the original note, causing a denial of service. No data is lost, as the original content of the affected notes is still present in the database. Users are advised to upgrade to version 1.10.0 which addresses this issue. Users unable to upgrade may disable freeURL mode which prevents the exploitation of this issue. The impact can also be limited by restricting freeURL note creation to trusted, logged-in users by enabling `requireFreeURLAuthentication`/`CMD_REQUIRE_FREEURL_AUTHENTICATION`.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1036.006 Space after Filename Stealth
Adversaries can hide a program's true filetype by changing the extension of a file.
T1687 Exploitation for Defense Impairment Defense Impairment
Adversaries may exploit vulnerabilities in security software, infrastructure, or defensive components to degrade, disable, or otherwise continue to impair their ability to prevent, detect, or respond to malicious activity.
T1036.005 Match Legitimate Resource Name or Location Stealth
Adversaries may match or approximate the name or location of legitimate files, Registry keys, or other resources when naming/placing them.
T1027.010 Command Obfuscation Stealth
Adversaries may obfuscate content during command execution to impede detection.
T1036 Masquerading Stealth
Adversaries may attempt to manipulate features of their artifacts to make them appear legitimate or benign to users and/or security tools.
T1036.008 Masquerade File Type Stealth
Adversaries may masquerade malicious payloads as legitimate files through changes to the payload's formatting, including the file’s signature, extension, icon, and contents.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-32391Same product: Hedgedoc Hedgedoc
CVE-2026-25642Same product: Hedgedoc Hedgedoc
CVE-2023-38487Same product: Hedgedoc Hedgedoc
CVE-2026-49940Shared CWE-1289
CVE-2026-86831Shared CWE-1289
CVE-2026-22569Shared CWE-1289
CVE-2024-8372Shared CWE-1289
CVE-2024-45179Shared CWE-1289
CVE-2026-3563Shared CWE-1289
CVE-2026-46644Shared CWE-1289

Affected Assets

hedgedoc
hedgedoc
≤ 1.10.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V5.2.2
  • V9.1.3
  • V10.4.6
  • V2.2.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

SI-10 requires validity checks on information inputs, directly stopping unsafe equivalence validation failures for identifiers and references.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require proper input validation and equivalence checking to prevent this class of flaw.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect unsafe equivalence flaws but does not prevent them at design time.

prevents

Training raises awareness of case-insensitivity, encoding equivalence and similar gotchas (the XSS example in CWE-1289's own description is exactly the kind of pitfall secure-coding education addresses), but the defect is subtle and implementation-specific, so even well-trained developers miss it; the effect is a minority one, consistent with A.6.3's other developer-introduced-weakness grades.

prevents

Secure coding standards directly require correct validation of resource identifiers and equivalence checks.

prevents

A.8.30 carries its effect through the secure-development practices (8.25–8.29) its contract requires of the supplier, so it reduces ordinary software input-validation defects the way those practices do; CWE-1289 is a regular implementation-level CWE that benefits from that mechanism, but the effect is mediated through fallible supplier practice and the clause carries a declared ceiling of `partial` on this verb.

finds

A.8.8's reach is disclosure-based vulnerability scanning plus penetration testing; it finds CWE-1289 instances that surface as published CVEs in third-party components (the observed examples are all such) and some that pen testing can observe from outside (case/encoding bypasses), but the majority of CWE-1289 instances live in first-party input-validation code that A.8.8's programme does not read.

References