CVE-2026-88899 knowns before 0.31.0 External Control of Agent Working Directory via x-opencode-directory Header
설명
knowns versions before 0.31.0 fail to properly validate the x-opencode-directory request header in the /api/opencode proxy endpoint. Remote attackers can supply arbitrary directory paths to execute file operations outside the project root on the host system.
영향 받는 제품 제품 1개
-
해결 버전 있음
knowns-dev
knowns
영향 받는 버전
- 0.31.0 미만
해결 버전
- 0.31.0 이상
- 0.31.0
참고 자료 5건
- github.com https://github.com/knowns-dev/knowns/blob/v0.30.0/internal/server/server.go#L1283-L1296 (새 창)
- github.com https://github.com/knowns-dev/knowns/commit/37db0561b37b48b8bd035a417d7f1da6258ae657 (새 창)
- github.com https://github.com/knowns-dev/knowns/releases/tag/v0.31.0 (새 창)
- github.com https://github.com/knowns-dev/knowns/security/advisories/GHSA-9h2q-r9fh-f98w (새 창)
- vulncheck.com https://www.vulncheck.com/advisories/knowns-before-0.31.0-external-control-of-agent-working-directory-via-x-opencode-directory-header (새 창)