CVE-2026-41011
JSON

8.7high

PackagePersister.validatetgz builds "tar -tf #{tgz} 2&1" where tgz = File.join(releasedir, 'packages', "#{name}.tgz") and name = packagemet…

Severity
8.7high CVSS:4.0 by vmware
Exploit likelihood
0.12% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
vmware

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

Affected

Product or packageVersionsReported by
Cloud Foundry Foundation BOSHbefore 282.1.12CVE List

All scores

vmware8.7high CVSS:4.0CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
vmware8.2high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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

NVD (es)

PackagePersister.validate_tgz construye 'tar -tf #{tgz} 2>&1' donde tgz = File.join(release_dir, 'packages', '#{name}.tgz') y name = package_meta['name'] proviene directamente de release.MF dentro del tarball subido. La cadena se pasa a Bosh::Common::Exec.sh, que se ejecuta a través de %x{} - es decir, /bin/sh -c. No se aplica Shellwords.escape. La validación de Sequel de Models::Package (VALID_ID = /^[-0-9A-Za-z_+.]+$/i) rechazaría el nombre, pero en create_package (líneas 74-79) la ejecución de comandos externos en save_package_source_blob se ejecuta antes de package.save, por lo que la validación se activa demasiado tarde. Versiones afectadas: - BOSH: todas las versiones anteriores a la v282.1.12 (inclusive); corregido en la v282.1.12 o posterior

References

Sources

SourceRecordLicence
CVE ListCVE-2026-41011 changed 2026-06-04CVE Terms of Use
NVDCVE-2026-41011 changed 2026-07-22Public domain