cbcvebase.
CVE-2024-54143
published 2024-12-06

CVE-2024-54143: 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…

PriorityP263critical9.3CVSS 4.0
AVNACLATNPRNUINVCHVIHVAHSCNSINSANEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
EPSS
1.87%
76.7th percentile
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

1 ranges
VendorProductVersion rangeFixed in
openwrtasu< 920c8a1920c8a1

Detection & IOCsextracted from sources · hover to see the quote

  • Detect command injection via package names passed to the 'make' command in the ASU server build process — monitor for shell metacharacters or unexpected subcommands in package name fields submitted to the sysupgrade service
  • Monitor ASU cache key collisions: the service uses a 12-character truncated SHA-256 hash (48-bit entropy) for build artifact caching — alert on cache hits for requests whose package lists or build parameters differ from the originally cached build
  • Audit sysupgrade.openwrt.org (or self-hosted ASU instances) build logs for anomalous package name values containing shell special characters, which could indicate attempted command injection into the build pipeline
  • Flag use of GPU-accelerated hash collision tooling (e.g., Hashcat) targeting 48-bit truncated SHA-256 values in threat-hunting contexts related to OpenWrt ASU infrastructure
  • ·The patch commit 920c8a1 addresses both the hash truncation and command injection issues — unpatched ASU instances remain vulnerable; self-hosted operators must update immediately
  • ·Build log visibility is limited to 7 days due to automatic cleanup, so compromise of images older than 7 days prior to December 4, 2024 cannot be ruled out
  • ·No evidence of exploitation was found in available logs, but the vulnerability has existed for an indeterminate period with no cut-off date
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.