CVE-2024-54143: openwrt/asu allows build artifact poisoning via truncated SHA-256 hash and command injection
openwrt/asu is an image on demand server for OpenWrt based distributions. The request hashing mechanism truncates SHA-256 hashes to only 12 characters. This significantly reduces entropy, making it feasible for an attacker to generate collisions. By exploiting this, a previously built malicious image can be served in place of a legitimate one, allowing the attacker to "poison" the artifact cache and deliver compromised images to unsuspecting users. This can be combined with other attacks, such as a command injection in Imagebuilder that allows malicious users to inject arbitrary commands into the build process, resulting in the production of malicious firmware images signed with the legitimate build key. This has been patched with 920c8a1.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-54143?
CVE-2024-54143 is considered to have a high severity due to its significant reduction of hash entropy, which allows for potential collision attacks.
How do I fix CVE-2024-54143?
To fix CVE-2024-54143, update the OpenWrt asu package to a version that includes enhancements to the request hashing mechanism to avoid truncation of SHA-256 hashes.
What specifically does CVE-2024-54143 affect?
CVE-2024-54143 specifically affects the OpenWrt asu image on demand server.
How can CVE-2024-54143 be exploited?
CVE-2024-54143 can be exploited by generating hash collisions due to the truncation of SHA-256 hashes, allowing for potential unauthorized access or manipulation.
Which versions of OpenWrt asu are affected by CVE-2024-54143?
Versions of OpenWrt asu prior to commit 920c8a1 are affected by CVE-2024-54143.