Command Injection Affecting z-libs/Zen-C package, versions [,0.4.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.94% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-ZLIBSZENC-15364904
  • published28 Feb 2026
  • disclosed27 Feb 2026
  • creditF0ndueSav0yarde

Introduced: 27 Feb 2026

CVE-2026-28207  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade z-libs/Zen-C to version 0.4.2 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via the main process when a specially crafted output filename is provided through the -o command-line argument. An attacker can execute arbitrary shell commands by injecting shell metacharacters into the output filename, which are interpreted by the shell when the command string is executed using system().

References

CVSS Base Scores

version 4.0
version 3.1