CVE-2025-36852

Build Cache Poisoning via Untrusted Pull Requests

State
Published
Severity
9.4 Critical
Published
Jun 10, 2025
Updated
Jun 10, 2025
Reserved
Apr 15, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.09.4 CriticalCVSS: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:RedHeroDevs

Weaknesses

  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere

Affected Products

ProductVersions
Azure Based Remote Cache Plugin for NxNiklas Portmann
  • 0Affected
Minio Based Remote Cache Plugin for NxNiklas Portmann
  • 0Affected
Nx Remote Cache UtilitiesNiklas Portmann
  • 0Affected
AWS S3 Remote Cache Plugin for NxNx
  • 0Affected
GCS Remote Cache Plugin for NxNx
  • 0Affected
Azure Blob Remote Cache Plugin for NxNx
  • 0Affected
Shared File System Cache Plugin for NxNx
  • 0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.