{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0.3.0"
              },
              {
                "last_affected": "0.28.4"
              },
              {
                "fixed": "0.28.4"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION"
            ]
          },
          "events": [
            {
              "introduced": "b568ed7d3b4a8de8a3c36f9cecd98c112e422be0"
            },
            {
              "fixed": "5b3cb440a7c58115ef64283a737a43299f2805a4"
            }
          ],
          "repo": "https://github.com/pulseaiclub/phi",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108595.json"
  },
  "details": "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.",
  "id": "CVE-2026-108595",
  "modified": "2026-10-15T02:30:48.225893782Z",
  "published": "2026-10-10T18:16:58.378Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://pkg.go.dev"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108595.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://hackmd.io/@haind/phi-subagent-workdir-workspace-escape"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-108595"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/phi-0.3.0-through-0.28.4-permission-bypass-via-agent-spawn-workdir"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/pulseaiclub/phi"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/pulseaiclub/phi/blob/5b3cb440a7c58115ef64283a737a43299f2805a4/internal/agent/engine_runner.go#L52-L60"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/pulseaiclub/phi/blob/5b3cb440a7c58115ef64283a737a43299f2805a4/internal/tools/agenttool/agent.go#L106-L120"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Phi 0.3.0 through 0.28.4 Permission Bypass via agent_spawn Workdir"
}