Intel

AIKIDO-2026-570364

james-heinrich/getid3 is vulnerable to OS Command Injection

OS Command InjectionGHSA-qf3m-pmjh-h6fx Published 4 days ago

88

High Risk

This Affects:

PHPjames-heinrich/getid3
1.9.8 - 1.9.25
Fixed in 1.9.26
Are you affected? Scan for Free

TL;DR

getID3 shells out to bundled Windows helper executables such as vorbiscomment.exe and shorten.exe to read or write certain tags, building the command line by concatenating the target file path inside double quotes. The path is passed to shell_exec() without escaping, so a filename containing shell metacharacters injects additional commands that run with the PHP process privileges. Reaching the sink requires the external helper applications to be configured through GETID3_HELPERAPPSDIR on Windows and a user controlled filename. The fix wraps every path argument in escapeshellarg().

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run getID3 on Windows with the optional external helper applications enabled and analyze or write tags for files whose path is user controlled.

Background info

james-heinrich/getid3 is vulnerable to OS Command Injection in versions 1.9.8 - 1.9.25.

How to fix this

Upgrade the james-heinrich/getid3 library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform