Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 98%

CVE-2026-41011: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Cloud Foundry Foundation BOSH

0
High
VulnerabilityCVE-2026-41011cvecve-2026-41011cwe-78
Published: 06/04/2026 (06/04/2026, 02:26:11 UTC)
Source: CVE Database V5
Vendor/Project: Cloud Foundry Foundation
Product: BOSH

Description

PackagePersister.validate_tgz builds "tar -tf #{tgz} 2>&1" where tgz = File.join(release_dir, 'packages', "#{name}.tgz") and name = package_meta['name'] comes directly from release.MF inside the uploaded tarball. The string is passed to Bosh::Common::Exec.sh, which executes via %x{} — i.e., /bin/sh -c. No Shellwords.escape is applied. The Models::Package Sequel validation (VALID_ID = /^[-0-9A-Za-z_+.]+$/i) would reject the name, but in create_package (lines 74–79) the shell-out in save_package_source_blob runs before package.save, so validation fires too late. Affected versions: - BOSH: all versions prior to v282.1.12 (inclusive); fixed in v282.1.12 or later

CVSS v4.0

Score 8.7high

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Affected software

GitHub Actionsmore threats →ai
cloudfoundry/bosh
pkg:github/cloudfoundry/bosh
Affected versions
<282.1.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/11/2026, 08:44:19 UTC

Technical Analysis

The vulnerability occurs in the PackagePersister.validate_tgz method of BOSH, where a shell command is constructed using a package name derived from release.MF inside an uploaded tarball. This name is interpolated directly into a shell command executed via /bin/sh without escaping special characters, leading to OS command injection (CWE-78). Although a validation regex exists to restrict package names, it is enforced only after the shell command execution, making the validation ineffective as a mitigation. Versions of BOSH prior to 282.1.12 are affected, with the issue fixed in 282.1.12 and later.

Potential Impact

An attacker able to upload a specially crafted tarball containing a malicious package name could execute arbitrary OS commands on the system running BOSH. This could lead to unauthorized code execution, potentially compromising the host environment. The CVSS 4.0 score of 8.7 reflects high impact, including high vector complexity and privileges required, but with potential for significant confidentiality, integrity, and availability impact.

Mitigation Recommendations

Upgrade BOSH to version 282.1.12 or later, where this vulnerability is fixed. Since the vulnerability is addressed in this version, no additional mitigations are required. Patch status is confirmed by the affectedVersions and description indicating the fix in 282.1.12.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
vmware
Date Reserved
2026-04-16T02:19:16.427Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a20e3ffe29bf47b504cab97

Added to database: 06/04/2026, 02:33:35 UTC

Last enriched: 06/11/2026, 08:44:19 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 79

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses