GHSA-hhjv-jq77-cmvx: zeptoclaw has Android device shell blocklist bypass via argument permutation
Summary zeptoclaw implements a blocklist to prevent dangerous commands running in android device shell, but this blocklist has several blocked commands with argements in the pattern literal, such as rm -f and rm -rf, this can be simply bypassed by using different orders for these arguments, such as rm -r -f or rm -fr etc.
Published Mar 5, 2026
Affected packages
zeptoclaw
- Ecosystem
- Rust (crates.io)
- Affected
- <= 0.6.1
- Fixed in
- 0.6.2
- Check
cargo tree -i zeptoclaw
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
zeptoclaw implements a blocklist to prevent dangerous commands running in android device shell, but this blocklist has several blocked commands with argements in the pattern literal, such as rm -f and rm -rf, this can be simply bypassed by using different orders for these arguments, such as rm -r -f or rm -fr etc.
Details
As in code src/tools/android/actions.rs#L413-L424, we can see the rm -f and rm -rf are hard coded and thus can be simply bypassed via rm -r -f or rm -fr etc.
pub async fn device_shell(adb: &AdbExecutor, cmd: &str) -> Result<String> {
// Normalize whitespace for blocklist check
let normalized: String = cmd.split_whitespace().collect::<Vec<_>>().join(" ");
let lower = normalized.to_lowercase();
let blocked = [
"rm -rf",
"rm -r",
"reboot",
"factory_reset",
"wipe",
"format",
"dd if=",
"mkfs",
"flash",
"fastboot",
];
for pattern in &blocked {
if lower.contains(pattern) {
return Err(ZeptoError::Tool(format!(
"Blocked dangerous command containing '{}'",
pattern
)));
}
}PoC
Set up zeptoclaw with an Android tool and then run the command rm -f -r etc.
Impact
Unauthorized command executed in Android device.
Credit
Credited to zpbrent.
References
- https://github.com/qhkm/zeptoclaw/security/advisories/GHSA-hhjv-jq77-cmvx
- https://github.com/qhkm/zeptoclaw/commit/68916c3e4f3af107f11940b27854fc7ef517058b
- https://github.com/qhkm/zeptoclaw/blob/fe2ef07cfec5bb46b42cdd65f52b9230c03e9270/src/tools/android/actions.rs#L413-L424
- https://github.com/advisories/GHSA-hhjv-jq77-cmvx
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesCVE-2026-32231
ZeptoClaw: Generic webhook channel trusts caller-supplied identity fields; allowlist is checked against untrusted payload data
high8.2Mar 12, 2026CVE-2026-32232
ZeptoClaw: Path boundary checks bypass via symlink, TOCTOU, and hardlink
high8.8Mar 12, 2026GHSA-4cm8-xpfv-jv6f
ZeptoClaw: Email Sender Spoofing to bypass Header-Only From Allowlist Validation
medium6.5Mar 12, 2026GHSA-5wp8-q9mx-8jx8
zeptoclaw has Shell allowlist-blocklist bypass via command/argument injection and file name wildcards
critical10.0Mar 5, 2026
