melange has a path traversal in license-path which allows reading files outside workspace
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-2w4f-9fgg-q2v9 | melange has a path traversal in license-path which allows reading files outside workspace |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.191% 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.14.0 to before 0.40.3, an attacker who can influence a melange configuration file (e.g., through pull request-driven CI or build-as-a-service scenarios) could read arbitrary files from the host system. The LicensingInfos function in pkg/config/config.go reads license files specified in copyright[].license-path without validating that paths remain within the workspace directory, allowing path traversal via ../ sequences. The contents of the traversed file are embedded into the generated SBOM as license text, enabling exfiltration of sensitive data through build artifacts. This issue has been patched in version 0.40.3. | |
| Title | melange has a path traversal in license-path which allows reading files outside workspace | |
| Weaknesses | CWE-22 | |
| References |
| |
| Metrics |
cvssV3_1
|