CVE-2024-45308
Last modified
CVE-2024-45308 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.55% chance of exploitation in the next 30 days.
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`.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Hedgedoc | Hedgedoc | < 1.10.0 |
References
- https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-pjf2-269h-cx7pExploit, Mitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-45308?
How severe is CVE-2024-45308?
How do I fix CVE-2024-45308?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-45302RestSharp is a Simple REST and HTTP API Client for .NET. The…7.8
- CVE-2024-45303Discourse Calendar plugin adds the ability to create a dynam…6.1
- CVE-2024-45304Cairo-Contracts are OpenZeppelin Contracts written in Cairo …6.5
- CVE-2024-45305gix-path is a crate of the gitoxide project dealing with git…2.5
- CVE-2024-45306Vim is an open source, command line text editor. Patch v9.1.…5.5
- CVE-2024-45307SudoBot, a Discord moderation bot, is vulnerable to privileg…9.8
- CVE-2024-45309OneDev is a Git server with CI/CD, kanban, and packages. A v…7.5
- CVE-2024-4531The Business Card WordPress plugin through 1.0.0 does not ha…7.1
- CVE-2024-45310runc is a CLI tool for spawning and running containers accor…3.6
- CVE-2024-45311Quinn is a pure-Rust, async-compatible implementation of the…7.5
- CVE-2024-45312Overleaf is a web-based collaborative LaTeX editor. Overleaf…5.3
- CVE-2024-45313Overleaf is a web-based collaborative LaTeX editor. When ins…5.4
Are you affected by CVE-2024-45308?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
