CVE-2026-41010: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Cloud Foundry Foundation BOSH Director
ReleaseJob#unpack builds job_dir = File.join(@release_dir, 'jobs', name) and job_tgz = File.join(@release_dir, 'jobs', "#{name}.tgz") where name returns @job_meta['name'], a value taken verbatim from the jobs: array of the attacker-supplied release.MF inside the uploaded tarball. These paths are then interpolated into a shell string: Bosh::Common::Exec.sh("tar -C #{job_dir} -xf #{job_tgz} 2>&1", :on_error => :return). Bosh::Common::Exec.sh executes via %x{#{command}} (bosh-common/lib/bosh/common/exec.rb:53), i.e. /bin/sh -c, so any shell metacharacters in name are interpreted. FileUtils.mkdir_p(job_dir) on line 49 creates the literal directory (no shell) and succeeds even when the name contains $()/;, so execution reaches the sh call. Affected versions: - BOSH Director: all versions prior to v282.1.12 (inclusive); fixed in v282.1.12 or later
AI Analysis
Technical Summary
The vulnerability occurs in the ReleaseJob#unpack method of BOSH Director, where the job directory and tarball paths are constructed using the job name extracted verbatim from the attacker-supplied release.MF file inside an uploaded tarball. These paths are then interpolated into a shell command executed via /bin/sh -c, enabling shell metacharacter interpretation and potential command injection. The directory creation step uses FileUtils.mkdir_p, which does not invoke a shell and succeeds even with malicious characters, allowing the exploit to reach the shell execution step. Versions prior to v282.1.12 are affected, with the issue fixed in v282.1.12 and later.
Potential Impact
An attacker with the ability to upload a release tarball containing a crafted release.MF file can execute arbitrary OS commands with the privileges of the BOSH Director process. This can lead to unauthorized command execution, potentially compromising the host system and affecting the integrity and availability of the BOSH Director environment.
Mitigation Recommendations
A fix is available in BOSH Director version v282.1.12 and later. Users should upgrade to v282.1.12 or a more recent version to remediate this vulnerability. No additional mitigation steps are indicated by the vendor advisory.
CVE-2026-41010: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Cloud Foundry Foundation BOSH Director
Description
ReleaseJob#unpack builds job_dir = File.join(@release_dir, 'jobs', name) and job_tgz = File.join(@release_dir, 'jobs', "#{name}.tgz") where name returns @job_meta['name'], a value taken verbatim from the jobs: array of the attacker-supplied release.MF inside the uploaded tarball. These paths are then interpolated into a shell string: Bosh::Common::Exec.sh("tar -C #{job_dir} -xf #{job_tgz} 2>&1", :on_error => :return). Bosh::Common::Exec.sh executes via %x{#{command}} (bosh-common/lib/bosh/common/exec.rb:53), i.e. /bin/sh -c, so any shell metacharacters in name are interpreted. FileUtils.mkdir_p(job_dir) on line 49 creates the literal directory (no shell) and succeeds even when the name contains $()/;, so execution reaches the sh call. Affected versions: - BOSH Director: all versions prior to v282.1.12 (inclusive); fixed in v282.1.12 or later
CVSS v4.0
Score 8.7high
Affected software
pkg:github/cloudfoundry/boshRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability occurs in the ReleaseJob#unpack method of BOSH Director, where the job directory and tarball paths are constructed using the job name extracted verbatim from the attacker-supplied release.MF file inside an uploaded tarball. These paths are then interpolated into a shell command executed via /bin/sh -c, enabling shell metacharacter interpretation and potential command injection. The directory creation step uses FileUtils.mkdir_p, which does not invoke a shell and succeeds even with malicious characters, allowing the exploit to reach the shell execution step. Versions prior to v282.1.12 are affected, with the issue fixed in v282.1.12 and later.
Potential Impact
An attacker with the ability to upload a release tarball containing a crafted release.MF file can execute arbitrary OS commands with the privileges of the BOSH Director process. This can lead to unauthorized command execution, potentially compromising the host system and affecting the integrity and availability of the BOSH Director environment.
Mitigation Recommendations
A fix is available in BOSH Director version v282.1.12 and later. Users should upgrade to v282.1.12 or a more recent version to remediate this vulnerability. No additional mitigation steps are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-04-16T02:19:16.427Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a20f595e29bf47b505f23c7
Added to database: 06/04/2026, 03:48:37 UTC
Last enriched: 06/11/2026, 08:46:20 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 80
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.