Cloudanix VulnDB

CVE-2022-2054

High · 8.4

CVSS

8.4

EPSS

0.5%

Published

Jun 12, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in the Nuitka Python compiler lets attackers run their own commands on a computer whenever it processes certain files, which could let them take control of the machine.

Exploit Available
Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Low
Impact
Full Compromise
Component
Application
Class
Command Injection
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability permits arbitrary command or code injection during the Nuitka compilation workflow because of insufficient sanitization of user-supplied inputs or command-line arguments, allowing execution with the privileges of the Nuitka process.

Why it matters to the business

Organizations that compile Python code with vulnerable Nuitka versions risk full host compromise, unauthorized code execution, and potential supply-chain tampering in build pipelines; the long window since disclosure increases the chance that unpatched instances remain exposed.

How an attack unfolds

An attacker supplies a maliciously crafted Python source file or command-line argument to a vulnerable Nuitka binary; the injected payload is executed during the compilation or packaging phase, granting the attacker code execution on the local system.

How to fix it

Upgrade Nuitka to the version containing commit 82fb5625e985ecda81f57af86c7fcaedb2f38cdb (0.9 or later) in all build environments and CI pipelines; rebuild any artifacts produced with older versions.

How to confirm the fix worked

Confirm the installed Nuitka version reports 0.9 or newer, or verify the source tree contains commit 82fb5625e985ecda81f57af86c7fcaedb2f38cdb; test compilation of sample inputs that previously triggered injection.

Typical attack path

  1. Locate systems or build pipelines that invoke Nuitka on untrusted or attacker-controlled Python sources
  2. Craft input that embeds shell commands or Python code exploiting the injection flaw
  3. Trigger Nuitka compilation via CLI, build script, or CI job
  4. Execute the injected payload to obtain a shell or perform further actions on the host

How to detect it

Review build and CI logs for Nuitka invocations that spawn unexpected child processes or execute commands outside the normal compilation flow; look for process trees where Nuitka launches shells or interpreters with suspicious arguments.

What your security team should do

  • Immediately upgrade all Nuitka installations to the fixed commit
  • Inventory build systems and CI jobs that depend on Nuitka
  • Restrict Nuitka execution to trusted inputs only until patched
  • Monitor build logs for unexpected child processes or command execution

The record

Code Injection in GitHub repository nuitka/nuitka prior to 0.9.

Affected packages

Ecosystem Package Introduced Fixed
PyPI nuitka 0 09647745d7cbb6ff32f9fa948f19d5558b32bcad
PyPI nuitka 0 0.9
Debian:11 nuitka 0 No fix
Ubuntu:16.04:LTS nuitka 0 No fix
Ubuntu:18.04:LTS nuitka 0 No fix
Ubuntu:22.04:LTS nuitka 0 No fix
Ubuntu:24.04:LTS nuitka 0 No fix
Ubuntu:24.10 nuitka 0 No fix
Ubuntu:25.04 nuitka 0 No fix
Ubuntu:25.10 nuitka 0 No fix
Ubuntu:Pro:16.04:LTS nuitka 0 No fix
Ubuntu:Pro:18.04:LTS nuitka 0 No fix

Related vulnerabilities