# CVE-2024-45308: MySQL & free URL mode allows to hide existing notes in hedgedoc

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.78% (percentile 52, 2026-11-26)
- **CWE:** CWE-1289
- **Published:** 2024-09-02T16:40:31.855Z
- **Modified:** 2026-06-17T07:53:59.763Z

## Who should check

- Anyone running hedgedoc \< 1.10.0

## Description

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 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\`.

## Affected and fixed versions

- hedgedoc: \< 1.10.0 (cvelist)

## Mitigation

- Upgrade hedgedoc to 1.10.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-45308. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-45308.md
Affected: hedgedoc < 1.10.0
Fixed in: hedgedoc 1.10.0

Steps:
1. Search this machine and project for hedgedoc: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-45308 being exploited?

There is no confirmed exploitation: CVE-2024-45308 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-45308?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-45308?

hedgedoc \< 1.10.0.

### Is there a fix for CVE-2024-45308?

Yes. Fixed in hedgedoc 1.10.0. Upgrade hedgedoc to 1.10.0 or later.

### How do I check if I'm affected by CVE-2024-45308?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-pjf2-269h-cx7p>
- patch: <https://github.com/hedgedoc/hedgedoc/commit/380587b7fd65bc1eb71eef51a3aab324f9877650>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-45308>

HTML: <https://flawdb.com/CVE-2024-45308> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-45308>
