{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-28207","published":"2026-02-26T23:16:35.277000Z","last_modified":"2026-06-17T10:28:19.953000Z","status":"Analyzed","cvss":{"version":"3.1","score":7.3,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-78"],"cpes":[{"criteria":"cpe:2.3:a:zenc-lang:zen_c:*:*:*:*:*:*:*:*","part":"a","vendor":"zenc-lang","product":"zen_c","version_end_excluding":"0.4.2"}],"cpes_truncated":false,"vendors":["zenc-lang"],"products":["zenc-lang/zen_c"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":44,"links":{"html_es":"/es/cve/CVE-2026-28207/","html_en":"/en/cve/CVE-2026-28207/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-28207","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-28207"},"untrusted":{"vendor_name":"Zenc-lang","product_name":"Zen C","desc_en":"Zen C is a systems programming language that compiles to human-readable GNU C/C11. Prior to version 0.4.2, a command injection vulnerability (CWE-78) in the Zen C compiler allows local attackers to execute arbitrary shell commands by providing a specially crafted output filename via the `-o` command-line argument. The vulnerability existed in the `main` application logic (specifically in `src/main.c`), where the compiler constructed a shell command string to invoke the backend C compiler. This command string was built by concatenating various arguments, including the user-controlled output filename, and was subsequently executed using the `system()` function. Because `system()` invokes a shell to parse and execute the command, shell metacharacters within the output filename were interpreted by the shell, leading to arbitrary command execution. An attacker who can influence the command-line arguments passed to the `zc` compiler (like through a build script or a CI/CD pipeline configuration) can execute arbitrary commands with the privileges of the user running the compiler. The vulnerability has been fixed in version 0.4.2 by removing `system()` calls, implementing `ArgList`, and internal argument handling. Users are advised to update to Zen C version v0.4.2 or later.","affected":[{"untrusted_vendor":"z-libs","untrusted_product":"Zen-C","versions":[]}],"references":[{"url":"https://github.com/z-libs/Zen-C/security/advisories/GHSA-9rff-x96h-76h2","tags":["Exploit","Mitigation","Vendor Advisory"]},{"url":"https://f0nduesav0yarde.github.io/blog/vulnerabilities/cve-2026-28207/","tags":["Exploit","Third Party Advisory"]}]}}