# CVE-2026-44522: Note Mark: Arbitrary File Write via Path Traversal in Asset Names Leading to Remote Code Execution

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-07T21:06:55.000Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-g49p-4qxj-88v3, GO-2026-5389
- Weaknesses: CWE-20, CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Note Mark is an open-source note-taking application. From 0.13.0 to before 0.19.4, the Note Mark application allows authenticated users to upload assets to notes via POST /api/notes/{noteID}/assets, where the asset filename is provided through the X-Name HTTP request header. This value is stored directly in the database without any sanitization or validation - no path separator filtering, no directory traversal sequence rejection, and no use of filepath.Base() to strip directory components. The unsanitized name is persisted as-is in the note_assets table (Name column, varchar(80)). When an administrator subsequently runs the data export CLI commands (note-mark migrate export-v1 or note-mark migrate export), the stored asset name is passed directly into filepath.Join() and path.Join() calls as part of the output file path argument to os.Create(). Since Go's filepath.Join() resolves ../ sequences during path normalization, an attacker-controlled asset name containing directory traversal sequences causes the export process to write files to arbitrary locations on the filesystem, completely outside the intended export directory. This vulnerability is fixed in 0.19.4.

(As written by CVE List.)

## Affected

- enchant97 note-mark: >= 0.13.0, < 0.19.4
- github.com/enchant97/note-mark/backend (Go): before 0.0.0-20260501152243-db3f72bff780

## Every score

- GitHub_M: CVSS:4.0 8.6 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/enchant97/note-mark/security/advisories/GHSA-g49p-4qxj-88v3> (exploit, advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44522> (advisory)
- <https://github.com/enchant97/note-mark> (package)
- <https://github.com/enchant97/note-mark/releases/tag/v0.19.4> (web)

## Sources

- CVE List: [CVE-2026-44522](https://www.cve.org/CVERecord?id=CVE-2026-44522), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-g49p-4qxj-88v3](https://github.com/advisories/GHSA-g49p-4qxj-88v3), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5389](https://pkg.go.dev/vuln/GO-2026-5389), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-44522](https://nvd.nist.gov/vuln/detail/CVE-2026-44522), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-44522 · Whole record: https://cve.day/CVE-2026-44522.json · Rebuilt by cve.day 2026-11-25T22:59:21.746Z
