{
  "schema_version": "1.6.0",
  "id": "ACVE-2026-0411",
  "aliases": [
    "CVE-2025-8217"
  ],
  "published": "2025-07-23T00:00:00Z",
  "firstReported": {
    "date": "2025-07-23",
    "url": "https://github.com/aws/aws-toolkit-vscode/security/advisories/GHSA-7g7f-ff96-5gcw",
    "publisher": "AWS (GitHub advisory)"
  },
  "modified": "2026-09-25T00:00:00Z",
  "summary": "A developer installs Amazon Q Developer for VS Code 1.84.0; on launch injected code drives the Q Developer CLI to wipe the host, though a syntax error kept it from running (July 2025).",
  "details": "## What\n\nA 2025 event. An inappropriately scoped GitHub token in the project's CodeBuild configuration let an attacker commit code to the open-source repository, and it was included in extension version 1.84.0 (`amazonwebservices.amazon-q-vscode`). The code runs when the extension starts and calls the Q Developer CLI; reporting says the injected instruction told the agent to wipe the host to a near-factory state, deleting local files and cloud resources. AWS states a syntax error prevented it from executing and that no customer environment was affected, and removed 1.84.0 from distribution.\n\n## Detection\n\n`acve lock` does not inventory VS Code extensions, so this record has no matcher: run `code --list-extensions --show-versions`.\n\n## Fix\n\nUpgrade to 1.85.0 and make sure no copy of 1.84.0 remains installed.",
  "severity": [
    {
      "type": "CVSS_V4",
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber"
    },
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "VSCode",
        "name": "AmazonWebServices.amazon-q-vscode"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "1.84.0"
            },
            {
              "fixed": "1.85.0"
            }
          ]
        }
      ],
      "versions": [
        "1.84.0"
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/aws/aws-toolkit-vscode/security/advisories/GHSA-7g7f-ff96-5gcw"
    },
    {
      "type": "ADVISORY",
      "url": "https://aws.amazon.com/security/security-bulletins/AWS-2025-015/"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2025-8217"
    },
    {
      "type": "FIX",
      "url": "https://github.com/aws/aws-toolkit-vscode/releases/tag/amazonq%2Fv1.85.0"
    }
  ],
  "database_specific": {
    "severity": "MODERATE",
    "acve": {
      "specVersion": 1,
      "status": "candidate",
      "kind": "code",
      "vulnClasses": [
        "supply-chain"
      ],
      "cwe": [
        "CWE-506"
      ],
      "exposure": {
        "harness": {
          "value": "Amazon Q Developer for VS Code 1.84.0 (amazonwebservices.amazon-q-vscode)",
          "any": false,
          "status": "confirmed",
          "source": "https://cveawg.mitre.org/api/cve/CVE-2025-8217"
        },
        "model": {
          "value": "any",
          "any": true,
          "status": "confirmed",
          "source": "https://cveawg.mitre.org/api/cve/CVE-2025-8217"
        },
        "goal": {
          "value": "Wipe the host to a near-factory state, deleting local filesystem contents and cloud resources",
          "stated": true,
          "status": "detected",
          "source": "https://www.404media.co/hacker-plants-computer-wiping-commands-in-amazons-ai-coding-agent/"
        },
        "tools": {
          "value": "Injected code shipped in extension 1.84.0 that runs when the extension launches and calls the Q Developer CLI",
          "status": "confirmed",
          "source": "https://cveawg.mitre.org/api/cve/CVE-2025-8217"
        },
        "approval": {
          "value": "The injected code runs when the extension launches and was written to drive the CLI agent to act without a prompt",
          "mode": "auto-approve",
          "status": "detected",
          "source": "https://www.404media.co/hacker-plants-computer-wiping-commands-in-amazons-ai-coding-agent/"
        },
        "inputControl": "package-publisher",
        "agentAction": "On extension launch the injected code invokes the Q Developer CLI to delete local files and cloud resources; a syntax error stopped it from running.",
        "harm": "data-loss",
        "divergence": "instruction-followed",
        "reach": {
          "value": "Local files and the user's cloud resources, per the injected instruction",
          "kinds": [
            "home-directory",
            "cloud-credentials"
          ],
          "status": "detected",
          "source": "https://github.com/aws/aws-toolkit-vscode/security/advisories/GHSA-7g7f-ff96-5gcw"
        },
        "condition": {
          "value": "When the extension launched with the injected code; AWS says it did not execute",
          "status": "confirmed",
          "source": "https://github.com/aws/aws-toolkit-vscode/security/advisories/GHSA-7g7f-ff96-5gcw"
        }
      },
      "occurrence": {
        "basis": "attempted",
        "reportedBy": "vendor",
        "responses": [
          {
            "party": "AWS",
            "status": "fixed",
            "source": "https://aws.amazon.com/security/security-bulletins/AWS-2025-015/"
          }
        ]
      },
      "exploitation": {
        "status": "none-known",
        "checkedAt": "2026-09-21T00:00:00Z",
        "sources": [
          {
            "url": "https://aws.amazon.com/security/security-bulletins/AWS-2025-015/",
            "type": "vendor",
            "note": "The malicious code was distributed but, per AWS, failed to execute because of a syntax error."
          }
        ],
        "kev": {
          "listed": false
        }
      },
      "taxonomy": {
        "owasp_asi": [
          "ASI04",
          "ASI02"
        ],
        "atlas": [
          "AML.T0010.001",
          "AML.T0103",
          "AML.T0101"
        ]
      },
      "cveBoundary": "cve-aliased",
      "fix": {
        "summary": "Upgrade Amazon Q Developer for VS Code to 1.85.0 and remove 1.84.0.",
        "actions": [
          {
            "type": "upgrade",
            "target": "AgentPlugin:amazonwebservices.amazon-q-vscode@vscode-marketplace",
            "to": "1.85.0",
            "why": "Fixed version named by AWS and CVE-2025-8217.",
            "owner": "operator"
          },
          {
            "type": "reconfigure",
            "target": "aws.amazon-q-vscode.distribution",
            "to": "1.84.0 withdrawn; 1.85.0 released",
            "why": "Shipped by AWS: it removed 1.84.0 from distribution and named 1.85.0 the fixed version.",
            "owner": "harness-vendor"
          },
          {
            "type": "reconfigure",
            "target": "aws.aws-toolkit-vscode.codebuild",
            "to": "a GitHub token that cannot commit to the repository",
            "why": "Recommended: an inappropriately scoped token in the CodeBuild configuration let the attacker commit the code.",
            "owner": "harness-vendor"
          }
        ]
      },
      "claims": [
        {
          "kind": "identifier",
          "statement": "Identifier CVE-2025-8217",
          "value": "CVE-2025-8217",
          "status": "confirmed",
          "source": "https://cveawg.mitre.org/api/cve/CVE-2025-8217",
          "result": "match",
          "observed": "CVE.org: PUBLISHED",
          "method": "machine",
          "checkedAt": "2026-09-23T17:48:57Z"
        },
        {
          "kind": "fixed-version",
          "statement": "Fixed in 1.85.0",
          "value": "1.85.0",
          "status": "detected",
          "source": "https://cveawg.mitre.org/api/cve/CVE-2025-8217",
          "result": "match",
          "observed": "CVE.org structured: lessThan 1.85.0; CVE.org description: fixed v1.85.0.",
          "method": "machine",
          "checkedAt": "2026-09-21T23:13:22Z"
        },
        {
          "kind": "severity",
          "statement": "Severity MODERATE (CVSS 4); matches CNA",
          "value": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber",
          "status": "confirmed",
          "source": "https://cveawg.mitre.org/api/cve/CVE-2025-8217",
          "observed": "CNA: MODERATE 5.1 (CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber); CNA: MODERATE 4 (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N); OSV: (CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber)",
          "result": "match",
          "method": "machine",
          "checkedAt": "2026-09-23T17:48:57Z"
        },
        {
          "kind": "affected-range",
          "statement": "Affected versions include 1.84.0",
          "value": "1.84.0",
          "status": "detected",
          "source": "https://cveawg.mitre.org/api/cve/CVE-2025-8217",
          "result": "unchecked",
          "observed": "",
          "method": "machine"
        }
      ],
      "reproducibility": {
        "status": "partial",
        "axesComplete": true,
        "componentsObtainable": null,
        "triggerPublished": false,
        "observableStated": true,
        "demonstrated": "reported-only",
        "missing": [
          "vulnerable components are not confirmed obtainable",
          "trigger not published"
        ]
      },
      "severityBasis": "cvss"
    }
  }
}
