# CVE-2026-41704: Compromised VM can make arbitrary blobstore deletes

> A compromised VM can delete arbitrary blobs from the shared BOSH Director blobstore due to missing ownership checks in resource deletion logic.

- **Severity:** Medium 6.8 (`CVSS:4.0/AV:L/AC:H/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:H`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 27 May 2026
- **Updated:** 27 May 2026
- **Also known as:** GHSA-mhvf-vxjh-cwwp

## What is CVE-2026-41704?

CVE-2026-41704 is a medium-severity missing authorization vulnerability in Cloud Foundry Foundation BOSH Director, published on 27 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

AgentClient#handle_method (lines 264-303) processes every NATS reply. It calls inject_compile_log (line 273) on every response, which reads response['value']['result']['compile_log_id'] (line 332-338) and passes it to download_and_delete_blob. Separately, any response containing 'exception' goes through format_exception (lines 308-325), which reads exception['blobstore_id'] and also calls download_and_delete_blob. That helper (lines 344-349) calls ResourceManager#get_resource(blob_id) and, in an ensure block, ResourceManager#delete_resource(blob_id). ResourceManager (resource_manager.rb:62-70) calls blobstore.delete(id) on the single shared Director blobstore with no UUID-format check, no ownership check, and no namespace prefix.

Affected versions:
BOSH Director: All versions prior to v282.1.12

Weakness: CWE-284 (Improper Access Control)

## Which versions are affected by CVE-2026-41704?

It affects 1 product.


Products: Cloud Foundry Bosh.

## How do I fix CVE-2026-41704?

No fix has been published for CVE-2026-41704 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-41704 being exploited?

There is no known exploitation of CVE-2026-41704 in the wild and no public exploit code.

## Other vulnerabilities in Cloud Foundry Foundation BOSH Director

- [CVE-2017-4961](https://insights.sbomify.com/CVE-2017-4961/): Command injection in Cloud Foundry Foundation BOSH Release (high 8.8)
- [CVE-2018-11083](https://insights.sbomify.com/CVE-2018-11083/): Bosh accepts refresh tokens in place of an access token (high 8.4)
- [CVE-2019-11271](https://insights.sbomify.com/CVE-2019-11271/): Bosh Deployment logs leak sensitive information (medium 6.0)
- [CVE-2026-41009](https://insights.sbomify.com/CVE-2026-41009/): Local Blobstore may allow arbitrary reads/deletes (medium 4.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-41704 and fix it if it is affected.

What it is: CVE-2026-41704 is a medium-severity missing authorization vulnerability in Cloud Foundry Foundation BOSH Director, published on 27 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-41704 in the wild and no public exploit code.

Affected product: Cloud Foundry Foundation BOSH Director. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-41704/ (Markdown: https://insights.sbomify.com/CVE-2026-41704/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-41704
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-41704
- OSV: https://osv.dev/vulnerability/CVE-2026-41704

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-41704/
Summaries are generated and may contain mistakes; the official description above is the record.
