Skip to content

CVE-2025-36852 Build Cache Poisoning via Untrusted Pull Requests

CriticalCVSS 9.4 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
Cloud Platforms

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.

Upgrade path

7 packages: 1 fixed.

PackageAffectedFixed inStatus
nx @nx/azure-cache(npm) <= 4.0.0; = 0 after 4.0.0 Fixed
niklas portmann nx-remotecache-azure(npm) = 0 No fix listed Versions listed
niklas portmann nx-remotecache-custom(npm) = 0 No fix listed Versions listed
niklas portmann nx-remotecache-minio(npm) = 0 No fix listed Versions listed
nx @nx/gcs-cache(npm) = 0 No fix listed Versions listed
nx @nx/s3-cache(npm) = 0 No fix listed Versions listed
nx @nx/shared-fs-cache(npm) = 0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
nx @nx/azure-cache(npm) <= 4.0.0 No fix listed
niklas portmann nx-remotecache-azure(npm) = 0 No fix listed
niklas portmann nx-remotecache-minio(npm) = 0 No fix listed
niklas portmann nx-remotecache-custom(npm) = 0 No fix listed
nx @nx/s3-cache(npm) = 0 No fix listed
nx @nx/gcs-cache(npm) = 0 No fix listed
nx @nx/azure-cache(npm) = 0 No fix listed
nx @nx/shared-fs-cache(npm) = 0 No fix listed

References