The ArchiveReader.extractContents() function used by cctl image load and container image load performs no pathname validation before extracting an archive member. This means that a carelessly or maliciously constructed archive can extract a file into any user-writable location on the system using relative pathnames. This issue is addressed in container 0.8.0 and containerization 0.21.0.
{
"source": "CPE_RANGE",
"cpe": "cpe:2.3:a:apple:container:*:*:*:*:*:swift:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.8.0"
}
]
}{
"source": "CPE_RANGE",
"cpe": [
"cpe:2.3:a:apple:container:*:*:*:*:*:swift:*:*",
"cpe:2.3:a:apple:containerization:*:*:*:*:*:swift:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.8.0"
},
{
"fixed": "0.21.0"
}
]
}