CVEvulnerability
CVE-2026-86542
8.8 HIGH
Official page ↗
- Status
- Deferred
- Published
- 2026-09-07
- Last modified
- 2026-09-08
- Assigner
- [email protected]
- CVSS 4.0 ([email protected])
- 8.8 HIGH — CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- CVSS 3.1 ([email protected])
- 9.1 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Weaknesses
- CWE-22
Description
knowns before 0.30.0 fails to validate import names in the import routes, allowing unauthenticated attackers to write files outside the imports directory. Attackers can supply traversal sequences in the name parameter to escape the imports directory and overwrite arbitrary files writable by the server process.
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/server/routes/imports.go#L376-L420 github.com
- https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/server/routes/imports.go#L519-L551 github.com
- https://github.com/knowns-dev/knowns/commit/d3989829fb5095666d23d005b2f78a082832a396 github.com
- https://github.com/knowns-dev/knowns/releases/tag/v0.30.0 github.com
- https://github.com/knowns-dev/knowns/security/advisories/GHSA-wh3c-v55g-qfg8 github.com
- https://www.vulncheck.com/advisories/knowns-before-0.30.0-path-traversal-via-import-name www.vulncheck.com