CVE-2025-36852

Build Cache Poisoning via Untrusted Pull Requests

Published Jun 10, 2025 CVSS 4.0 · 9.4 Critical EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-17809 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.
Github GHSA Github GHSA GHSA-rrr2-jcr8-7q3x @nx/azure-cache Vulnerable to Build Cache Poisoning via Untrusted Pull Requests
References
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00037}

epss

{'score': 0.00043}

Type Values Removed Values Added
First Time appeared Niklas Portmann
Niklas Portmann nx-remotecache-azure
Niklas Portmann nx-remotecache-custom
Niklas Portmann nx-remotecache-minio
Nx
Nx azure-cache
Nx gcs-cache
Nx s3-cache
Nx shared-fs-cache
CPEs cpe:2.3:a:niklas_portmann:nx-remotecache-azure:0:*:*:*:*:*:*:*
cpe:2.3:a:niklas_portmann:nx-remotecache-custom:0:*:*:*:*:*:*:*
cpe:2.3:a:niklas_portmann:nx-remotecache-minio:0:*:*:*:*:*:*:*
cpe:2.3:a:nx:azure-cache:0:*:*:*:*:*:*:*
cpe:2.3:a:nx:gcs-cache:0:*:*:*:*:*:*:*
cpe:2.3:a:nx:s3-cache:0:*:*:*:*:*:*:*
cpe:2.3:a:nx:shared-fs-cache:0:*:*:*:*:*:*:*
Vendors & Products Niklas Portmann
Niklas Portmann nx-remotecache-azure
Niklas Portmann nx-remotecache-custom
Niklas Portmann nx-remotecache-minio
Nx
Nx azure-cache
Nx gcs-cache
Nx s3-cache
Nx shared-fs-cache
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Build Cache Poisoning via Untrusted Pull Requests
Weaknesses CWE-829
References
Metrics cvssV4_0

{'score': 9.4, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
HeroDevs
Published
Updated
Jun 10, 2025, 9:35 PM
Reserved
Apr 15, 2025, 11:50 PM
Status
Deferred
Published
Jun 10, 2025, 8:15 PM
Modified
Jun 17, 2026, 9:14 AM