OS Command Injection Affecting wolfictl package, versions <0.39.0-r1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.01% (1st 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 Learn

Learn about OS Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-WOLFILATEST-WOLFICTL-15422795
  • published5 Mar 2026
  • disclosed4 Feb 2026

Introduced: 4 Feb 2026

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

How to fix?

Upgrade Wolfi wolfictl to version 0.39.0-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream wolfictl package and not the wolfictl package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

melange allows users to build apk packages using declarative pipelines. From version 0.10.0 to before 0.40.3, an attacker who can influence inputs to the patch pipeline could execute arbitrary shell commands on the build host. The patch pipeline in pkg/build/pipelines/patch.yaml embeds input-derived values (series paths, patch filenames, and numeric parameters) into shell scripts without proper quoting or validation, allowing shell metacharacters to break out of their intended context. The vulnerability affects the built-in patch pipeline which can be invoked through melange build and melange license-check operations. An attacker who can control patch-related inputs (e.g., through pull request-driven CI, build-as-a-service, or by influencing melange configurations) can inject shell metacharacters such as backticks, command substitutions $(…), semicolons, pipes, or redirections to execute arbitrary commands with the privileges of the melange build process. This issue has been patched in version 0.40.3.

CVSS Base Scores

version 3.1