{"answers":{"affected":"2 open source packages ship an affected version, including zeptoclaw.","exploited":"There is no known exploitation of GHSA-hhjv-jq77-cmvx in the wild and no public exploit code.","fix":"Upgrade zeptoclaw to 0.6.2 or later.","what":"GHSA-hhjv-jq77-cmvx is a vulnerability in zeptoclaw, published on 5 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-hhjv-jq77-cmvx and fix it if it is affected.\n\nWhat it is: GHSA-hhjv-jq77-cmvx is a vulnerability in zeptoclaw, published on 5 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-hhjv-jq77-cmvx in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- zeptoclaw (crates.io): affected all versions; fixed in 0.6.2\n- zeptoclaw (crates.io): affected all versions; fixed in 0.6.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-hhjv-jq77-cmvx/ (Markdown: https://insights.sbomify.com/GHSA-hhjv-jq77-cmvx/index.md)","id":"GHSA-hhjv-jq77-cmvx","markdown":"https://insights.sbomify.com/GHSA-hhjv-jq77-cmvx/index.md","name":"GHSA-hhjv-jq77-cmvx","record":{"aliases":[],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Android automation tool","requires_auth":"low_privilege","summary":"Attackers can bypass command blocklists in zeptoclaw by permuting arguments, allowing unauthorized execution of dangerous shell commands on connected Android devices.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\n[zeptoclaw](https://github.com/qhkm/zeptoclaw) implements a [blocklist](https://github.com/qhkm/zeptoclaw/blob/fe2ef07cfec5bb46b42cdd65f52b9230c03e9270/src/tools/android/actions.rs#L413-L424) 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.\n\n### Details\nAs in code [src/tools/android/actions.rs#L413-L424](https://github.com/qhkm/zeptoclaw/blob/fe2ef07cfec5bb46b42cdd65f52b9230c03e9270/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.\n```rust\npub async fn device_shell(adb: \u0026AdbExecutor, cmd: \u0026str) -\u003e Result\u003cString\u003e {\n    // Normalize whitespace for blocklist check\n    let normalized: String = cmd.split_whitespace().collect::\u003cVec\u003c_\u003e\u003e().join(\" \");\n    let lower = normalized.to_lowercase();\n\n    let blocked = [\n        \"rm -rf\",\n        \"rm -r\",\n        \"reboot\",\n        \"factory_reset\",\n        \"wipe\",\n        \"format\",\n        \"dd if=\",\n        \"mkfs\",\n        \"flash\",\n        \"fastboot\",\n    ];\n    for pattern in \u0026blocked {\n        if lower.contains(pattern) {\n            return Err(ZeptoError::Tool(format!(\n                \"Blocked dangerous command containing '{}'\",\n                pattern\n            )));\n        }\n    }\n```\n\n### PoC\nSet up [zeptoclaw](https://github.com/qhkm/zeptoclaw) with an Android tool and then run the command `rm -f -r` etc.\n\n### Impact\nUnauthorized command executed in Android device.\n\n### Credit\n[@zpbrent](https://github.com/zpbrent)","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"zeptoclaw has Android device shell blocklist bypass via argument permutation","id":"GHSA-hhjv-jq77-cmvx","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.6.2"],"introduced":["0"],"last_affected":[],"package":"zeptoclaw","purl":null,"source":"GHSA-hhjv-jq77-cmvx"},{"ecosystem":"crates.io","fixed":["0.6.2"],"introduced":["0"],"last_affected":[],"package":"zeptoclaw","purl":"pkg:cargo/zeptoclaw","source":"GHSA-hhjv-jq77-cmvx"}],"products":null,"published":"2026-03-05","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can bypass command blocklists in zeptoclaw by permuting arguments, allowing unauthorized execution of dangerous shell commands on connected Android devices.","url":"https://insights.sbomify.com/GHSA-hhjv-jq77-cmvx/"}