melange affected by potential host command execution via license-check YAML mode patch pipeline
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| chainguard-dev | melange | affected |
|
No data.
| Vendor | Product | Versions |
|---|---|---|
| Chainguard-dev | Melange | — |
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-rf4g-89h5-crcr | melange affected by potential host command execution via license-check YAML mode patch pipeline |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.199% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Chainguard
Chainguard melange |
|
| CPEs | cpe:2.3:a:chainguard:melange:*:*:*:*:*:go:*:* | |
| Vendors & Products |
Chainguard
Chainguard melange |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Chainguard-dev
Chainguard-dev melange |
|
| Vendors & Products |
Chainguard-dev
Chainguard-dev melange |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | melange affected by potential host command execution via license-check YAML mode patch pipeline | |
| Weaknesses | CWE-78 | |
| References |
| |
| Metrics |
cvssV3_1
|