Fedora Account System
Red Hat Associate
Red Hat Customer
A path traversal flaw was found in the checkpoint restore functionality of CRI-O's vendored go.podman.io/common dependency. The CRRemoveDeletedFiles function in common/pkg/crutils/checkpoint_restore_utils.go processes entries from the deleted.files metadata in a checkpoint archive by calling os.RemoveAll(filepath.Join(containerRootDirectory, deleteFile)) without validating that deleteFile is confined to the container root directory. An attacker who can supply or influence a checkpoint archive containing path traversal entries (e.g. "../host/victim.txt") in deleted.files can cause CRI-O to delete arbitrary files and directories on the host filesystem during checkpoint restore. Exploitation requires access to the kubelet or CRI-O socket to trigger a restore operation, and that checkpoint/restore functionality is explicitly enabled (not the default configuration).