Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2024-29973: Unauthenticated command injection in Zyxel NAS326 and NAS542

Published Jun 4, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS73.9%100th percentile
CISA KEVNoNot listed
In the wildReported452 exploitation records in Mallory
Vendor
Zyxel Communications
IdentifiersCVE-2024-29973CWE-78 · Improper Neutralization of Special…

CVE-2024-29973 is a command injection vulnerability in the setCookie parameter affecting Zyxel NAS326 firmware before V5.21(AAZF.17)C0 and NAS542 firmware before V5.21(ABAG.14)C0. An unauthenticated attacker can submit a crafted HTTP POST request to execute operating system commands on an affected device. Both models had reached end of support when the vulnerability was assigned. Remote command execution attempts targeting this vulnerability have been observed from a Mirai-like botnet.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits unauthenticated remote execution of operating system commands on the affected NAS, enabling device compromise. The execution privilege level and specific confidentiality or availability consequences are not established for this CVE. Observed Mirai-like botnet activity demonstrates exploitation attempts, but does not establish that every targeted device was successfully compromised.

Mitigation

If you can’t patch tonight, do this now.

Disconnect end-of-life devices from all networks if they cannot be safely maintained, and increase monitoring for suspicious activity and signs of compromise. For permanent retirement, update the asset inventory, securely erase stored data, and use certified hardware destruction and recycling procedures.

Remediation

Patch, then assume compromise.

Upgrade Zyxel NAS326 to firmware V5.21(AAZF.17)C0 and NAS542 to V5.21(ABAG.14)C0. Prioritize deployment after appropriate testing. Replace or decommission end-of-life devices that cannot be safely maintained. Investigate devices for existing compromise, particularly where patching was delayed; installing the firmware update does not remediate a prior compromise.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2024-29973This repository contains a Python exploit script (CVE-2024-29973.py) targeting a command injection vulnerability (CVE-2024-29973) in Zyxel NAS devices. The exploit works by sending a crafted HTTP GET request to a specific endpoint on the target device, injecting a Python command to execute 'id' via the device's backend. The script reads a list of target URLs from 'Kelpie.txt', attempts exploitation in parallel using threads, and writes any confirmed vulnerable URLs to 'vul_url.txt'. The README provides usage instructions and a sample HTTP request. The repository is structured simply, with one exploit script and a README, and is operational, providing real exploitation capability (not just detection).NanoWraith · Disclosed Jun 20, 2024 · python · networkOperationalCVE-2024-29973This repository provides an asynchronous Python exploit tool targeting CVE-2024-29973, a command injection vulnerability. The main file, 'exploit.py', is a standalone script that can scan single or multiple URLs for the vulnerability. It constructs a specific HTTP GET request to the endpoint '/cmd,/simZysh/register_main/setCookie' with a crafted 'c0' parameter that attempts to inject and execute a Python command ('echo Exploited') on the target. If the response contains the string 'Exploited', the target is confirmed vulnerable. The tool supports proxying, multi-threaded scanning, and output to a file. The repository also includes a README with usage instructions and a requirements.txt for dependencies. No hardcoded IPs or domains are present; the user supplies targets via command line. The exploit is operational, providing real exploitation and confirmation of code execution, not just detection.RevoltSecurities · Disclosed Jun 21, 2024 · python · networkOperationalCVE-2024-29973This repository contains a Python proof-of-concept (PoC) exploit and bulk scanner for CVE-2024-29973, a command injection vulnerability affecting Zyxel NAS326 and NAS542 devices with outdated firmware. The main file, 'CVE-2024-29973.py', allows users to scan a single target or multiple targets (from a file) for the vulnerability. The exploit works by sending a specially crafted HTTP GET request to a vulnerable endpoint on the Zyxel NAS web interface, attempting to execute the 'id' command via Python's subprocess module. If successful, the script detects the presence of 'root:' in the response, indicating command execution as root. The script logs results to 'logs/scan.log' and provides colored terminal output for status messages. The README provides usage instructions, requirements, and references. No hardcoded IPs or domains are present; targets are user-supplied. The exploit is a functional PoC, not weaponized, and is intended for authorized security testing only.bigb0x · Disclosed Jun 19, 2024 · python · markdown · networkPoCCVE-2024-29972-CVE-2024-29976-CVE-2024-29973-CVE-2024-29975-CVE-2024-29974-pocThis repository is a comprehensive proof-of-concept exploit toolkit targeting multiple vulnerabilities (CVE-2024-29972 through CVE-2024-29976) in ZyXEL NAS devices, such as the NAS326. The main exploit script, 'exploit.py', is a command-line tool (using Typer) that provides several attack primitives: - Arbitrary Python code execution via command injection (CVE-2024-29973) - Privilege escalation to root using a local binary (CVE-2024-29975) - Extraction of sensitive information (CVE-2024-29976) - Enabling a backdoor account and SSH service (CVE-2024-29972) - Uploading a malicious configuration file to achieve persistence (CVE-2024-29974) The exploit interacts with the target device over HTTP, abusing endpoints such as '/cmd,/simZysh/register_main/setCookie' for code execution and '/desktop,/cgi-bin/file_upload-cgi/favicon.ico' for uploading malicious files. The included shell scripts ('create_rom.sh' and 'create_tar_archive.sh') are used to craft a malicious ROM/configuration archive, which, when uploaded, sets up a cronjob to create a file ('/tmp/pwned') as a marker of successful exploitation. The repository is structured as follows: - 'exploit.py': Main exploit script with multiple attack commands - 'create_rom.sh' and 'create_tar_archive.sh': Helper scripts for crafting malicious configuration payloads - 'magic.rom': Placeholder for the malicious ROM file - 'requirements.txt': Python dependencies Overall, this repository provides a multi-faceted attack toolkit for exploiting and persisting on vulnerable ZyXEL NAS devices.Pommaq · Disclosed Jun 30, 2024 · python · bash · network · localPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Zyxel CommunicationsNas326 Firmwareoperating_system
Zyxel CommunicationsNas542 Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2024-29973 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2024-29973?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2024-29973, the earliest disclosed Jun 19, 2024.
Is there a patch for CVE-2024-29973?
Upgrade Zyxel NAS326 to firmware V5.21(AAZF.17)C0 and NAS542 to V5.21(ABAG.14)C0. Prioritize deployment after appropriate testing.
What products are affected by CVE-2024-29973?
Zyxel Communications Nas326 Firmware and Zyxel Communications Nas542 Firmware.
How severe is CVE-2024-29973?
CVE-2024-29973 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 73.9% (100th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.