CVE-2026-94106
getID3 before 1.9.26 OS Command Injection via Unescaped Filenames
Refuses shell execution by PHP processes to mitigate the getID3 command injection CVE-2026-94106.
High 8.7Vetted
EPSS 1.7%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
At a glance
CVE-2026-94106 is a high (CVSS 8.7) vulnerability in getID3, published 20 September 2026. A vetted upatch, cve-2026-94106-exec-block, blocks it on running Linux machines with shirudo until getID3 is upgraded.
- Severity
- High 8.7 CVSS 4.0
- Chance of exploitation
- 1.7% in the next 30 days (EPSS, 24 Nov 2026)
- Known exploited
- No, not on CISA’s KEV list
- Weakness
- CWE-78
- Affected software
- getID3 (james-heinrich)
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
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.
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.
Sources
More references from NVD (8)
Mitigation
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.
Side effects
- Any
execveinitiated by a PHP process (shell_exec(),exec(),system(),passthru(),popen(),proc_open()) fails withEPERM, including getID3 helper-application shell-outs such asvorbiscommentandmetaflac. - 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.
The policy
75 lines of BPF C, attached at lsm/bprm_check_security.
// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#define EPERM 1
char _license[] SEC("license") = "Dual BSD/GPL";
struct {
__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
__uint(max_entries, 1);
__type(key, __u32);
__type(value, __u64);
} refused SEC(".maps");
static __always_inline void count_refused(void)
{
__u32 key = 0;
__u64 *value = bpf_map_lookup_elem(&refused, &key);
if (value)
__sync_fetch_and_add(value, 1);
}
static __always_inline bool is_php_name(const struct dentry *dentry)
{
const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
__u32 len = BPF_CORE_READ(dentry, d_name.len);
char buf[4] = {};
if (!name || len < 3)
return false;
if (bpf_probe_read_kernel(buf, sizeof(buf), name))
return false;
if (buf[0] != 'p' || buf[1] != 'h' || buf[2] != 'p')
return false;
return len == 3 || buf[3] == '-' ||
(buf[3] >= '0' && buf[3] <= '9');
}
static __always_inline bool current_is_php(void)
{
struct task_struct *task = bpf_get_current_task_btf();
const struct dentry *exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
char comm[16] = {};
if (is_php_name(exe))
return true;
if (bpf_get_current_comm(&comm, sizeof(comm)))
return false;
if (comm[0] != 'p' || comm[1] != 'h' || comm[2] != 'p')
return false;
return comm[3] == '\0' || comm[3] == '-' ||
(comm[3] >= '0' && comm[3] <= '9');
}
static __always_inline int earlier_verdict(int ret)
{
return ret >= -4095 && ret < 0 ? ret : -EPERM;
}
SEC("lsm/bprm_check_security")
int BPF_PROG(cve_2026_94106_exec_block, struct linux_binprm *bprm, int ret)
{
if (ret)
return earlier_verdict(ret);
if (!current_is_php())
return 0;
count_refused();
return -EPERM;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-94106"
description = "Refuses shell execution by PHP processes to mitigate the getID3 command injection CVE-2026-94106"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-94106-exec-block.bpf.c"
[upatches.tree]
id = "cve-2026-94106-exec-block"
fixes = ["CVE-2026-94106"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 20 Sept 2026CVECVE published
- 25 Nov 2026Pull requestPull request #10 openedAdd CVE-2026-94106: Refuses shell execution by PHP processes to mitigate the getID3 commandromanlab
- 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)
- 25 Nov 2026MergeMerged #10romanlab
No human review is recorded on GitHub for this upatch yet.
Evidence
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
| State | WriteVorbisComment() spawns shell via shell_exec() | Pure-PHP getID3 Analyze() |
|---|---|---|
| Before loading | yes | yes |
| Upatch loaded | no (EPERM) | yes |
| After unloading | yes | yes |
tools-test.log Output of tools/test --setup showing WriteVorbisComment() shell execution reached before, blocked while the upatch was loaded, and reached again after.
tools/test --setup, 2026-11-25T10:18:24Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-94106 setup done GETID3_URL=http://127.0.0.1:18080 before reached getID3 WriteVorbisComment() executed the shell-out helper via shell_exec() loaded blocked the upatch refused execve from PHP during WriteVorbisComment() while pure-PHP Analyze() succeeded after reached getID3 WriteVorbisComment() executed the shell-out helper via shell_exec() PASS: reached before, blocked while loaded, reached again after
Use it
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.
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-94106shirudo 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>