# CVE-2026-94106: getID3 before 1.9.26 OS Command Injection via Unescaped Filenames

The Markdown version of <https://upatch.dev/cve/CVE-2026-94106>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-94106 is rated High 8.7 (CVSS 4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X). It affects getID3 (james-heinrich) and was published on 20 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 1.7%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-94106-exec-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

CVE-2026-94106 (GHSA-qf3m-pmjh-h6fx), published on 20 September 2026, is an OS command injection vulnerability (CWE-78) in getID3 before 1.9.26. Multiple external helper application handlers in getID3 concatenate file path arguments (such as `$this->filename`, `$file`, and `$temp`) directly into command strings passed to `shell_exec()` without escaping them with `escapeshellarg()`. On Linux and Unix systems, `getid3_write_vorbiscomment::WriteVorbisComment()` in `getid3/write.vorbiscomment.php` builds `vorbiscomment -w --raw -c "$tempcommentsfilename" "$this->filename" 2>&1` and `getid3_write_metaflac::DeleteMetaFLAC()` in `getid3/write.metaflac.php` builds `metaflac --remove-all-tags "$this->filename" 2>&1` before passing the string to `shell_exec()`. On Windows, `getID3::getHashdata()` in `getid3/getid3.php`, `getid3_shorten::Analyze()` in `getid3/module.audio.shorten.php`, and the Windows branches of `WriteVorbisComment()` and `DeleteMetaFLAC()` similarly wrap filenames in double quotes without `escapeshellarg()`. Supplying a filename containing double quotes and shell metacharacters lets an attacker execute arbitrary commands through `/bin/sh -c` with the privileges of the PHP process embedding getID3, even when the external helper binary (`vorbiscomment` or `metaflac`) is not installed.

### Official description

getID3 before 1.9.26 contains an OS command injection vulnerability in shell-out handlers that fail to escape filenames in command strings. Attackers can craft malicious filenames containing shell metacharacters to inject arbitrary commands executed with the privileges of the process embedding getID3.

## What the upatch does

The program attaches to `lsm/bprm_check_security` and returns `-EPERM` when the calling task is a PHP interpreter process (`php`, `php-fpm*`, `php-cgi*`, or `php<version>*`, matched by `mm->exe_file` dentry name or `current->comm`). When PHP calls `shell_exec()`, it forks a child process that still has the PHP binary as its executable and task comm until `execve("/bin/sh", ...)` succeeds. The `bprm_check_security` hook runs during that `execve` and refuses it before `/bin/sh` or any injected command can start. A refusal from an earlier BPF LSM program on the same hook is preserved.

The `refused` per-CPU array map counts refused `execve` calls at key 0.

The policy: [`cve-2026-94106-exec-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-94106), 75 lines of BPF C attached at `lsm/bprm_check_security`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- Any `execve` initiated by a PHP process (`shell_exec()`, `exec()`, `system()`, `passthru()`, `popen()`, `proc_open()`) fails with `EPERM`, including getID3 helper-application shell-outs such as `vorbiscomment` and `metaflac`.
- Pure-PHP tag parsing and writing in getID3 (such as ID3v1, ID3v2, APEtag, and native FLAC/Ogg parsing) do not spawn child processes and continue to work normally.
- Non-PHP processes on the machine are unaffected.

## Preemption model and cost

The program keeps no shared state beyond the per-CPU refusal counter updated with an atomic fetch-and-add, so it is safe under every kernel preemption model, including preemptible RCU, `PREEMPT_LAZY`, and `PREEMPT_RT`. It runs only on `execve` (`bprm_check_security`), checks the current task's executable dentry name and 16-byte comm prefix, and returns immediately for all non-PHP processes.

## Affected versions

getID3:

| Branch | Affected                         | Fixed in                        |
| ------ | -------------------------------- | ------------------------------- |
| 1.9.x  | before 1.9.26 (including 1.9.25) | 1.9.26 (`v1.9.26-202609042051`) |

Affected kernels: this upatch mitigates an application vulnerability and applies to any Linux kernel supporting BPF LSM (`bprm_check_security`) and BTF.

## How it was tested

On getID3 1.9.25 running under PHP, the loaded upatch refused the shell execution triggered by WriteVorbisComment() via shell_exec(), while pure-PHP media analysis continued to work.

- **Tested:** 25 Nov 2026
- **Target:** getID3 v1.9.25 (v1.9.25-202603060942) on PHP CLI server, WriteVorbisComment() shell-out handler, loopback only
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Distribution:** Ubuntu 26.04

### Results

| State           | WriteVorbisComment() spawns shell via shell_exec() | Pure-PHP getID3 Analyze() |
| --------------- | -------------------------------------------------- | ------------------------- |
| Before loading  | yes                                                | yes                       |
| Upatch loaded   | no (EPERM)                                         | yes                       |
| After unloading | yes                                                | yes                       |

## How to apply

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-94106
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-94106-1.0.0.bee oci://<registry>/<namespace>/cve-2026-94106 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-94106-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-94106 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-94106)
- [GitHub Security Advisory GHSA-qf3m-pmjh-h6fx](https://github.com/JamesHeinrich/getID3/security/advisories/GHSA-qf3m-pmjh-h6fx)
- [VulnCheck advisory](https://www.vulncheck.com/advisories/getid3-before-1.9.26-os-command-injection-via-unescaped-filenames)
- [GitHub issue #503](https://github.com/JamesHeinrich/getID3/issues/503)
- [Fix commit 2c6f3f96546f](https://github.com/JamesHeinrich/getID3/commit/2c6f3f96546f05746405872848114754ed7fe9b4)
- [Fix commit ce598c4f3823](https://github.com/JamesHeinrich/getID3/commit/ce598c4f3823441d878c5a7a2a9f2f703a3e10b6)
- [getID3 v1.9.26 release](https://github.com/JamesHeinrich/getID3/releases/tag/v1.9.26)

### Links

- [CVE-2026-94106 on upatch.dev](https://upatch.dev/cve/CVE-2026-94106) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-94106)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-94106)
- [CWE-78](https://cwe.mitre.org/data/definitions/78.html)
- Upatch source: [upatches/cve-2026-94106](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-94106)

### More references from NVD (8)

- [github.com](https://github.com/JamesHeinrich/getID3)
- [github.com](https://github.com/JamesHeinrich/getID3/blob/fefffe762b02be155dcc32eec57feff8a49bc4b5/getid3/write.vorbiscomment.php#L85-L110)
- [github.com](https://github.com/JamesHeinrich/getID3/commit/2c6f3f96546f05746405872848114754ed7fe9b4)
- [github.com](https://github.com/JamesHeinrich/getID3/commit/ce598c4f3823441d878c5a7a2a9f2f703a3e10b6)
- [github.com](https://github.com/JamesHeinrich/getID3/issues/503)
- [github.com](https://github.com/JamesHeinrich/getID3/releases/tag/v1.9.26)
- [github.com](https://github.com/JamesHeinrich/getID3/security/advisories/GHSA-qf3m-pmjh-h6fx)
- [vulncheck.com](https://www.vulncheck.com/advisories/getid3-before-1.9.26-os-command-injection-via-unescaped-filenames)
