CVE-2026-41011 PUBLISHED

Assigner: vmware
Reserved: 16.04.2026 Published: 04.06.2026 Updated: 04.06.2026

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

Metrics

CVSS 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
CVSS Score: 8.7

Product Status

Vendor Cloud Foundry Foundation
Product BOSH
Versions Default: unaffected
  • affected from 0 to 282.1.12 (excl.)

References

Problem Types

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE

Impacts

  • An attacker with bosh.releases.upload or bosh.admin permission can inject arbitrary OS commands via a crafted package name in an uploaded release tarball, achieving remote code execution on the BOSH director with full confidentiality, integrity, and availability impact on both vulnerable and subsequent systems.