{"schemaVersion":3,"id":"CVE-2026-25121","aliases":["CGA-2pcx-c8xm-j9hg","CGA-j7v7-gm63-rq7c","GHSA-5g94-c2wx-8pxw","GO-2026-4405","CGA-2hmh-3g56-mg8q","CGA-3g9j-h2g8-5gr9","CGA-3j99-x3pm-fg89","CGA-57hm-pgg6-p5wr","CGA-746w-gmfw-4977","CGA-76q9-p9c3-347f","CGA-ch6f-gmm4-3ggg","CGA-fr25-wcf8-3mp7","CGA-ggqw-hj48-wvq5","CGA-j4w5-4cmc-7mgx","CGA-mjwv-3vg5-x3g6","CGA-px2v-44rv-w572","CGA-w3p9-pfqf-5vhj","CGA-xqw5-x7rc-83qv"],"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 1.1.1, a path traversal vulnerability was discovered in apko's dirFS filesystem abstraction. An attacker who can supply a malicious APK package (e.g., via a compromised or typosquatted repository) could create directories or symlinks outside the intended installation root. The MkdirAll, Mkdir, and Symlink methods in pkg/apk/fs/rwosfs.go use filepath.Join() without validating that the resulting path stays within the base directory. This issue has been patched in version 1.1.1.","dates":{"published":"2026-02-04T19:02:17.979Z","modified":"2026-02-04T19:18:52.495Z","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.00419,"percentile":0.34857,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.035,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00384},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00419,"percentile":0.34857}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00384,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00392,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00419,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00419,"percentile":0.34857}]},"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-23","name":"Relative Path Traversal","description":"The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as \"..\" that can resolve to a location that is outside of that directory.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/23.html"},{"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","product":"amazon-ssm-agent","name":"amazon-ssm-agent","label":"amazon-ssm-agent","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/amazon-ssm-agent","purlType":"apk","versions":[{"text":"< 3.3.3270.0-r5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.3.3270.0-r5","eol":null,"hubHref":null},{"vendor":"chainguard","product":"amazon-ssm-agent-ecs-exec","name":"amazon-ssm-agent-ecs-exec","label":"amazon-ssm-agent-ecs-exec","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/amazon-ssm-agent-ecs-exec","purlType":"apk","versions":[{"text":"< 3.3.3270.0-r5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.3.3270.0-r5","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cg","name":"cg","label":"cg","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cg","purlType":"apk","versions":[{"text":"< 0.2.201-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.2.201-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"chainctl","name":"chainctl","label":"chainctl","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/chainctl","purlType":"apk","versions":[{"text":"< 0.2.206-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.2.206-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"dagdotdev","name":"dagdotdev","label":"dagdotdev","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/dagdotdev","purlType":"apk","versions":[{"text":"< 0.0.20-r6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.20-r6","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-r6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.20-r6","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.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.14.8, < 1.1.1","eol":null,"hubHref":"/vendor/chainguard-dev/apko"},{"vendor":"chainguard","product":"apko","name":"apko","label":"apko","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.14.8, < 1.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.14.8, < 1.1.1","eol":null,"hubHref":"/vendor/chainguard/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.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.14.8, < 1.1.0","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-5g94-c2wx-8pxw","label":"github.com/chainguard-dev/apko/security/advisories/GHSA-5g94-c2wx-8pxw","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB","Third Party Advisory"]},{"url":"https://github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14","label":"github.com/chainguard-dev/apko/commit/d8b7887a968a527791b3c591ae83928cb49a9f14","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB","Patch"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25121.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25121.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25121","label":"nvd.nist.gov/vuln/detail/CVE-2026-25121","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","SUSE-SU-2026:0403-1"],"duplicates":[],"related":["CGA-8RRF-MQ5R-W436","OPENSUSE-SU-2026:21483-1","SUSE-SU-2026:0403-1"]},"timeline":[{"kind":"published","date":"2026-02-04T19:02:17.979Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-02-04T19:18:52.495Z","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-20T11:44:41.904Z","stale":false,"partial":false}}