Busybox: busybox: dpkg-deb extraction-root escape via per-ar-member deferred symlink flush
Red Hat Hardened Images
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Red Hat Red Hat Hardened Images | — | No fix yet |
Original description
A flaw was found in BusyBox's dpkg-deb archive extraction. The ar archive handler flushes deferred symlinks after each archive member, unlike the tar, cpio, and unzip handlers which flush once after the last member. A specially crafted .deb archive with two data.tar members can exploit this ordering: the first member declares a symlink pointing to an absolute path (e.g., '/'), which is deferred as unsafe but flushed after the first member. The second member declares a regular file whose path traverses the now-live symlink, resulting in a file being written outside the intended extraction directory. This could allow an attacker to write arbitrary files to arbitrary locations when a user extracts a crafted .deb package.
From the CVE record · redhat