PT-2026-22131 · Zen C · Zen-C

F0Nduesav0Yarde

·

Published

2026-02-26

·

Updated

2026-05-01

·

CVE-2026-28207

CVSS v3.1

7.3

High

VectorAV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Zen C versions prior to 0.4.2
Description A command injection issue exists in the Zen C compiler. Prior to version 0.4.2, a local attacker can execute arbitrary shell commands by providing a specially crafted output filename via the -o command-line argument. The issue resided in the main application logic, specifically in src/main.c, where the compiler constructed a shell command string using the system() function. The system() function invoked a shell, interpreting shell metacharacters within the output filename, leading to arbitrary command execution. The vulnerable component is the system() function. The attacker needs to influence the command-line arguments passed to the zc compiler.
Recommendations Update to Zen C version 0.4.2 or later.

Exploit

Fix

OS Command Injection

Weakness Enumeration

Related Identifiers

CVE-2026-28207
GHSA-9RFF-X96H-76H2

Affected Products

Zen-C