Skip to content
Heist/ feed
Back to feed
Critical

Build Cache Poisoning via Untrusted Pull Requests

Type: advisorySources: OSV

A critical security vulnerability exists in remote cache extensions for common build systems utilizing bucket-based remote cache (such as those using Amazon S3, Google Cloud Storage, or similar object storage) that allows any contributor with pull request privileges to inject compromised artifacts from an untrusted environment into trusted production environments without detection. The vulnerability exploits a fundamental design flaw in the "first-to-cache wins" principle, where artifacts built in untrusted environments (feature branches, pull requests) can poison the cache used by trusted environments (protected branches, production deployments). This attack bypasses all traditional security measures including encryption, access controls, and checksum validation because the poisoning occurs during the artifact construction phase, before any security measures are applied.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-36852
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 23:52 UTC · Revision 1

Source evidence

Build Cache Poisoning via Untrusted Pull Requests

core-osv · Original source

Published 10 Jun 2025, 19:23 UTC

A critical security vulnerability exists in remote cache extensions for common build systems utilizing bucket-based remote cache (such as those using Amazon S3, Google Cloud Storage, or similar object storage) that allows any contributor with pull request privileges to inject compromised artifacts from an untrusted environment into trusted production environments without detection. The vulnerability exploits a fundamental design flaw in the "first-to-cache wins" principle, where artifacts built in untrusted environments (feature branches, pull requests) can poison the cache used by trusted environments (protected branches, production deployments). This attack bypasses all traditional security measures including encryption, access controls, and checksum validation because the poisoning occurs during the artifact construction phase, before any security measures are applied.

osv:CVE-2025-36852
Complete source record
{
  "id": "312a7ed500d989a625f1d848d98716cfe432664c9e0fe15594c0f2ff0e65ea33",
  "url": "https://osv.dev/vulnerability/CVE-2025-36852",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Build Cache Poisoning via Untrusted Pull Requests",
    "summary": "A critical security vulnerability exists in remote cache extensions for common build systems utilizing bucket-based remote cache (such as those using Amazon S3, Google Cloud Storage, or similar object storage) that allows any contributor with pull request privileges to inject compromised artifacts from an untrusted environment into trusted production environments without detection. The vulnerability exploits a fundamental design flaw in the \"first-to-cache wins\" principle, where artifacts built in untrusted environments (feature branches, pull requests) can poison the cache used by trusted environments (protected branches, production deployments). This attack bypasses all traditional security measures including encryption, access controls, and checksum validation because the poisoning occurs during the artifact construction phase, before any security measures are applied.",
    "evidence": "osv:CVE-2025-36852",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-36852",
      "aliases": [
        "CVE-2025-36852",
        "GHSA-rrr2-jcr8-7q3x"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/S:P/AU:Y/R:U/V:C/RE:M/U:Red"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/niklaspor/nx-remotecache-azure",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-36852.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.266599354Z",
      "provider": "osv",
      "references": [
        "https://nx.app/files/cve-2025-06",
        "https://registry.npmjs.org",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/36xxx/CVE-2025-36852.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-36852",
        "https://github.com/NiklasPor/nx-remotecache-azure",
        "https://github.com/NiklasPor/nx-remotecache-custom",
        "https://github.com/NiklasPor/nx-remotecache-minio"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-829"
        ],
        "cna_assigner": "HeroDevs",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/36xxx/CVE-2025-36852.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-36852",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 513233,
  "published_at": "2025-06-10T19:23:33.956+00:00"
}