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

- Severity: High 8.7 (CVSS:4.0, scored by vmware) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-04T02:26:11.509Z
- Modified: 2026-07-22T20:10:00.127Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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

(As written by CVE List.)

## Affected

- Cloud Foundry Foundation BOSH: before 282.1.12

## Every score

- vmware: CVSS:4.0 8.7 High `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`
- vmware: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://www.cloudfoundry.org/blog/cve-2026-41011-package-name-command-injection/>

## Sources

- CVE List: [CVE-2026-41011](https://www.cve.org/CVERecord?id=CVE-2026-41011), CVE Terms of Use, modified 2026-06-04
- NVD: [CVE-2026-41011](https://nvd.nist.gov/vuln/detail/CVE-2026-41011), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-41011 · Whole record: https://cve.day/CVE-2026-41011.json · Rebuilt by cve.day 2026-11-25T22:59:23.678Z
