Command Injection Affecting github.com/chainguard-dev/melange/pkg/build package, versions >=0.3.0 <0.40.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th 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-GOLANG-GITHUBCOMCHAINGUARDDEVMELANGEPKGBUILD-15202497
  • published4 Feb 2026
  • disclosed3 Feb 2026
  • creditOleh Konko

Introduced: 3 Feb 2026

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

How to fix?

Upgrade github.com/chainguard-dev/melange/pkg/build to version 0.40.3 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via the working-directory field when user-supplied input is embedded into shell scripts without proper quote escaping. An attacker can execute arbitrary shell commands by providing crafted build input values that are substituted into the working-directory field.

References

CVSS Base Scores

version 4.0
version 3.1