{"schemaVersion":3,"id":"CVE-2026-42574","aliases":["CGA-p3ph-3wc2-mmcx","GHSA-qq3r-w4hj-gjp6","GO-2026-5589"],"status":"published","duplicateOf":null,"title":null,"description":"apko allows users to build and publish OCI container images built from apk packages. From version 0.14.8 to before version 1.2.5, a crafted .apk could install a TypeSymlink tar entry whose target pointed outside the build root, and a subsequent directory-creation or file-write entry in the same or later archive could traverse that symlink to reach host paths the build user could write to. This issue has been patched in version 1.2.5.","dates":{"published":"2026-05-09T19:24:48.497Z","modified":"2026-05-11T17:11:40.244Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00513,"percentile":0.42529,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.16099999999999998,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00352},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00513,"percentile":0.42529}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00352,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00513,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00513,"percentile":0.42529}]},"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"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"chainguard","product":"dagdotdev","name":"dagdotdev","label":"dagdotdev","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/dagdotdev","purlType":"apk","versions":[{"text":"< 0.0.20-r14","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.20-r14","eol":null,"hubHref":null},{"vendor":"wolfi","product":"dagdotdev","name":"dagdotdev","label":"dagdotdev","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/dagdotdev","purlType":"apk","versions":[{"text":"< 0.0.20-r14","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.20-r14","eol":null,"hubHref":null},{"vendor":"chainguard-dev","product":"apko","name":"apko","label":"apko","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.14.8, < 1.2.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.14.8, < 1.2.5","eol":null,"hubHref":"/vendor/chainguard-dev/apko"},{"vendor":"chainguard.dev","product":"apko","name":"chainguard.dev/apko","label":"apko","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/chainguard.dev/apko","purlType":"golang","versions":[{"text":"≥ 0.14.8, < 1.2.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.14.8, < 1.2.5","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-qq3r-w4hj-gjp6","label":"github.com/chainguard-dev/apko/security/advisories/GHSA-qq3r-w4hj-gjp6","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB"]},{"url":"https://github.com/chainguard-dev/apko/pull/2187","label":"github.com/chainguard-dev/apko/pull/2187","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB"]},{"url":"https://github.com/chainguard-dev/apko/commit/f5a96e1299ac81c7ea9441705ec467688086f442","label":"github.com/chainguard-dev/apko/commit/f5a96e1299ac81c7ea9441705ec467688086f442","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB"]},{"url":"https://github.com/chainguard-dev/apko/releases/tag/v1.2.5","label":"github.com/chainguard-dev/apko/releases/tag/v1.2.5","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42574.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42574.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42574","label":"nvd.nist.gov/vuln/detail/CVE-2026-42574","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/chainguard-dev/apko","label":"github.com/chainguard-dev/apko","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21483-1"],"duplicates":[],"related":["CGA-WCVC-3V7C-4JP4","OPENSUSE-SU-2026:21483-1"]},"timeline":[{"kind":"published","date":"2026-05-09T19:24:48.497Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-11T17:11:40.244Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T17:45:26.626Z","stale":false,"partial":false}}