Intel

AIKIDO-2026-10915

github.com/bluenviron/mediamtx is vulnerable to Code Injection

Code Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 26, 2026

72

High Risk

This Affects:

GOgithub.com/bluenviron/mediamtx
1.4.0 - 1.18.0
Fixed in 1.18.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package allow command injection when MTX_QUERY is explicitly used inside hooks, such as passing it into shell commands like curl http://something/?$MTX_QUERY, because untrusted query string data may be interpreted as additional command input. An attacker could craft a malicious request containing shell metacharacters in the query string so that, when the hook is executed, arbitrary commands run on the underlying system. The issue is mitigated by URL-encoding MTX_QUERY, preventing attacker-controlled input from being interpreted as executable shell content.

Who does this affect?

You are affected if you are running a version that falls within the vulnerable range with MTX_QUERY enabled.

Background info

github.com/bluenviron/mediamtx is vulnerable to Code Injection in versions 1.4.0 - 1.18.0.

How to fix this

Upgrade the github.com/bluenviron/mediamtx 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