CVE-2025-36852 PUBLISHED

Build Cache Poisoning via Untrusted Pull Requests

Assigner: HeroDevs
Reserved: 15.04.2025 Published: 10.06.2025 Updated: 10.06.2025

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.

Metrics

CVSS 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
CVSS Score: 9.4

Product Status

Vendor Niklas Portmann
Product Azure Based Remote Cache Plugin for Nx
Versions Default: affected
  • Version 0 is affected
Vendor Niklas Portmann
Product Minio Based Remote Cache Plugin for Nx
Versions Default: affected
  • Version 0 is affected
Vendor Niklas Portmann
Product Nx Remote Cache Utilities
Versions Default: affected
  • Version 0 is affected
Vendor Nx
Product AWS S3 Remote Cache Plugin for Nx
Versions Default: affected
  • Version 0 is affected
Vendor Nx
Product GCS Remote Cache Plugin for Nx
Versions Default: affected
  • Version 0 is affected
Vendor Nx
Product Azure Blob Remote Cache Plugin for Nx
Versions Default: affected
  • Version 0 is affected
Vendor Nx
Product Shared File System Cache Plugin for Nx
Versions Default: affected
  • Version 0 is affected

References

Problem Types

  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere CWE

Impacts

  • CAPEC-141 Cache Poisoning
  • CAPEC-554 Functionality Bypass
  • CAPEC-438 Modification During Manufacture