GNU cpio through version 2.13 contains an integer-overflow vulnerability in the ds_fgetstr function in dstring.c. Processing a crafted pattern file supplied through the -E option can cause the overflow and subsequent out-of-bounds heap write, potentially resulting in arbitrary code execution.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository is a proof-of-concept exploit for CVE-2021-38185, an integer overflow vulnerability in GNU cpio 2.13 (Linux). The exploit consists of two main Python scripts: - 'docker_fengshui.py' generates a large, carefully crafted pattern file ('patt') that is designed to manipulate cpio's memory layout and corrupt internal structures, including overwriting libc's dynsym section with a custom binary blob ('dynsym-hacked.bin'). - 'exploit.py' invokes the vulnerable cpio binary with specific arguments, using the generated pattern file as input. If successful, this results in arbitrary code execution, typically yielding a shell. The repository includes a Dockerfile for setting up a Kali Linux environment with all necessary dependencies, including pwntools and pwndbg for debugging. The exploit is operational and requires significant system resources (at least 12 GB RAM) due to the large input files and memory manipulation involved. The attack vector is local, requiring the attacker to execute code on the target system. The exploit is not a detection script and is not part of a larger framework. The main fingerprintable endpoints are the cpio binary, the generated pattern file, and the auxiliary 'dynsym-hacked.bin' file.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
An integer-overflow and out-of-bounds heap-write vulnerability in GNU cpio through version 2.13. A crafted pattern file used with the -E option can enable arbitrary-code execution; the advisory notes that whether pattern files are commonly untrusted is unclear.
A vulnerability included in the Maistra 2.1.3 container-release CVE list; no technical details are provided.
Unknown
A vulnerability addressed by this security-update advisory; no technical details are provided.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.