CVEvulnerability
CVE-2026-88937
8.6 HIGH
Official page ↗
- Status
- Deferred
- Published
- 2026-09-10
- Last modified
- 2026-09-10
- Assigner
- [email protected]
- CVSS 4.0 ([email protected])
- 8.6 HIGH — CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/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])
- 8.8 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-22
Description
knowns through 0.33.0 fails to properly validate template destination paths in the code generation template engine, allowing attackers to read and write arbitrary files outside the project root. Attackers can supply malicious templates that traverse directories to overwrite shell profiles, steal credentials, or achieve persistent code execution on victim systems.
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.33.0/internal/codegen/template_engine.go#L318-L344 github.com
- https://github.com/knowns-dev/knowns/blob/v0.33.0/internal/codegen/template_engine.go#L625-L636 github.com
- https://github.com/knowns-dev/knowns/security/advisories/GHSA-68cq-4rwm-f7jr github.com
- https://github.com/knowns-dev/knowns/security/advisories/GHSA-xjcg-5j3r-m6f9 github.com
- https://www.vulncheck.com/advisories/knowns-through-0.33.0-path-traversal-via-template-engine www.vulncheck.com
- https://github.com/knowns-dev/knowns/security/advisories/GHSA-68cq-4rwm-f7jr github.com