CVE-2026-41011: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Cloud Foundry Foundation BOSH
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
AI Analysis
Technical Summary
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.
CVE-2026-41011: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Cloud Foundry Foundation 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
Affected software
pkg:github/cloudfoundry/boshRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.