{"id":"CVE-2026-41011","published":"2026-06-04T02:26:11Z","modified":"2026-06-04T15:07:08Z","title":"PackagePersister.validate_tgz builds \"tar -tf #{tgz} 2>&1\" where tgz = File.join(release_dir, 'packages'…","vendor":"Cloud Foundry Foundation","product":"BOSH","tier":"tail","description":{"text":"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.\n\nAffected versions:\n- BOSH: all versions prior to v282.1.12 (inclusive); fixed in v282.1.12 or later","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00116,"percentile":0.01667,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://www.cloudfoundry.org/blog/cve-2026-41011-package-name-command-injection/","tags":[]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":0.33},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"cloud-foundry-foundation","affectedVersions":[{"vendor":"Cloud Foundry Foundation","product":"BOSH","versions":["< 282.1.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-04T14:02:16.987981Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-34197","exploited":false,"provenance":"source"}}