{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.20.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "4fa5d202a77ca7b69f1cb7fc8936d7efb7ae60ee"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.20.0",
                "range": [
                  {
                    "fixed": "328ca09af0305c765952364a71860e2ab27eec87"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "328ca09af0305c765952364a71860e2ab27eec87"
            },
            {
              "fixed": "4fa5d202a77ca7b69f1cb7fc8936d7efb7ae60ee"
            }
          ],
          "repo": "https://github.com/open-policy-agent/opa",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-377"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137570.json"
  },
  "details": "Open Policy Agent before 1.20.0 contains an insecure temporary file vulnerability that allows local users to overwrite files by abusing the fixed OCI store path used when persistence_directory is unset. Attackers can pre-create the opa/oci temp directory with index.json or oci-layout symlinks so OPA overwrites the target files with OCI JSON using its privileges.",
  "id": "CVE-2026-137570",
  "modified": "2026-11-27T20:45:31.415607375Z",
  "published": "2026-11-26T13:13:11.679Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://pkg.go.dev"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137570.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/open-policy-agent/opa/releases/tag/v1.20.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137570"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/open-policy-agent-before-1.20.0-symlink-file-overwrite-via-predictable-oci-store-path"
    },
    {
      "type": "FIX",
      "url": "https://github.com/open-policy-agent/opa/commit/4fa5d202a77ca7b69f1cb7fc8936d7efb7ae60ee"
    },
    {
      "type": "FIX",
      "url": "https://github.com/open-policy-agent/opa/pull/8853"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/open-policy-agent/opa"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/open-policy-agent/opa/blob/v1.19.1/v1/plugins/bundle/plugin.go#L457"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Open Policy Agent before 1.20.0 Symlink File Overwrite via Predictable OCI Store Path"
}