CVE-2026-86542
published high CVSS 4.0 · 8.8knowns before 0.30.0 Path Traversal via Import Name
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| knowns-dev | — | knowns0 to < 0.30.0 (affected · semver) · 0.30.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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 advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.1 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| knowns-dev | knowns | 0 to < 0.30.0 (affected · semver)0.30.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
6- gitCloneImport writes cloned files beneath the unvalidated name (v0.29.1) https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/server/routes/imports.go#L376-L420
- Import add builds the destination from the caller-supplied name (v0.29.1) https://github.com/knowns-dev/knowns/blob/v0.29.1/internal/server/routes/imports.go#L519-L551
- knowns fix commit d3989829fb50 https://github.com/knowns-dev/knowns/commit/d3989829fb5095666d23d005b2f78a082832a396
- knowns v0.30.0 Release Notes https://github.com/knowns-dev/knowns/releases/tag/v0.30.0
- GitHub Security Advisory (GHSA-wh3c-v55g-qfg8) https://github.com/knowns-dev/knowns/security/advisories/GHSA-wh3c-v55g-qfg8
- VulnCheck Advisory: knowns before 0.30.0 Path Traversal via Import Name https://www.vulncheck.com/advisories/knowns-before-0.30.0-path-traversal-via-import-name
Provider assertions
2VulnCheck · cna
knowns before 0.30.0 Path Traversal via Import Name
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8ae76e475dc592192e076b03794748abeb80872466acf575dac79b3ef147b1b2
- Ingested
- 30 Sep 2026, 15:34:33 UTC
- Source record
- Official CVE record