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

Published Sep 2, 2024
·
Updated

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 CMDALLOWFREEURL 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/CMDREQUIREFREEURLAUTHENTICATION.

Affected Software

2 affected components
HedgeDoc HedgeDoc
HedgeDoc HedgeDoc<1.10.0

Event History

Sep 2, 2024
CVE Published
via MITRE·04:40 PM
Data Sourced
via MITRE·04:40 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-45308?

CVE-2024-45308 has been classified with a severity that can cause loss of access to existing notes due to alias conflicts.

2

How do I fix CVE-2024-45308?

To fix CVE-2024-45308, update HedgeDoc to the latest version that addresses this vulnerability.

3

What versions are affected by CVE-2024-45308?

CVE-2024-45308 affects HedgeDoc versions prior to 1.10.0.

4

What is the impact of CVE-2024-45308 on my HedgeDoc instance?

The impact of CVE-2024-45308 is that users may lose access to notes when an alias matches the ID of an existing note.

5

Is there a workaround for CVE-2024-45308?

Currently, there is no documented workaround for CVE-2024-45308 other than upgrading to a fixed version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203