diff --git a/utils/oscap_docker_python/oscap_docker_util.py b/utils/oscap_docker_python/oscap_docker_util.py index 81b13d8aa6..a87e3a96fe 100644 --- a/utils/oscap_docker_python/oscap_docker_util.py +++ b/utils/oscap_docker_python/oscap_docker_util.py @@ -126,7 +126,7 @@ def _extract_container(self): self.mountpoint = tempfile.mkdtemp() self.extracted_container = True with tarfile.open(fileobj=tar) as tf: - tf.extractall(path=self.mountpoint) + tf.extractall(path=self.mountpoint, filter="tar") Path(os.path.join(self.mountpoint, '.dockerenv')).touch()