CVE-2024-45497: Openshift-api: openshift-controller-manager/build: build process in openshift allows overwriting of node pull credentials
A flaw was found in the OpenShift build process, where the docker-build container is configured with a hostPath volume mount that maps the node's /var/lib/kubelet/config.json file into the build pod. This file contains sensitive credentials necessary for pulling images from private repositories. The mount is not read-only, which allows the attacker to overwrite it. By modifying the config.json file, the attacker can cause a denial of service by preventing the node from pulling new images and potentially exfiltrating sensitive secrets. This flaw impacts the availability of services dependent on image pulls and exposes sensitive information to unauthorized parties.
Other sources
A vulnerability in the OpenShift Container Platform allows an attacker with developer access to modify the config.json file on a worker node. By exploiting the build process and using a misconfigured pod that mounts /var/lib/kubelet/config.json without read-only restrictions, the attacker can overwrite the credentials file required for pulling container images. This leads to a denial of service, preventing the node from fetching images and potentially leaking sensitive credentials used to access private image repositories.
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-45497?
CVE-2024-45497 is classified as a high severity vulnerability as it exposes sensitive credentials through a hostPath volume mount.
How do I fix CVE-2024-45497?
To fix CVE-2024-45497, you should avoid using hostPath mounts for sensitive files and implement proper access controls for image pulling.
What software is affected by CVE-2024-45497?
CVE-2024-45497 affects the Red Hat OpenShift Container Platform.
What are the risks associated with CVE-2024-45497?
The risks associated with CVE-2024-45497 include unauthorized access to private image repositories due to exposed credentials.
When was CVE-2024-45497 disclosed?
CVE-2024-45497 was disclosed in 2024 and requires immediate attention to prevent potential exploitation.