CVE-2024-54143CWE-328

openwrt/asu allows build artifact poisoning via truncated SHA-256 hash and command injection

Critical · published December 6, 2024

CVSS v4.0
9.3
EPSS
2%
Percentile
78.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
9.3 · CRITICAL
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.01839 · 78.8th percentile
Weakness
CWE-328 · Use of Weak Hash
Published
2024-12-06T16:14Z
EPSS history
Timeline
  • 06 DEC 16:14Z
    openwrt/asu allows build artifact poisoning via truncated SHA-256 hash and command injection
    cvelistv5