github.com/bluenviron/mediamtx is vulnerable to Code Injection
72
High Risk
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.
You are affected if you are running a version that falls within the vulnerable range with MTX_QUERY enabled.
github.com/bluenviron/mediamtx is vulnerable to Code Injection in versions 1.4.0 - 1.18.0.
Upgrade the github.com/bluenviron/mediamtx library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant