CVE-2022-2054
High · 8.4CVSS
8.4
EPSS
0.5%
Published
Jun 12, 2022
CISA due date
—
Cloudanix analysis
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.
- 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
- Locate systems or build pipelines that invoke Nuitka on untrusted or attacker-controlled Python sources
- Craft input that embeds shell commands or Python code exploiting the injection flaw
- Trigger Nuitka compilation via CLI, build script, or CI job
- 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
- CVE-2026-114125 Storybook is a frontend workshop for building user interface components and pages in… CWE-94
- CVE-2026-113776 virtualenv is a tool for creating isolated virtual python environments. CWE-94
- CVE-2026-112100 A vulnerability was determined in DeepPavlov up to 1.7.0. CWE-94
- CVE-2026-112095 A flaw has been found in SourceCodester Inventory System 1.0. CWE-94
- CVE-2026-112042 A security flaw has been discovered in diem-project diem up to… CWE-94
- CVE-2026-112038 A vulnerability has been found in diem-project diem up to… CWE-94
- CVE-2026-111991 A security vulnerability has been detected in WongKinYiu yolov9 0.1. CWE-94
- CVE-2026-111986 A vulnerability was determined in AUTOMATIC1111 stable-diffusion-webui up to 1.10.1. CWE-94