{"schemaVersion":3,"id":"CVE-2026-29050","aliases":["GHSA-98f2-w9h9-7fp9","GO-2026-5279"],"status":"published","duplicateOf":null,"title":null,"description":"melange allows users to build apk packages using declarative pipelines. Starting in version 0.32.0 and prior to version 0.43.4, an attacker who can influence a melange configuration file — for example through pull-request-driven CI or build-as-a-service scenarios — could set `pipeline[].uses` to a value containing `../` sequences or an absolute path. The `(*Compiled).compilePipeline` function in `pkg/build/compile.go` passed `uses` directly to `filepath.Join(pipelineDir, uses + \".yaml\")` without validating the value, so the resolved path could escape each `--pipeline-dir` and read an arbitrary YAML-parseable file visible to the melange process. Because the loaded file is subsequently interpreted as a melange pipeline and its `runs:` block is executed via `/bin/sh -c` in the build sandbox, this additionally allowed shell commands sourced from an out-of-tree file to run during the build, bypassing the review boundary that normally covers the in-tree pipeline definition. The issue is fixed in melange v0.43.4 via commit 5829ca4. The fix rejects `uses` values that are absolute paths or contain `..`, and verifies (via `filepath.Rel` after `filepath.Clean`) that the resolved target remains within the pipeline directory. As a workaround, only run `melange build` against configuration files from trusted sources. In CI systems that build user-supplied melange configs, gate builds behind manual review of `pipeline[].uses` values and reject any containing `..` or leading `/`.","dates":{"published":"2026-04-23T23:58:39.668Z","modified":"2026-04-25T01:38:30.604Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","exploitability":4.6,"impact":7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00182,"percentile":0.07332,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.042,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0014},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00182,"percentile":0.07332}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00182,"percentile":0.07332}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"chainguard-dev","product":"melange","name":"melange","label":"melange","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.32.0, < 0.43.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.32.0, < 0.43.4","eol":null,"hubHref":"/vendor/chainguard-dev/melange"},{"vendor":"chainguard","product":"melange","name":"melange","label":"melange","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.32.0, < 0.43.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.32.0, < 0.43.4","eol":null,"hubHref":"/vendor/chainguard/melange"},{"vendor":"chainguard.dev","product":"melange","name":"chainguard.dev/melange","label":"melange","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/chainguard.dev/melange","purlType":"golang","versions":[{"text":"≥ 0.32.0, < 0.43.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.32.0, < 0.43.4","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/chainguard-dev/melange/security/advisories/GHSA-98f2-w9h9-7fp9","label":"github.com/chainguard-dev/melange/security/advisories/GHSA-98f2-w9h9-7fp9","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Mitigation","Patch","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29050","label":"nvd.nist.gov/vuln/detail/CVE-2026-29050","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/chainguard-dev/melange/commit/5829ca45cfe14dfeb73ffb716992db3b1b7892ac","label":"github.com/chainguard-dev/melange/commit/5829ca45cfe14dfeb73ffb716992db3b1b7892ac","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/chainguard-dev/melange","label":"github.com/chainguard-dev/melange","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21483-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:21483-1"]},"timeline":[{"kind":"published","date":"2026-04-23T23:58:39.668Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-25T01:38:30.604Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":24,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T17:00:45.480Z","stale":false,"partial":false}}