CVE-2024-54143 openwrt/asu allows build artifact poisoning via truncated SHA-256 hash and command injection
Attackers can poison build artifacts via hash collisions and inject commands to produce malicious firmware images signed with legitimate keys.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-54143?
CVE-2024-54143 is a critical command injection vulnerability in openwrt asu, published on 6 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-328
Which versions are affected by CVE-2024-54143?
How do I fix CVE-2024-54143?
No fix has been published for CVE-2024-54143 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-54143 being exploited?
There is no known exploitation of CVE-2024-54143 in the wild and no public exploit code.
Sources
Also known as GHSA-r3gq-96h6-3v7q.