NVD Vulnerability Detail
Search Exploit, PoC
CVE-2024-45308
Summary

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

Publication Date Sept. 3, 2024, 3:15 a.m.
Registration Date Sept. 3, 2024, noon
Last Update Sept. 3, 2024, 9:59 p.m.
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
HedgeDoc における安全でない等式による入力の不適切な検証に関する脆弱性
Title HedgeDoc における安全でない等式による入力の不適切な検証に関する脆弱性
Summary

HedgeDoc には、安全でない等式による入力の不適切な検証に関する脆弱性が存在します。

Possible impacts 情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダアドバイザリまたはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

Publication Date Sept. 2, 2024, midnight
Registration Date Sept. 30, 2025, 4:49 p.m.
Last Update Sept. 30, 2025, 4:49 p.m.
Affected System
HedgeDoc
HedgeDoc 1.10.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2025年09月30日]
  掲載
Sept. 30, 2025, 4:49 p.m.