{"id":"CVE-2026-47699","state":"PUBLISHED","title":"Confidential Containers Guest Components image-rs: zip-slip-class arbitrary file write via absolute entry path in hardlink fallback","description":"Confidential Containers Guest Components provides guest tools and components for confidential container workloads. From 0.16.0 until 0.20.0, a crafted OCI image layer can make image_rs::stream::unpack::unpack() create a hardlink outside its destination directory. In image-rs/src/stream/unpack.rs, try_hardlink_fallback() validates the hardlink source but computes the destination with destination.join(&entry_rel). Rust Path::join replaces the base when entry_rel is an absolute tar entry path, so fs::hard_link(&src_canon, &dst_entry_abs) can write attacker-controlled content to an arbitrary absolute path. In Confidential Containers the workload owner already controls trusted image content, so the issue is a workload-owner escape into the pod virtual machine rather than a crossing of the image trust boundary, but it may enable access to pod virtual machine capabilities and attestation abuse. This issue is fixed in version 0.20.0.","publishedAt":"2026-08-18T21:24:54.280Z","updatedAt":"2026-08-21T19:17:19.410Z","severity":{"score":6.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["confidential-containers guest-components"],"affected":[{"vendor":"confidential-containers","product":"guest-components","versions":[{"version":">= 0.16.0, < 0.20.0","status":"affected"}]}],"references":["https://github.com/confidential-containers/guest-components/security/advisories/GHSA-84rc-2q4r-45pc","https://github.com/confidential-containers/guest-components/pull/1440","https://github.com/confidential-containers/guest-components/pull/1457","https://github.com/confidential-containers/guest-components/commit/14fbb711af0b29bb9cad307969d57b0de9b85d7f","https://github.com/confidential-containers/guest-components/commit/7cc1bc458973310296e58aedbb15cb7963297bbe","https://github.com/confidential-containers/guest-components/releases/tag/v0.20.0"],"weaknesses":["CWE-22","CWE-59"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/47xxx/CVE-2026-47699.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-47699","state":"PUBLISHED","datePublished":"2026-08-18T21:24:54.280Z","dateUpdated":"2026-08-21T19:17:19.410Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-19T21:18:20.404Z"},"containers":{"cna":{"title":"Confidential Containers Guest Components image-rs: zip-slip-class arbitrary file write via absolute entry path in hardlink fallback","descriptions":[{"lang":"en","value":"Confidential Containers Guest Components provides guest tools and components for confidential container workloads. From 0.16.0 until 0.20.0, a crafted OCI image layer can make image_rs::stream::unpack::unpack() create a hardlink outside its destination directory. In image-rs/src/stream/unpack.rs, try_hardlink_fallback() validates the hardlink source but computes the destination with destination.join(&entry_rel). Rust Path::join replaces the base when entry_rel is an absolute tar entry path, so fs::hard_link(&src_canon, &dst_entry_abs) can write attacker-controlled content to an arbitrary absolute path. In Confidential Containers the workload owner already controls trusted image content, so the issue is a workload-owner escape into the pod virtual machine rather than a crossing of the image trust boundary, but it may enable access to pod virtual machine capabilities and attestation abuse. This issue is fixed in version 0.20.0."}],"affected":[{"vendor":"confidential-containers","product":"guest-components","versions":[{"version":">= 0.16.0, < 0.20.0","status":"affected"}]}],"references":[{"url":"https://github.com/confidential-containers/guest-components/security/advisories/GHSA-84rc-2q4r-45pc","name":"https://github.com/confidential-containers/guest-components/security/advisories/GHSA-84rc-2q4r-45pc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/confidential-containers/guest-components/pull/1440","name":"https://github.com/confidential-containers/guest-components/pull/1440","tags":["x_refsource_MISC"]},{"url":"https://github.com/confidential-containers/guest-components/pull/1457","name":"https://github.com/confidential-containers/guest-components/pull/1457","tags":["x_refsource_MISC"]},{"url":"https://github.com/confidential-containers/guest-components/commit/14fbb711af0b29bb9cad307969d57b0de9b85d7f","name":"https://github.com/confidential-containers/guest-components/commit/14fbb711af0b29bb9cad307969d57b0de9b85d7f","tags":["x_refsource_MISC"]},{"url":"https://github.com/confidential-containers/guest-components/commit/7cc1bc458973310296e58aedbb15cb7963297bbe","name":"https://github.com/confidential-containers/guest-components/commit/7cc1bc458973310296e58aedbb15cb7963297bbe","tags":["x_refsource_MISC"]},{"url":"https://github.com/confidential-containers/guest-components/releases/tag/v0.20.0","name":"https://github.com/confidential-containers/guest-components/releases/tag/v0.20.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-59","lang":"en","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-18T21:24:54.280Z"},"source":{"advisory":"GHSA-84rc-2q4r-45pc","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-21T19:17:03.503833Z","id":"CVE-2026-47699","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-21T19:17:19.410Z"}}]}}}