Intel

AIKIDO-2026-10744

pyinfra is vulnerable to Command Injection

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

84

High Risk

This Affects:

PYTHONpyinfra
0.1 - 3.7
Fixed in 3.8.0
Are you affected? Scan for Free

TL;DR

pyinfra turns declared operations and connector plumbing into shell snippets executed over SSH and related transports. User-controlled fragments were previously stitched into commands with insufficient quoting discipline, so shell metacharacters could change interpretation beyond the intended single argument boundary. The release routes untrusted fragments through structured quoting helpers such as QuoteString and StringCommand, tightens formatted command assembly, and adds regression coverage that metacharacter payloads stay quoted instead of executing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

pyinfra is vulnerable to Command Injection in versions 0.1 - 3.7.

How to fix this

Upgrade the pyinfra library to the patch version.