CVE-2023-38487
Hedgedoc ≤ 1.9.9
Raw vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:LCVSS 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-2023-38487 is a medium-severity Authentication Bypass by Alternate Name (CWE-289) vulnerability in Hedgedoc. Its CVSS base score is 6.5 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 43% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-42303
Vulnerability Data
HedgeDoc is software for creating real-time collaborative markdown notes. Prior to version 1.9.9, the API of HedgeDoc 1 can be used 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 by making a POST request to the `/new/<ALIAS>` API endpoint. The `<ALIAS>` parameter can be set to the ID of an existing note. HedgeDoc did not verify whether the provided `<ALIAS>` value corresponds to a valid ID of an existing note and always allowed creation of the new note. When a visitor tried to access the existing note, HedgeDoc will first search for a note with a matching alias before it searches using the ID, therefore only the new note can be accessed. 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. This issue was fixed in version 1.9.9. As a workaround, disabling freeURL mode prevents the exploitation of this issue. The impact can 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
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
- 8 hardening rules · 3 OS baselines
V8.3.3V10.3.2V6.4.3
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.
Strong authentication mechanisms directly prevent name-based bypass when they enforce canonical name checks.
Proper identity management reduces alternate-name collisions but does not guarantee canonicalization inside the auth decision.
Authorization policy enforcement assumes correct identity; the weakness occurs before policy is applied.
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.
A.8.29's combined programme of code review, SAST and penetration testing reaches CWE-289 through both SOURCE (canonicalization handling, case-insensitive comparisons visible in authentication code) and RUNTIME (penetration testing routinely tries URL encoding, backslash variants, case variations — exactly the observed examples); the remainder is third-party authentication components outside the org's source and highly specific bypasses requiring deep knowledge of the application's scheme.
Training can raise developer awareness of canonicalization and alternate-name authentication risks, but CWE-289 is a technical design/implementation defect whose prevention requires careful handling of encodings, case, and trailing characters — a fallible human-practice control moves a minority of instances, consistent with the A.6.3 -> CWE-598 and A.8.28 -> CWE-79 anchors.
A.8.28 mandates secure design (including threat modelling), secure coding standards, and analysis of common programming errors, which are the practices that would catch canonicalization/alternate-name flaws at architecture and implementation phases; but the clause mandates a practice rather than a mechanism, so what it actually catches depends on the rigour of implementation and developer awareness of this specific class of issue, leaving a nameable remainder.
Information-access-restriction mechanisms can implement canonical-name checks to prevent bypass.
A.8.30 carries its preventive effect through the secure design, coding and testing practices (8.25–8.29) its contract requires of the supplier, plus threat-model provision and acceptance testing, so an outsourced authentication bypass by alternate name is reduced the way ordinary software weaknesses are — a minority of instances, with the same ceiling the clause carries on CWE-134.
Secure-authentication controls can require canonical identifiers and reject alternate names.
Hardening callouts derived
Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.
Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.
Oracle Linux 8 (1 rule)
- V-248538 OL 8 operating systems booted with United Extensible Firmware Interface (UEFI) must have a unique name for the grub superusers account when booting into single-user mode and maintenance. blocks CWE-289
RHEL 7 (1 partial rule)
- V-244558 Red Hat Enterprise Linux operating systems version 7.2 or newer booted with United Extensible Firmware Interface (UEFI) must have a unique name for the grub superusers account when booting into single-user mode and maintenance. blocks CWE-289