{"schemaVersion":3,"id":"CVE-2024-24579","aliases":["CGA-2g77-m6x3-r9qv","CGA-4w5w-6vpc-482m","CGA-64x7-xq69-gxr7","CGA-8m92-gg73-j74q","CGA-9w34-wf4m-84cq","CGA-g3f2-74r3-h52g","CGA-hx8f-4qgw-mmvp","CGA-mq72-7jc8-r4r8","CGA-pq6c-xr38-gr6p","CGA-rppx-3xcp-96mc","CGA-wpc9-5jwr-895x","CGA-xc3h-fhfw-f5wc","GHSA-hpxr-w9w7-g4gv","GO-2024-2490"],"status":"published","duplicateOf":null,"title":null,"description":"stereoscope is a go library for processing container images and simulating a squash filesystem.  Prior to version 0.0.1, it is possible to craft an OCI tar archive that, when stereoscope attempts to unarchive the contents, will result in writing to paths outside of the unarchive temporary directory. Specifically, use of `github.com/anchore/stereoscope/pkg/file.UntarToDirectory()` function, the  `github.com/anchore/stereoscope/pkg/image/oci.TarballImageProvider` struct, or the higher level `github.com/anchore/stereoscope/pkg/image.Image.Read()` function express this vulnerability. As a workaround, if you are using the OCI archive as input into stereoscope then you can switch to using an OCI layout by unarchiving the tar archive and provide the unarchived directory to stereoscope.","dates":{"published":"2024-01-31T16:40:35.385Z","modified":"2024-08-23T16:26:39.050Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":4.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":4.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":4.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00393,"percentile":0.3208,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00393},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00393,"percentile":0.3208}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00393,"percentile":0.3208}]},"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":"anchore","product":"stereoscope","name":"stereoscope","label":"stereoscope","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.1","eol":null,"hubHref":"/vendor/anchore/stereoscope"},{"vendor":"chainguard","product":"grype","name":"grype","label":"grype","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/grype","purlType":"apk","versions":[{"text":"< 0.74.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.74.4-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"k9s","name":"k9s","label":"k9s","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/k9s","purlType":"apk","versions":[{"text":"< 0.31.8-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.31.8-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"kubescape","name":"kubescape","label":"kubescape","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/kubescape","purlType":"apk","versions":[{"text":"< 3.0.3-r7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.3-r7","eol":null,"hubHref":null},{"vendor":"chainguard","product":"syft","name":"syft","label":"syft","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/syft","purlType":"apk","versions":[{"text":"< 0.103.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.103.1-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"wolfictl","name":"wolfictl","label":"wolfictl","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/wolfictl","purlType":"apk","versions":[{"text":"< 0.14.13-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.14.13-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"zarf","name":"zarf","label":"zarf","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/zarf","purlType":"apk","versions":[{"text":"< 0.32.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.32.3-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"grype","name":"grype","label":"grype","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/grype","purlType":"apk","versions":[{"text":"< 0.74.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.74.4-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"k9s","name":"k9s","label":"k9s","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/k9s","purlType":"apk","versions":[{"text":"< 0.31.8-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.31.8-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"kubescape","name":"kubescape","label":"kubescape","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/kubescape","purlType":"apk","versions":[{"text":"< 3.0.3-r7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.3-r7","eol":null,"hubHref":null},{"vendor":"wolfi","product":"syft","name":"syft","label":"syft","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/syft","purlType":"apk","versions":[{"text":"< 0.103.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.103.1-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"wolfictl","name":"wolfictl","label":"wolfictl","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/wolfictl","purlType":"apk","versions":[{"text":"< 0.14.13-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.14.13-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"zarf","name":"zarf","label":"zarf","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/zarf","purlType":"apk","versions":[{"text":"< 0.32.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.32.3-r0","eol":null,"hubHref":null},{"vendor":"github.com/anchore","product":"stereoscope","name":"github.com/anchore/stereoscope","label":"stereoscope","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/anchore/stereoscope","purlType":"golang","versions":[{"text":"< 0.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.1","eol":null,"hubHref":null}],"affectedCount":14,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/anchore/stereoscope/security/advisories/GHSA-hpxr-w9w7-g4gv","label":"github.com/anchore/stereoscope/security/advisories/GHSA-hpxr-w9w7-g4gv","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB","Third Party Advisory"]},{"url":"https://github.com/anchore/stereoscope/commit/09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204","label":"github.com/anchore/stereoscope/commit/09dacab4d9ee65ee8bc7af8ebf4aa7b5aaa36204","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB","Patch"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24579.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24579.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24579","label":"nvd.nist.gov/vuln/detail/CVE-2024-24579","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/anchore/stereoscope","label":"github.com/anchore/stereoscope","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-2Q4Q-6MHR-C6V7","CGA-4M52-R28H-GJW3","CGA-687X-CX28-9FCM","CGA-H89X-6J2C-G28C","CGA-J5MC-5RHM-J3PP","CGA-M23H-26VH-86WF","CGA-M6CF-8QCR-FGV9"]},"timeline":[{"kind":"published","date":"2024-01-31T16:40:35.385Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-23T16:26:39.050Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T06:31:55.176Z","stale":false,"partial":false}}