{"id":"CVE-2026-108595","state":"PUBLISHED","title":"Phi 0.3.0 through 0.28.4 Permission Bypass via agent_spawn Workdir","description":"Phi 0.3.0 through 0.28.4 contains a permission bypass vulnerability that allows spawned sub-agents to escape workspace_only_writes and readonly mode by supplying an unchecked workdir to agent_spawn. Attackers can plant prompt-injected instructions in processed content so the agent spawns a worker rooted elsewhere, causing unapproved file writes anywhere the user can write.","publishedAt":"2026-10-10T18:16:58.378Z","updatedAt":"2026-10-13T18:56:08.213Z","severity":{"score":6,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["pulseaiclub phi"],"affected":[{"vendor":"pulseaiclub","product":"phi","packageURL":"pkg:golang/github.com/pulseaiclub/phi","defaultStatus":"unaffected","versions":[{"version":"0.3.0","status":"affected","lessThanOrEqual":"0.28.4","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","repo":"https://github.com/pulseaiclub/phi"}],"references":["https://hackmd.io/@haind/phi-subagent-workdir-workspace-escape","https://github.com/pulseaiclub/phi/blob/5b3cb440a7c58115ef64283a737a43299f2805a4/internal/tools/agenttool/agent.go#L106-L120","https://github.com/pulseaiclub/phi/blob/5b3cb440a7c58115ef64283a737a43299f2805a4/internal/agent/engine_runner.go#L52-L60","https://github.com/pulseaiclub/phi","https://www.vulncheck.com/advisories/phi-0.3.0-through-0.28.4-permission-bypass-via-agent-spawn-workdir"],"weaknesses":["CWE-863"],"ingestedAt":"2026-10-29T20:10:33.477Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/108xxx/CVE-2026-108595.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-108595","state":"PUBLISHED","datePublished":"2026-10-10T18:16:58.378Z","dateUpdated":"2026-10-13T18:56:08.213Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-10T18:08:12.414Z"},"containers":{"cna":{"title":"Phi 0.3.0 through 0.28.4 Permission Bypass via agent_spawn Workdir","descriptions":[{"lang":"en","value":"Phi 0.3.0 through 0.28.4 contains a permission bypass vulnerability that allows spawned sub-agents to escape workspace_only_writes and readonly mode by supplying an unchecked workdir to agent_spawn. Attackers can plant prompt-injected instructions in processed content so the agent spawns a worker rooted elsewhere, causing unapproved file writes anywhere the user can write."}],"affected":[{"vendor":"pulseaiclub","product":"phi","packageURL":"pkg:golang/github.com/pulseaiclub/phi","defaultStatus":"unaffected","versions":[{"version":"0.3.0","status":"affected","lessThanOrEqual":"0.28.4","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","repo":"https://github.com/pulseaiclub/phi"}],"references":[{"url":"https://hackmd.io/@haind/phi-subagent-workdir-workspace-escape","tags":["third-party-advisory"]},{"url":"https://github.com/pulseaiclub/phi/blob/5b3cb440a7c58115ef64283a737a43299f2805a4/internal/tools/agenttool/agent.go#L106-L120","tags":["technical-description"]},{"url":"https://github.com/pulseaiclub/phi/blob/5b3cb440a7c58115ef64283a737a43299f2805a4/internal/agent/engine_runner.go#L52-L60","tags":["technical-description"]},{"url":"https://github.com/pulseaiclub/phi","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/phi-0.3.0-through-0.28.4-permission-bypass-via-agent-spawn-workdir","name":"VulnCheck Advisory: Phi 0.3.0 through 0.28.4 Permission Bypass via agent_spawn Workdir","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","lang":"en","description":"Incorrect Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-10T18:16:58.378Z"},"datePublic":"2026-10-09T00:00:00.000Z","credits":[{"lang":"en","value":"HaiND from the Post and Telecommunication Institute of Technology","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://hackmd.io/@haind/phi-subagent-workdir-workspace-escape","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-13T18:55:37.507880Z","id":"CVE-2026-108595","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-13T18:56:08.213Z"}}]}}}