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
Published: 2026-06-04
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Persister.validate_tgz builds a shell command "tar -tf #{tgz} 2>&1" where tgz includes a package name taken directly from package_meta['name'] inside the uploaded tarball. The command is executed via %x{}, which runs /bin/sh -c without escaping, leaving the name unescaped. Because this shell-out occurs before the Sequel validation of the package name, an attacker can provide a package_meta['name'] that injects shell metacharacters, enabling arbitrary command execution on the BOSH host. This flaw is a classic command injection (CWE-78) that jeopardizes confidentiality, integrity, and availability.

Affected Systems

The vulnerability affects all BOSH versions prior to v282.1.12 (inclusive). The affected product is BOSH from the Cloud Foundry Foundation.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity. The EPSS score is not reported, and the vulnerability is not listed in KEV, but that does not preclude exploitation. Based on the description, the likely attack vector is a remote upload of a crafted tarball that contains malicious package_meta['name'] values, enabling an attacker to run arbitrary commands on the BOSH controller over the network.

Generated by OpenCVE AI on June 4, 2026 at 04:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade BOSH to version 282.1.12 or later, which introduces proper name validation before executing shell commands.
  • Ensure that any package upload validation runs before any shell invocation, preventing the name from influencing command construction.
  • Temporarily disable or restrict the package upload API for untrusted users until the patch is deployed.

Generated by OpenCVE AI on June 4, 2026 at 04:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 04 Jun 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 04 Jun 2026 05:15:00 +0000

Type Values Removed Values Added
Title Command Injection via Unescaped Package Name in BOSH Package Persister

Thu, 04 Jun 2026 04:15:00 +0000

Type Values Removed Values Added
First Time appeared Cloud Foundry
Cloud Foundry bosh
Vendors & Products Cloud Foundry
Cloud Foundry bosh

Thu, 04 Jun 2026 02:30:00 +0000

Type Values Removed Values Added
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
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

Cloud Foundry Bosh
cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2026-06-04T15:07:08.845Z

Reserved: 2026-04-16T02:19:16.427Z

Link: CVE-2026-41011

cve-icon Vulnrichment

Updated: 2026-06-04T14:03:19.397Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-06-04T03:16:19.633

Modified: 2026-06-04T15:35:18.623

Link: CVE-2026-41011

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-04T05:00:06Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')