Oc: oc: symlink/hardlink target validation bypass in oc image extract allows file write outside destination
概要
A flaw was found in the OpenShift client oc. When extracting container image layers with oc image extract, the application fails to properly sanitize symbolic and hard link targets pointing to absolute paths or to sibling directories of the extraction destination. An attacker who supplies a maliciou...
影響パッケージ
| 種類 | パッケージ | 影響を受ける版 | 直った版 |
|---|---|---|---|
| Red Hat | Red Hat OpenShift Container Platform 4 | — | — |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
A flaw was found in the OpenShift client oc. When extracting container image layers with oc image extract, the application fails to properly sanitize symbolic and hard link targets pointing to absolute paths or to sibling directories of the extraction destination. An attacker who supplies a malicious container image can exploit this vulnerability by embedding links, and a chained file entry, that reference locations outside the intended extraction directory. This allows the attacker to write attacker-controlled content to arbitrary locations on the host filesystem with the privileges of the user running the command, potentially leading to file modification outside the destination directory.
出典: CVE.org (CVE Program・cvelistV5) NVD
参照URL
- issue RHBZ#2558338
- web access.redhat.com