CWE-829Weakness · CWE-829

CVE-2025-36852

CRITICAL · 9.4 CVSS v4.0 Published 2025-06-10
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

The vulnerability exploits a race condition in bucket-based remote caches where artifacts from untrusted environments (feature branches, PRs) can be cached first under the 'first-to-cache wins' principle, then served to trusted environments (protected branches, production). This poisoning occurs before any security measures (encryption, access controls, checksums) are applied, as the compromise happens during artifact construction.

MitigationImplement artifact trust validation before caching - verify the build environment's trust level (e.g., protected branch vs PR) and reject caching artifacts from untrusted sources, or use separate isolated cache namespaces for untrusted vs trusted builds.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
Authentication
Y
User interaction
None
Scope
P

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:P/AU:Y/R:U/V:C/RE:M/U:Red

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify if bucket-based remote caching is in use
    Review build pipeline or CI/CD configuration files for remote cache settings that point to object storage buckets (e.g., S3, GCS, Azure Blob). Look for cache configuration sections that specify bucket URLs or remote cache providers.
    Affected if Remote bucket caching is enabled and artifacts from multiple environment types (feature branches, PRs, protected branches) write to the same cache namespace.
  2. Verify cache namespace isolation between trusted and untrusted environments
    Inspect the cache key or namespace configuration in your build system. Check whether the cache keys differentiate between build environment trust levels (e.g., branch type, branch protection status).
    Affected if Cache keys do not include trust-level identifiers and untrusted environments (PRs, feature branches) can write to the same cache namespace used by trusted environments (protected branches, production).
  3. Confirm artifact trust validation before caching
    Review build or caching logic to determine if any validation occurs to verify the build environment's trust status (protected branch, verified commit) before artifacts are written to the remote cache.
    Affected if No trust-level validation exists in the caching logic; artifacts are cached immediately upon completion without checking whether the source environment is trusted.
  4. Check for shared cache bucket without segmentation
    Examine the remote cache bucket policy or access configuration to see if a single bucket serves both untrusted and trusted build pipelines without separate prefixes, folders, or access controls.
    Affected if A single cache bucket is used by all builds without segmentation by environment trust level.

You are affected if your build system uses bucket-based remote caching where untrusted environments (feature branches, PRs) and trusted environments (protected branches, production) share the same cache namespace without artifact trust validation.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Implement artifact trust validation before caching - verify the build environment's trust level (e.g., protected branch vs PR) and reject caching artifacts from untrusted sources, or use separate isolated cache namespaces for untrusted vs trusted builds.

Have this fixed Scoped from the published advisory
  • Consultation8.0 h
  • Implementation40.0 h
  • Testing16.0 h
  • Review / QA8.0 h
72.0 hours of engineering $12,640
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $20,224.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-36852 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-36852 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data