Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-33044: NetKeyboard Authentication Bypass in Dahua Devices

Published Sep 15, 2021 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days12 mentions · peak 5 in a dayToday
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Aug 21, 2024
In the wildActivePer CISA KEV
Vendor
Dahua Security
IdentifiersCVE-2021-33044CWE-287 · Improper Authentication

CVE-2021-33044 is a remote authentication-bypass vulnerability in certain Dahua devices. Vulnerable firmware unconditionally trusts login requests identifying the client as a NetKeyboard hardware controller and skips password verification. Supplying this client type during the first or second global.login exchange can return a valid authenticated session without credentials. The vulnerability is reachable over DHIP and HTTP/HTTPS. Testing identified affected IPC, VTH, and VTO devices running firmware older than June 2021, particularly devices without NetKeyboard functionality. Successful exploitation can provide administrator access.

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.

An unauthenticated remote attacker can gain administrative access to an affected device, compromising surveillance confidentiality and device integrity. Administrative access can enable viewing video streams, capturing images, changing device settings, accessing credentials available through management interfaces, and creating unauthorized accounts. Follow-on account creation can maintain access independently of the original administrator password; persistence is a post-exploitation action rather than an inherent property of the authentication bypass.

Mitigation

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

Restrict device management interfaces to trusted networks and authorized hosts, using a VPN for remote administration. Disable unnecessary Easy4IP P2P/cloud access, since cloud-mediated connectivity can expose otherwise NAT-protected devices. Block unnecessary external management access, including TCP port 37777 where applicable, and isolate surveillance devices from sensitive network segments. Monitor for unexpected NetKeyboard login requests, unauthorized account creation, and configuration changes. Strong passwords alone do not prevent exploitation.

Remediation

Patch, then assume compromise.

Install the model-appropriate firmware identified in Dahua advisory SA-2021-0130 or a newer supported release. Obtain updates through Dahua or the relevant OEM vendor and verify applicability to each device model. For potentially compromised devices, inspect all accounts, remove unauthorized accounts, review linked cloud accounts and configuration changes, and rotate device and associated recorder credentials. Password changes or factory resets alone do not fix the vulnerability or reliably eliminate previously established access.

Public exploits

Exploits

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

View more in app →
dahua-cve-researchRepository contains Python PoC tooling targeting Dahua device vulnerabilities, primarily over the Dahua RPC2 HTTP interface and the DVRIP/binary service. Structure (8 files): - README.md / SECURITY.md: usage, legal disclaimers, and CVE overview. - dahua_auth_bypass.py: dedicated exploit for CVE-2021-33044 and CVE-2021-33045. Implements the two-step RPC2 challenge-response flow against /RPC2_Login, but crafts the response hash using an empty password (MD5("admin:realm:")) to obtain an authenticated admin session. Includes fallback default-credential testing and post-exploitation enumeration via /RPC2 methods (magicBox.getDeviceType/getSoftwareVersion/getSystemInfo and userManager.getUserInfoAll). - dahua_rce.py: DoS/vulnerability-probe for CVE-2025-31700 and CVE-2025-31701. Sends oversized JSON fields to /RPC2_Login (HTTP overflow probe) and an oversized DVRIP frame to TCP/37777 (binary overflow probe). Determines likely vulnerability via crash indicators (timeouts, connection resets, 5xx) and by checking HTTP reachability before/after. - dahua_scanner.py: subnet/host scanner and Dahua fingerprinting utility. Checks open ports, fetches / over HTTP/HTTPS for Dahua signatures, probes /RPC2_Login for realm/random behavior, and includes logic for auth-bypass/default-cred style checks (full fingerprinting function is truncated in provided content but intent is clear). - dahua_exploit.py: multi-CVE runner combining auth-bypass test, default-credential checks, and buffer-overflow probe logic; file content is partially truncated, but visible portions show the same /RPC2_Login challenge/login flow and a run_all() summary output. Main exploit capabilities: - Network-based authentication bypass to obtain an admin session token on vulnerable firmware (CVE-2021-33044/33045). - Post-authenticated RPC2 enumeration (device type/version/system info and user list) using the obtained session. - Network-based overflow-style malformed input probes over HTTP and TCP/37777 intended to cause crash/DoS and infer potential RCE conditions (CVE-2025-31700/31701), though the provided code is primarily a DoS/vulnerability confirmation rather than a full RCE chain. - Network discovery/fingerprinting and batch testing across subnets and common Dahua ports. Notable targets/endpoints: - HTTP: /RPC2_Login (challenge + login + overflow probe), /RPC2 (authenticated method calls), / (reachability/fingerprinting). - TCP: 37777 (Dahua DVRIP/binary protocol overflow probe). Overall purpose: a small, standalone (non-framework) toolkit for authorized security testing of Dahua cameras/NVR/XVR devices—covering discovery, auth-bypass exploitation with optional data enumeration, and overflow-based DoS/vulnerability probing.umair-aziz025 · Disclosed Mar 3, 2026 · python · network (HTTP RPC2 JSON API abuse for auth bypass and overflow probe) · network (raw TCP to Dahua DVRIP/binary protocol on 37777 for overflow probe) · network scanning/fingerprinting across subnets and common portsOperationalDAHUA_AUTH-BYPASS-CVE-2021-33044This repository is a small standalone Python exploit toolkit for Dahua devices, centered on CVE-2021-33044 authentication bypass. It contains three executable scripts and a README. The main exploit logic is in dahua_auth_bypass.py, which implements the Dahua RPC2 challenge-response flow against /RPC2_Login, derives the MD5-based login hash using an empty password field, and attempts to obtain a valid authenticated session as admin. If successful, it can optionally perform post-auth RPC2 enumeration through /RPC2, including device type, software version, system information, and full user list retrieval. The same script also includes a fallback default-credential check using common Dahua usernames/passwords. The second script, dahua_exploit.py, is a multi-CVE wrapper. From the visible code, it reuses the same RPC2 auth-bypass and default-credential logic, and the README plus code comments indicate an additional buffer-overflow/DoS test path for CVE-2025-31700/CVE-2025-31701. Because the file content is truncated, the exact overflow endpoint and packet structure are not fully visible, but the script clearly positions itself as a combined vulnerability tester rather than a pure single-exploit PoC. The third script, dahua_scanner.py, is a network discovery and fingerprinting utility. It scans user-supplied hosts/subnets and ports, performs TCP connect checks, probes HTTP/HTTPS root pages for Dahua-specific strings, tests /RPC2_Login behavior, and attempts CGI-based fingerprinting via /cgi-bin/magicBox.cgi?action=getDeviceType and getSoftwareVersion. It also contains helper logic for the same RPC2 hash generation and login testing, indicating it can identify vulnerable or weakly configured devices at scale. Overall, the repository purpose is offensive security research and validation of Dahua device exposure: discover devices, identify Dahua services, test for CVE-2021-33044/33045 auth bypass, try default credentials, and enumerate device/user information after access. It is not just a detector; it contains working exploit logic that can produce an authenticated session on vulnerable targets.eagle-nett · Disclosed Mar 24, 2026 · python · markdown · networkOperationalCamera-Dahua-Research-l-h-ng-CVE-2021-33044Repository contains three Python utilities plus a README: (1) dahua_auth_bypass.py is the main exploit PoC for CVE-2021-33044/CVE-2021-33045, (2) dahua_exploit.py is a broader multi-CVE tester, and (3) dahua_scanner.py is a network scanner/fingerprinter for Dahua devices. The core exploit logic targets Dahua HTTP RPC2 authentication by first requesting a login challenge from /RPC2_Login, extracting realm/random/session values, then computing a crafted MD5 hash equivalent to an empty-password login flow. Vulnerable firmware reportedly accepts this hash and returns a valid session ID, enabling authenticated RPC2 calls without knowing the real password. Post-authentication capabilities in dahua_auth_bypass.py include querying device type, software version, system info, and dumping user information via RPC2 methods. The scripts also attempt common default credentials as a fallback on patched devices. The scanner script performs TCP port checks, HTTP/HTTPS fingerprinting using Dahua-specific strings, probes /RPC2_Login for Dahua-style challenge responses, and tries CGI endpoints under /cgi-bin/magicBox.cgi for model/firmware identification. The multi-CVE script additionally references CVE-2025-31700/CVE-2025-31701 as buffer-overflow/DoS tests, but the provided content is truncated, so only its stated purpose can be confirmed. Overall, this is an operational network exploit toolkit for Dahua device discovery, authentication bypass testing, credential checking, and limited post-exploitation enumeration.litndat · Disclosed Jun 24, 2026 · python · markdown · network · webOperationalDahuaLoginBypassThis repository provides a Chrome extension exploit for authentication bypass vulnerabilities in Dahua IP cameras and related devices, specifically targeting CVE-2021-33044 and CVE-2021-33045. The exploit is implemented as a browser extension, with multiple versions (v1.0 to v4) of the extension present, each with its own background.js and manifest.json. The main exploit logic is in the background.js files, which inject JavaScript into the login page of the target device. The exploit works by overriding JavaScript methods (such as jQuery.extend or Ext.apply) to modify the parameters of the login request, setting values like clientType to 'NetKeyboard' or 'Local', and ipAddr to '127.0.0.1', thereby bypassing authentication checks on vulnerable firmware. The extension provides a user interface to trigger the exploit methods. Additional scripts (misc/extra.js) demonstrate further interaction with the device's API, such as adding users via HTTP endpoints. The repository includes documentation, a detailed README, and a text file (misc/dahua-bypass.txt) with technical details and PoC information. The exploit is a proof-of-concept and requires the attacker to access the device's login page via a browser with the extension installed.bp2008 · Disclosed Oct 11, 2021 · javascript · json · browserPoCCVE-2021-33044This repository contains a proof-of-concept exploit for CVE-2021-33044, an authentication bypass vulnerability affecting Dahua IPC, VTH, and VTO devices. The main exploit script, 'dahua_bypass.py', is a Python script that sends a crafted JSON payload to the '/RPC2_Login' endpoint of a target device, attempting to bypass authentication as the 'admin' user. If successful, the script prints the response and saves the session token and response data to 'vulnerable.txt'. The repository also includes a README.md with usage instructions. The exploit is network-based and targets Dahua devices accessible over HTTP or HTTPS. No hardcoded IPs or domains are present; the target is supplied as a command-line argument.Spy0x7 · Disclosed Oct 18, 2021 · python · networkPoCLoHongCam-CVE-2021-33044This repository contains a proof-of-concept exploit for CVE-2021-33044, an authentication bypass vulnerability affecting Dahua IPC, VTH, and VTO devices. The main file, 'dahua_bypass.py', is a Python script that sends a crafted POST request to the '/RPC2_Login' endpoint of a target device, attempting to bypass authentication by using a default 'admin' username and a placeholder password. If the exploit is successful, the script prints confirmation and saves the session token and response to 'vulnerable.txt'. The repository also includes a README.md with usage instructions and a brief description. The exploit targets network-accessible Dahua devices and requires the attacker to know the device's IP address and port. No hardcoded IPs or credentials are present; the target is supplied as a command-line argument.haingn · Disclosed Oct 22, 2023 · python · networkPoCDahuaLoginBypassThis repository is a real exploit project implemented as a Chrome extension for abusing Dahua authentication bypass flaws. It is not part of a larger exploit framework. The active top-level extension is version 4, consisting primarily of manifest.json and background.js; older iterations are preserved in subdirectories (DahuaLoginBypass 1.0, v2, v3, v4), showing the exploit’s evolution. Supporting material includes README.md, a copied advisory in misc/dahua-bypass.txt, and experimental code in misc/extra.js. Core capability: when the user clicks the extension icon on a Dahua login page, background.js injects the loginBypass() function into the active tab. That function identifies likely Dahua login forms using known selectors, inserts a custom control panel into the page, and on button press monkey-patches jQuery.extend and/or Ext.apply so that the login object generated by the page is modified before submission. In the current v4/top-level code, the exploit changes clientType from "Web3.0" to "NetKeyboard", implementing CVE-2021-33044. It then autofills fake credentials (admin / "Not Used") and triggers the page’s normal login button. This is a browser-assisted exploit against the target web UI rather than a standalone scanner. Older versions broaden functionality. Version 1.0 and v2 include two methods: Method 1 for CVE-2021-33044 and Method 2 for CVE-2021-33045. Method 2 forges loopback/local login attributes (ipAddr 127.0.0.1, loginType Loopback, clientType Local, passwordType Plain, password admin). Version 3 improves compatibility by supporting both jQuery.extend and Ext.apply. Version 4 narrows scope to the browser-viable NetKeyboard bypass and explicitly notes that CVE-2021-33045 cannot be exploited with an ordinary web browser for other device classes. The repository does not contain hardcoded external C2 or exfiltration infrastructure. Fingerprintable targets are mostly local Dahua device endpoints and parameters: RPC2_Login, RPC2, and cgi-bin/userManager.cgi?action=addUser appear in misc/extra.js, which is experimental code for logging in via Dahua RPC and attempting user creation after bypass. That file demonstrates additional post-auth capability ideas: calling global.login, userManager.getGroupInfoAll, userManager.addUser, and userManager.deleteUser. However, this code is not wired into the main extension and appears to be prototype or abandoned functionality. Overall purpose: provide an operator-friendly browser extension to exploit vulnerable Dahua device login flows directly from the victim device’s web interface, primarily to obtain unauthorized authenticated access to cameras/intercom devices affected by CVE-2021-33044, with historical code and notes for CVE-2021-33045.Bd-Mutant7 · Disclosed Mar 28, 2026 · javascript · json · browser · web · networkPoC
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
Dahua SecurityIpc-Hum7xxx Firmwareoperating_system
Dahua SecurityIpc-Hx3xxx Firmwareoperating_system
Dahua SecurityIpc-Hx5xxx Firmwareoperating_system
Dahua SecuritySd1a1 Firmwareoperating_system
Dahua SecuritySd22 Firmwareoperating_system
Dahua SecuritySd41 Firmwareoperating_system
Dahua SecuritySd49 Firmwareoperating_system
Dahua SecuritySd50 Firmwareoperating_system
Dahua SecuritySd52c Firmwareoperating_system
Dahua SecuritySd6al Firmwareoperating_system
Dahua SecurityTpc-Bf1241 Firmwareoperating_system
Dahua SecurityTpc-Bf2221 Firmwareoperating_system
Dahua SecurityTpc-Bf5x01 Firmwareoperating_system
Dahua SecurityTpc-Bf5x21 Firmwareoperating_system
Dahua SecurityTpc-Pt8x21b Firmwareoperating_system
Dahua SecurityTpc-Sd2221 Firmwareoperating_system
Dahua SecurityTpc-Sd8x21 Firmwareoperating_system
Dahua SecurityVth-542xh Firmwareoperating_system
Dahua SecurityVto-65xxx Firmwareoperating_system
Dahua SecurityVto-75x95x Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2021-33044 exploited in the wild?
Yes. As of Nov 17, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 21, 2024.
Is there a public exploit for CVE-2021-33044?
Yes. Mallory tracks 7 public exploits or proofs of concept for CVE-2021-33044, the earliest disclosed Oct 11, 2021.
Is there a patch for CVE-2021-33044?
Install the model-appropriate firmware identified in Dahua advisory SA-2021-0130 or a newer supported release. Obtain updates through Dahua or the relevant OEM vendor and verify applicability to each device model.
What products are affected by CVE-2021-33044?
Dahua Security Ipc-Hum7xxx Firmware, Dahua Security Ipc-Hx3xxx Firmware, Dahua Security Ipc-Hx5xxx Firmware, Dahua Security Sd1a1 Firmware, Dahua Security Sd22 Firmware, and at least 15 more.
How severe is CVE-2021-33044?
CVE-2021-33044 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 17, 2026.
Activity feed

Recent activity

53 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
security affairsNews · Oct 27, 2026Attackers Take Control of Dahua Cameras and Video Recorders Via Easy4IPAn authentication-bypass vulnerability affecting Dahua cameras and video recorders running vulnerable firmware. The article identifies it as a possible means of bypassing login after reaching a device through Easy4IP cloud access; strong passwords alone do not protect vulnerable devices. Exploitation of this specific CVE in the reported incidents is not confirmed.Read more ↗the hacker newsNews · Oct 27, 2026Attackers Hijack Dahua IP Cameras in Ukraine Using P2P Access and Auth WeaknessesAn authentication bypass vulnerability in Dahua devices that permits passwordless login. The article links it to surveillance-device compromises and Operation CameraSwarm, which combined exploitation with credential brute forcing and installed persistent backdoor accounts on some cameras.Read more ↗tech timesNews · Oct 27, 2026Hackers Compromised 14,500 Dahua Cameras via Serial Numbers, CERT-UA Now WarnsAn authentication bypass in Dahua firmware allows an attacker to obtain an administrative session by claiming to be a NetKeyboard client without supplying a valid password. The content reports active exploitation alongside CVE-2021-33045 in Operation CameraSwarm, whose authentication-bypass path installed persistent rogue accounts on 1,923 cameras. The campaign is not attributed to a specific threat actor.Read more ↗the record mediaNews · Oct 26, 2026Ukraine warns hackers are exploiting Chinese-made Dahua surveillance cameras | The Record from Recorded Future NewsA critical authentication-bypass vulnerability affecting certain Dahua cameras and video recorders, disclosed in 2021. CERT-UA highlighted it while warning of unauthorized access through Dahua's Easy4IP remote-access service. The content does not confirm exploitation of this specific CVE in the reported compromises.Read more ↗
+26 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
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 evidence2Every report linking this CVE to a named adversary.
Associated malware8Malware families linked to this CVE, with evidence and IOCs.
Detection signatures6YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity21Community discussion across Reddit, Mastodon, and other social sources.