Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2017-7921: Authentication Bypass in Hikvision IP Cameras

Published May 6, 2017 · Updated 4 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days4 mentions · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Mar 5, 2026
In the wildActivePer CISA KEV
Vendor
Hikvision
IdentifiersCVE-2017-7921CWE-287 · Improper Authentication

CVE-2017-7921 is an improper-authentication vulnerability affecting multiple Hikvision surveillance camera series. Affected firmware does not correctly authenticate requests to device services, allowing a remote attacker to bypass authentication controls, gain elevated privileges, and access sensitive information. The vulnerability affects specified firmware releases in the DS-2CD2xx2F-I, DS-2CD2xx0F-I, DS-2CD2xx2FWD, DS-2CD4x2xFWD, DS-2CD4xx5, DS-2DFx, and DS-2CD63xx series. Exploitation and automated scanning have continued years after disclosure.

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 can compromise device confidentiality and authorization boundaries by exposing sensitive information and granting elevated access. Potentially exposed resources include device configuration, user information, and camera snapshots, enabling surveillance and further abuse of the affected device. Arbitrary code execution is not established for this vulnerability.

Mitigation

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

Remove direct internet exposure and restrict camera web and management services to trusted administrative hosts using firewall rules or access-control lists. Isolate affected cameras on a dedicated network segment and disable unnecessary remote-access services. Monitor for unexpected access, configuration changes, and unauthorized accounts. Strong passwords alone do not resolve an authentication-bypass vulnerability.

Remediation

Patch, then assume compromise.

Install the model-specific firmware update addressing CVE-2017-7921, referenced by Hikvision advisory HSRC-201703-04. Updates are available for affected cameras sold through authorized distributors, but a universally applicable fixed firmware version is not specified. Confirm update availability and applicability with Hikvision or the authorized distributor. Replace affected devices that cannot receive supported security updates.

Public exploits

Exploits

23 exploits validated by Mallory's analysis. Hidden: 6 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
hikvision_info_disclosure_cve_2017_7921.rbThis repository contains a single Metasploit auxiliary module targeting CVE-2017-7921, an unauthenticated information disclosure vulnerability in Hikvision IP cameras and many white-labeled equivalents. The module exploits improper authorization logic to retrieve sensitive information such as configuration files (containing credentials), user credentials, and camera snapshots via unauthenticated HTTP requests. The module provides several actions: dumping all information, extracting only credentials, extracting only configuration, or taking a snapshot. Retrieved data is saved as loot for later analysis. The exploit does not provide code execution or a shell, but enables attackers to compromise camera privacy and potentially pivot further using exposed credentials. The main endpoints targeted are '/System/configurationFile' for configuration and credentials, '/System/time' for vulnerability checking, and '/Streaming/channels/1/picture?snapShotImageType=JPEG' for snapshots. The code is written in Ruby and is designed to be used within the Metasploit framework.Disclosed Sep 23, 2017 · Framework: metasploit · ruby · networkWeaponizedhikvision_unauth_pwd_reset_cve_2017_7921.rbThis repository contains a single Metasploit auxiliary module targeting Hikvision IP cameras vulnerable to CVE-2017-7921. The exploit leverages improper authentication logic to allow unauthenticated attackers to reset the password of any user account (typically 'admin') on the device. The module works by sending a crafted HTTP PUT request with XML data to the /Security/users endpoint, exploiting the authentication bypass. The attacker can specify the username, new password, and user ID to reset. If successful, the exploit grants administrative access to the device. The module also supports storing the new credentials in the Metasploit database. The code is written in Ruby and is structured as a standard Metasploit auxiliary module, with options for target host, port, username, password, and user ID. No hardcoded IPs or domains are present; the endpoint is relative and intended to be used against user-specified targets.Disclosed Sep 23, 2017 · Framework: metasploit · ruby · networkWeaponizedCVE-2017-7921-EXPThis repository contains a Python exploit for CVE-2017-7921, a critical improper authentication vulnerability affecting Hikvision IP cameras and similar devices. The main file, CVE_2017_7921_EXP.py, is a command-line tool that takes a target IP address (or a file containing multiple targets) and attempts to exploit the vulnerability by sending a crafted HTTP GET request to the /System/configurationFile endpoint with a static base64-encoded 'admin' credential in the 'auth' parameter. If the device is vulnerable, it responds with an encrypted configuration file, which the script then decrypts using a hardcoded AES key and XOR operation. The script extracts and prints out usernames and passwords (including the admin account) in plaintext. The exploit is operational and automates the process of credential extraction from vulnerable devices. The repository also includes a README.md with usage instructions and a requirements.txt listing Python dependencies (requests, fire, pycrypto). No fake or destructive code is present; the exploit is focused on credential extraction via a network attack vector.JrDw0 · Disclosed Apr 27, 2020 · python · networkOperationalCVE-2017-7921This repository is a Go-based exploit tool targeting Hikvision devices vulnerable to CVE-2017-7921 (unauthorized access). The main code is in 'main.go', which provides three primary modules: a POC module to check for unauthorized access, an exploit module to extract admin credentials by decrypting the configuration file, and a brute-force module to attempt password guessing. The tool supports scanning single IPs, IP ranges, or lists from a file, and can operate over HTTP or HTTPS. It uses multi-threading for efficiency. The endpoints targeted are specific to Hikvision's web interface, and the exploit includes logic to decrypt and extract credentials from device responses. The repository is operational and provides real exploit functionality, not just detection.BurnyMcDull · Disclosed Nov 12, 2020 · go · networkOperationalhikivisionThis repository is an exploit toolkit targeting Hikvision IP cameras and NVRs vulnerable to a known backdoor (triggered by the parameter ?auth=YWRtaW46MTEK). The main components are: - 'exploit.sh': A Bash script that takes a target host, port, and SSL flag, crafts HTTP(S) requests to various endpoints on the device using the backdoor, and attempts to download sensitive files (notably the configuration file), take snapshots, dump device/user info, and perform DoS actions (reboot/factory reset). It checks for vulnerability by probing the /Security/users endpoint and, if successful, downloads the configuration file. - 'config-decryptor.py': A Python script that decrypts the downloaded configuration file using a hardcoded AES key and XOR operation, then extracts readable strings (including admin credentials). - 'main.py': A Python script that automates exploitation against a list of targets specified in 'webcams.txt', running the Bash exploit for each IP:port pair. - 'webcams.txt': A sample list of target IP addresses and ports. - 'requirements.txt': Specifies the 'pycryptodome' dependency for decryption. The exploit is operational and automates the process of identifying vulnerable Hikvision devices, extracting their configuration files, decrypting them, and retrieving admin credentials. It also supports additional actions such as taking snapshots and performing denial-of-service attacks (reboot/factory reset). The main attack vector is network-based, requiring access to the device's HTTP(S) interface. The endpoints targeted are well-defined and fingerprintable, and the exploit is effective against devices with the backdoor enabled.krypton612 · Disclosed Jul 4, 2023 · python · bash · networkOperationalcve-2017-7921-Mass-ExploitThis repository is a mass exploitation toolkit targeting Hikvision IP cameras vulnerable to CVE-2017-7921. It contains three main Python scripts: - 'download.py': Scans a list of IP addresses (from the 'ip' file) and attempts to exploit the unauthenticated configuration file download vulnerability. If successful, it can optionally download the configuration file from each vulnerable device. - 'snapshot.py': Similar to 'download.py', but targets the unauthenticated snapshot endpoint to download camera images from vulnerable devices. - 'decrypt.py': Decrypts configuration files obtained from the cameras using a known static AES key and an XOR operation, extracting readable strings (such as credentials). The 'ip' file contains a large list of target IP addresses and hostnames. The default target port is 80, but this can be changed in the code. The attack vector is network-based, requiring access to the camera's web interface. The endpoints '/System/configurationFile?auth=YWRtaW46MTEK' and '/onvif-http/snapshot?auth=YWRtaW46MTEK' are fingerprintable and are used to exploit the vulnerability. The toolkit is operational and can be used to extract sensitive data from a large number of vulnerable devices.yousouf-Tasfin · Disclosed Feb 2, 2024 · python · networkOperationalCVE-2017-7921This repository contains a Python exploit script targeting Hikvision IP cameras vulnerable to CVE-2017-7921. The main script (script.py) provides three core capabilities: (1) Downloading and decrypting the camera's configuration file to extract admin credentials, (2) Continuously downloading camera snapshots and saving them locally, and (3) Converting a series of downloaded images into a video. The script interacts with the camera's HTTP endpoints, using hardcoded authentication tokens, and can optionally route requests through Tor for anonymity. The repository includes a requirements file for dependencies, a .gitignore for output directories, and a README with detailed usage instructions. The exploit is operational, providing real credential extraction and image/video exfiltration from vulnerable cameras.GabrielAvls · Disclosed Jan 24, 2025 · python · networkOperationalHikvision-City-HunterThis repository contains a Python script ('Hunter.py') and a README file. The script is a city-targeted reconnaissance and exploitation tool for Hikvision IP cameras, DVRs, and NVRs. It uses the Shodan API to search for Hikvision devices in a specified city, filters out likely honeypots, and attempts to access each device using the default admin:12345 credentials (base64-encoded in the 'auth' parameter). For each accessible device, it enumerates detailed device information and attempts to download a camera snapshot. Results are saved to a timestamped hits file and snapshots are stored in a dedicated folder. The script is highly automated, supports high concurrency, and provides colorful real-time console output. The exploit leverages a well-known default credential vulnerability and is operational, providing both enumeration and snapshot download capabilities. No specific CVE is referenced, but the attack is effective against Hikvision devices with unchanged default credentials.voidsshadows · Disclosed Nov 19, 2025 · python · markdown · networkOperationalCVE-2017-7921Repository contains a single Python exploit/scanner (CVE-2017-7921.py) plus a short README. The script is a multi-threaded network scanner targeting Hikvision devices vulnerable to CVE-2017-7921 (improper authentication). For each target from ips.txt, it normalizes the base URL (adds http:// if missing and follows redirects), then requests the unauthenticated endpoint /System/configurationFile?auth=YWRtaW46MTEK. If HTTP 200 is returned, it processes the response as an encrypted/obfuscated configuration file: AES-ECB decrypt using a hardcoded 16-byte key (hex 279977f62f6cfd2d91cd75b889ce0c9a), then XORs the decrypted bytes with a repeating 4-byte key (0x73,0x8B,0x55,0x44). It extracts printable strings and searches for occurrences of the literal 'admin'; it assumes the next string is the password and writes target:username:password to ipsvalide.txt. The code is operational (performs real exploitation and credential recovery) but limited to credential disclosure; it does not implement command execution or a post-exploitation payload. README also includes Shodan dorks for identifying likely Hikvision web interfaces.0xf3d0rq · Disclosed Nov 27, 2025 · python · markdown · networkOperationalCVE-2017-7921This repository contains a Python exploit script (CVE-2017-7921.py) and a README.md. The script targets Hikvision IP cameras and DVRs vulnerable to CVE-2017-7921, an authentication bypass flaw. It reads a list of target IPs from 'ips.txt', then for each target, sends an unauthenticated HTTP GET request to the '/System/configurationFile?auth=YWRtaW46MTEK' endpoint. If the device is vulnerable, it receives an encrypted configuration file, which the script decrypts and decodes to extract admin credentials. These credentials are saved to 'ipsvalide.txt'. The script is multithreaded for efficiency and provides colored console output for status updates. The README provides a brief description of the vulnerability and a Shodan search dork for finding potentially vulnerable devices. The exploit is operational, providing real credential extraction, and is not just a proof of concept or detection script.f3d0rq · Disclosed Nov 27, 2025 · python · networkOperationalhikvision-exploiterRepository contains two standalone Python exploit tools targeting Hikvision devices: 1) 2017/CVE-2017-7921.py (Hikvision information disclosure/auth bypass): - Performs unauthenticated HTTP requests using a hardcoded base64 auth token (auth=YWRtaW46MTEK) to ISAPI-style endpoints. - Verifies exposure by requesting /Security/users and then downloads /System/configurationFile. - Implements offline decryption of the configuration export using AES-ECB with a hardcoded key (279977f62f6cfd2d91cd75b889ce0c9a) followed by XOR (0x73 0x8B 0x55 0x44) to recover plaintext and extract credentials (looks for 'admin' token and the subsequent password token). - Can also fetch a snapshot image from /onvif-http/snapshot. - Supports multi-target operation: single URL (-u), file list (-f), or IP/CIDR range (-ip) with port ranges, threading, progress bar, and writes results (likely CSV) plus snapshot files to an output directory. 2) 2021/CVE-2021-36260.py (Hikvision unauthenticated command injection/RCE): - Implements an HTTP client that targets /SDK/webLanguage and injects short commands (enforces ~22 byte limit for reliability). - Includes verification modes: “safe check” (write/read style verification) and “unsafe check” (reboot-based verification). - Provides actions: execute command with output, execute blind command, reboot device, and a --shell mode that attempts to enable/assume an SSH service on TCP/1337 and then connects using the local system ssh client. - Auto-toggles between http/https on connection issues and suppresses TLS warnings. Non-code files: - Per-year requirements.txt list Python dependencies. - commands.txt files provide example invocations and manual curl checks. - README.md is minimal, indicating both CVEs and an update date. Overall purpose: a small collection of operational PoC/utility exploits for Hikvision devices—one focused on credential/config extraction (CVE-2017-7921) and one providing unauthenticated RCE with optional interactive access (CVE-2021-36260).saaydmr · Disclosed Jan 21, 2026 · python · networkOperationalCVE-2017-7921-Research-ToolkitRepository purpose: a CVE-2017-7921 “research toolkit” for Hikvision IP cameras that performs bulk network scanning of provided device URLs, exploits the authentication bypass to fetch the device configuration file, decrypts/deobfuscates it, and extracts credentials. Structure: - README.md: Chinese documentation describing CVE-2017-7921, usage workflow, expected input format (newline-delimited JSON in `zc/`), and output (`vulnerable_devices.json`). It also documents the hardcoded auth token and crypto details (AES-ECB key and XOR key). - batch_decrypt.py: Main executable Python script. Key exploit capabilities (batch_decrypt.py): - Input handling: enumerates `.json` files under `zc/`, loads devices line-by-line as JSON objects; expects at least `link` (base URL). - Network exploitation: for each device, performs `GET {link}/System/configurationFile?auth=YWRtaW46MTEK` with a browser-like User-Agent and 5s timeout. - Crypto processing: if response is 200 and content length > 100 bytes, decrypts using AES-ECB with hardcoded key `279977f62f6cfd2d91cd75b889ce0c9a` (skipping the first AES block), then XORs the result with repeating key bytes `73 8B 55 44`. - Credential extraction: converts bytes to ISO-8859-1, extracts printable strings, searches for the string 'admin' and treats the next extracted string as the password. - Concurrency: uses ThreadPoolExecutor with user-specified worker count; progress shown via tqdm. - Output: prints discovered credentials and writes all successful findings to `vulnerable_devices.json` in the script directory. Overall, this is an operational credential-dumping exploit tool (not just detection) targeting Hikvision devices vulnerable to CVE-2017-7921 via a specific configuration file download endpoint and known static decryption parameters.Wyl-cmd · Disclosed Jan 28, 2026 · python · networkOperationalCVE-2017-7921Repository contains a standalone Python 3 tool (single main script: CVE-2017-7921.py) plus README and requirements. The script is a multi-function Hikvision camera/NVR utility centered on CVE-2017-7921 (“magic auth” authentication bypass). Core capabilities implemented in the script: - Target ingestion: reads a camera list file with entries in host or host:port format. - Snapshot collection (authenticated): attempts multiple known Hikvision snapshot endpoints in order (/ISAPI/Streaming/channels/1/picture, /ISAPI/Streaming/channels/101/picture, /onvif-http/snapshot) using HTTP Basic auth by default, with optional HTTP Digest. - CVE exploitation (unauthenticated): uses a hardcoded magic-auth query string (?auth=YWRtaW46MTEK) to access /onvif-http/snapshot without credentials; also used to access /Security/users and /System/configurationFile. - Vulnerability checking: determines likely vulnerability by requesting the magic-auth snapshot endpoint and validating response status/content. - Credential extraction: downloads the device configuration file via the bypass and performs decryption (using local OpenSSL plus embedded key material) to recover usernames/passwords; can then verify credentials. - Concurrency: uses ThreadPoolExecutor with configurable worker count to process many devices. - Output: writes per-device JPEG snapshots to an output directory (default snapshots/). Optional Pillow-based merge creates a single overview grid image. Overall purpose: bulk assess and interact with Hikvision devices from a separate host—enumerate targets, test for CVE-2017-7921 exposure, optionally extract credentials from vulnerable devices, and collect snapshots either with valid credentials or via the auth-bypass.mverschu · Disclosed Feb 9, 2026 · python · networkOperationalCVE-2017-7921-rewriteRepository contains a small Python rewrite PoC for CVE-2017-7921 (Hikvision auth bypass / information disclosure). It has two runnable scripts: - credentials.py: Prompts for a target IP, requests `/Security/users/` with a crafted `?auth=` token (base64 of `username:11`, defaulting to `admin:11`) to enumerate usernames, then requests `/System/configurationFile` and decrypts the returned blob using a hardcoded AES key (ECB) and a 4-byte XOR key. It parses decrypted text with regex tokenization and correlates usernames to subsequent tokens to print `user:password` pairs. - snapshot.py: Uses the same `admin:11` token approach to fetch `/Streaming/channels/1/picture` and writes the response to `<ip>.jpg` if it exceeds a minimum size threshold. No framework integration (not Metasploit/Nuclei). The exploit is operational for credential/snapshot retrieval but lacks robust target validation, error handling, and configurable payloads beyond the target IP.KelvinWin10 · Disclosed Feb 15, 2026 · python · networkOperationalCVE-2017-7921-ExploitThe repository contains README.md (6,493 bytes) and one standalone Python entry point, exploit.py (34,281 bytes). It is not associated with a recognized exploit framework. The README describes an operational CVE-2017-7921 toolkit combining vulnerability assessment, configuration retrieval, credential extraction, and snapshot capture rather than detection alone. Visible code defines structured scan results, exploitation states, evidence fields, confidence scoring, and error categories. It also begins an AES-ECB configuration-decryption routine using a hardcoded 128-bit key. The entry point parses individual targets, target files, and IP/CIDR ranges with port lists, deduplicates targets, invokes an asynchronous scanning engine, and generates reports. aiohttp and aiofiles support asynchronous networking and file handling, while Rich supplies console presentation. The supplied source is substantially truncated: the HTTP request construction, bypass parameters, credential parsing, snapshot retrieval, and report implementation cannot be inspected. Consequently, no exact camera API endpoint or complete exploit payload can be confirmed, and the advertised exploitation capabilities have not been execution-validated. No fixed attack destination, external exfiltration service, destructive command, or clear fake-exploit indicator appears in the visible code. README example addresses are illustrative targets, not hardcoded destinations. Reports are documented to contain plaintext credentials, and snapshot filenames also embed usernames and passwords, creating sensitive local artifacts. The repository URL is inferred from the README clone command; the analyzed Git reference and archive size were not supplied. size_bytes is therefore set to 0 as an unknown-value placeholder, not the sum of the listed file sizes.Th3Purge · Disclosed Sep 11, 2026 · python · network · webOperationalCVE-2017-7921The repository contains one standalone Python exploit, a README with installation and usage examples, and a requirements file listing requests, tqdm, and pycryptodome. CVE-2017-7921.py loads targets, builds all target/port combinations, and processes them concurrently with five workers by default. Each task checks TCP connectivity, requests the vulnerable configuration endpoint using a fixed authentication parameter, and attempts AES-ECB decryption followed by repeating XOR decoding and printable-string extraction. Credentials are selected using the position of an 'admin' string. Successful findings are printed and recorded in CSV; unreachable targets are omitted from CSV, while other outcomes are recorded as Not Vulnerable or Error. This is an active credential-disclosure exploit rather than a detection-only tool, although no execution results are provided. Important limitations include plaintext HTTP even on port 443, brittle credential extraction dependent on configuration string ordering, and broad exception handling that can obscure failures. Failed downloads may be labeled Not Vulnerable without conclusively establishing that the target is patched. No fixed external callback, exfiltration server, or command-execution payload appears in the code. The repository URL is taken from the README; the analyzed revision and archive size were not supplied, so size_bytes is an unknown-value placeholder of 0.m7arm4n · Disclosed Oct 14, 2026 · python · network · webOperationalcve-2017-7921-hikvision-pocThis standalone repository contains five files: the Python exploit hik_poc.py, README.md, requirements.txt, an MIT license, and .gitignore. There is no exploit-framework integration. The requirements file lists pycryptodome; the implementation also supports cryptography as a fallback AES provider. The README includes usage, remediation guidance, and a demonstration-image reference, but that image is absent from the supplied file inventory. The script targets a single operator-specified host over HTTP. It tries five Base64-encoded admin credential strings in the auth query parameter of the configuration-download endpoint. A successful status and sufficiently large body trigger offline AES-128-ECB decryption and a per-file XOR transformation. It then searches for null-terminated admin strings and reads a fixed password field at offset 0x20 from each match. Credentials are masked by default but can be revealed, and the decrypted configuration can be written to an operator-selected path. Snapshot retrieval is enabled by default, but execution reaches it only after configuration decryption and admin-record parsing succeed. Requests use the distinctive User-Agent 'hik-poc/1.0 (authorized self-assessment)'. No fixed external collection server or exfiltration destination is present. The code actively retrieves sensitive data, so it is more than a detection-only script. Its checks nevertheless have important limitations: HTTP status and response size do not conclusively establish configuration disclosure; the XOR key derivation mathematically forces the checked SWKH prefix, weakening the claimed decryption validation; and the fixed-layout admin parser can miss records or raise an indexing error on unexpected data. Download success may therefore indicate exposure even if later parsing fails. No execution results were supplied, and exact affected models or firmware versions are not identified. Repository URL, git reference, and archive size were not supplied; empty strings and zero represent unavailable metadata.intcost · Disclosed Nov 4, 2026 · python · network · webOperationalHikvision-CCTV-POCThe repository contains three files: the standalone Python exploit hikvision.py, a README describing usage and remediation, and an MIT LICENSE. No exploit framework is used. The script targets a single operator-specified Hikvision device over HTTP and attempts CVE-2017-7921 authentication bypass with five hardcoded query-string tokens. This is an exploitation tool rather than a detection-only script because it retrieves sensitive configuration data, extracts administrator passwords, and can download camera imagery. Configuration responses must have status 200 and exceed 32 KiB. The decoder truncates the response to an AES block boundary, decrypts it using a fixed AES-128-ECB key, then XORs each little-endian 32-bit word with a value derived from the first decrypted word. The parser searches for null-terminated 'admin' strings beyond offset 0x100 and reads a 16-byte password field at an offset of 0x20 from each match, advancing subsequent searches by 0x40 bytes. Credentials are masked by default but can be printed in full. Optional configuration output is written before administrator parsing; snapshot retrieval occurs only after administrator records are found. Requests use the distinctive User-Agent 'hik-poc/1.0 (authorized self-assessment)'. No fixed target address or external exfiltration destination appears in the code. Important reliability limitations: the XOR key derivation forces the first decoded word to equal 'SWKH', so the subsequent signature check does not independently validate successful decryption. HTTP status and response size alone also do not prove authentication bypass. The record parser assumes a specific firmware layout, can stop prematurely if the first 'admin' occurrence is at or below offset 0x100, and lacks a bounds check before accessing the byte after a match. Snapshot checking validates only the first two JPEG bytes. These issues can cause false confidence, missed records, or parsing errors; operational success is not established by static analysis. Exact affected firmware versions are not supplied. Repository URL, git reference, and archive size were not provided; empty strings and zero represent unavailable metadata. The listed file sizes total 18010 bytes, which is not a verified archive size.Mr-Ochobot · Disclosed Nov 5, 2026 · python · network · webOperationalhikvision-cve-2017-7921-labThe repository contains four files: a README, a standalone Python exploitation/management client, a Python Flask mock, and a target list. It is not part of an exploit framework. The client implements a fixed-query authentication bypass for CVE-2017-7921 and visibly supports unauthenticated snapshot retrieval, alongside authenticated Basic/Digest snapshot requests. CLI dispatch also exposes list, check, credentials, auth-check, and snapshot commands, with concurrency and optional image merging indicated by the code and documentation. The supplied client listing is truncated, so configuration decryption, credential parsing, and some command behavior cannot be fully audited. The mock reproduces acceptance of the magic auth parameter on user-list, snapshot, configuration, and device-information routes. It is a simulation, not evidence of the exact authentication implementation on real Hikvision firmware. Its configuration response contains dummy bytes and a plaintext sample credential rather than a genuinely encrypted device configuration. The user-list XML contains malformed closing tags, which may break XML parsing. Without Pillow, the mock returns a small PNG that fails the visible snapshot client's greater-than-100-byte acceptance check. The target list and README use port 5000, whereas the mock binds to loopback port 5001. The principal demonstrated impact is unauthenticated information disclosure, not command execution or direct device modification. The client accepts arbitrary target hosts despite the documentation's loopback-only testing narrative. No hardcoded external callback or exfiltration destination is visible. The mock's model and firmware strings are synthetic and do not establish affected-version coverage. No repository URL, revision, or archive size was supplied; size_bytes is represented as 0 for unavailable metadata.Bethelhem-Yirga · Disclosed Nov 6, 2026 · python · networkOperationalcve-2017-7921-golangThis repository is a Go-based exploit for the Hikvision CVE-2017-7921 vulnerability. The main exploit logic is in 'src/cve-2017-7921-golang/main.go', which provides two modes: direct exploitation of the vulnerability to extract admin credentials, and a brute-force mode to guess the admin password. The exploit works by sending a crafted HTTP GET request to the vulnerable device's '/System/configurationFile' endpoint, decrypting the response using a hardcoded AES key and XOR key, and parsing out credentials. The brute-force mode attempts to authenticate to '/PSIA/System/deviceinfo' using a password list. The repository includes supporting code for AES decryption (src/aesebc), IP/subnet handling (src/gip), and output management. The exploit is operational and can be used against multiple targets in parallel, as specified by the user. No fake or destructive code is present; the exploit is focused on credential extraction and brute-force password discovery for Hikvision devices vulnerable to CVE-2017-7921.MisakaMikato · Disclosed Nov 13, 2020 · go · networkPoCCVE-2017-7921-EXPLOITThis repository contains a Python proof-of-concept exploit for CVE-2017-7921, an improper authentication vulnerability affecting several Hikvision camera models and firmware versions. The main script, CVE-2017-7921.py, allows an attacker to scan one or more IP addresses for vulnerable Hikvision cameras, connect to them over HTTP, and exploit the authentication flaw to retrieve sensitive configuration files and user information. The script can also capture a snapshot image from the camera. Extracted configuration files are decrypted to recover admin credentials. The exploit is multi-threaded, supports scanning IP ranges, and outputs results to CSV and image files. The README provides background on the vulnerability, affected products, impact, and responsible disclosure. No hardcoded IPs or domains are present; the script targets user-supplied network addresses. The exploit is a functional PoC for information disclosure and credential extraction, not a weaponized or post-exploitation tool.K3ysTr0K3R · Disclosed Jul 24, 2023 · python · markdown · networkPoCCVE-2017-7921-EXPThis repository is a small standalone Python proof-of-concept exploit for CVE-2017-7921 affecting Hikvision devices. The repository contains one main exploit script (CVE_2017_7921_EXP.py), a README with vulnerability background and usage examples, and a requirements file listing requests, fire, and pycrypto dependencies. The exploit script accepts either a single target or a file of targets. For each target, it sends an HTTP GET request to /System/configurationFile with the query parameter auth=YWRtaW46MTEK, which is a base64-encoded admin credential string used to trigger the improper authentication flaw. If the device returns HTTP 200, the script decrypts the downloaded configuration using a hardcoded AES key (279977f62f6cfd2d91cd75b889ce0c9a), then applies a repeating XOR key (0x73,0x8B,0x55,0x44), extracts printable strings, searches for occurrences of the string "admin", and prints the target plus adjacent extracted values that likely include usernames/passwords or related credential fields. Key capabilities are unauthorized configuration download, local decryption/de-obfuscation of the backup, and credential extraction. This is not merely a detector: it performs post-exploitation style data recovery from the returned configuration file. It does not provide remote code execution by itself, but the included documentation notes that the same authentication bypass can be used against other HikCGI endpoints such as user enumeration and snapshot retrieval. Overall, this is an operational credential-access exploit for vulnerable Hikvision web interfaces over HTTP.blacksheepstudio · Disclosed Aug 1, 2023 · python · markdown · web · networkPoChikvision_probeThis repository provides Python scripts to identify and probe Hikvision devices for three known vulnerabilities: CVE-2017-7921 (authentication bypass), CVE-2021-36260 (command injection), and CVE-2022-28171 (blind SQL injection). The structure includes a 'cve' directory with individual scripts for each CVE, a device identifier script (hikvision_identifier.py), and a main probe script (hikvision_probe.py) that orchestrates the vulnerability checks. The scripts are designed to be run from the command line, taking lists of IPs or URLs via standard input. The main capabilities are network-based vulnerability detection and device identification. The endpoints targeted are specific to Hikvision device web interfaces and known vulnerable paths. No weaponized payloads are included; the scripts are proof-of-concept checkers for the listed vulnerabilities.aengussong · Disclosed Nov 26, 2024 · python · 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
HikvisionDs-2cd2032-I Firmwareoperating_system
HikvisionDs-2cd2112-I Firmwareoperating_system
HikvisionDs-2cd2132-I Firmwareoperating_system
HikvisionDs-2cd2212-I5 Firmwareoperating_system
HikvisionDs-2cd2232-I5 Firmwareoperating_system
HikvisionDs-2cd2312-I Firmwareoperating_system
HikvisionDs-2cd2332-I Firmwareoperating_system
HikvisionDs-2cd2412f-I(W) Firmwareoperating_system
HikvisionDs-2cd2432f-I(W) Firmwareoperating_system
HikvisionDs-2cd2512f-I(S) Firmwareoperating_system
HikvisionDs-2cd2532f-I(S) Firmwareoperating_system
HikvisionDs-2cd2612f-I(S) Firmwareoperating_system
HikvisionDs-2cd2632f-I(S) Firmwareoperating_system
HikvisionDs-2cd2712f-I(S) Firmwareoperating_system
HikvisionDs-2cd2732f-I(S) Firmwareoperating_system
HikvisionDs-2cd2t32-I3 Firmwareoperating_system
HikvisionDs-2cd2t32-I5 Firmwareoperating_system
HikvisionDs-2cd2t32-I8 Firmwareoperating_system
HikvisionDs-2cd4012f-(A) Firmwareoperating_system
HikvisionDs-2cd4012f-(P) Firmwareoperating_system
HikvisionDs-2cd4012f-(W) Firmwareoperating_system
HikvisionDs-2cd4012fwd-(A) Firmwareoperating_system
HikvisionDs-2cd4012fwd-(P) Firmwareoperating_system
HikvisionDs-2cd4012fwd-(W) Firmwareoperating_system
HikvisionDs-2cd4024f-(A) Firmwareoperating_system
HikvisionDs-2cd4024f-(P) Firmwareoperating_system
HikvisionDs-2cd4024f-(W) Firmwareoperating_system
HikvisionDs-2cd4032fwd-(A) Firmwareoperating_system
HikvisionDs-2cd4032fwd-(P) Firmwareoperating_system
HikvisionDs-2cd4032fwd-(W) Firmwareoperating_system
HikvisionDs-2cd4112f-I(Z) Firmwareoperating_system
HikvisionDs-2cd4112fwd-I(Z) Firmwareoperating_system
HikvisionDs-2cd4124f-I(Z) Firmwareoperating_system
HikvisionDs-2cd4132fwd-I(Z) Firmwareoperating_system
HikvisionDs-2cd4212f-I(H) Firmwareoperating_system
HikvisionDs-2cd4212f-I(S) Firmwareoperating_system
HikvisionDs-2cd4212f-I(Z) Firmwareoperating_system
HikvisionDs-2cd4212fwd-I(H) Firmwareoperating_system
HikvisionDs-2cd4212fwd-I(S) Firmwareoperating_system
HikvisionDs-2cd4212fwd-I(Z) Firmwareoperating_system
HikvisionDs-2cd4224f-I(H) Firmwareoperating_system
HikvisionDs-2cd4224f-I(S) Firmwareoperating_system
HikvisionDs-2cd4224f-I(Z) Firmwareoperating_system
HikvisionDs-2cd4232fwd-I(H) Firmwareoperating_system
HikvisionDs-2cd4232fwd-I(S) Firmwareoperating_system
HikvisionDs-2cd4232fwd-I(Z) Firmwareoperating_system
HikvisionDs-2cd4312f-I(H) Firmwareoperating_system
HikvisionDs-2cd4312f-I(S) Firmwareoperating_system
HikvisionDs-2cd4312f-I(Z) Firmwareoperating_system
HikvisionDs-2cd4324f-I(H) Firmwareoperating_system
HikvisionDs-2cd4324f-I(S) Firmwareoperating_system
HikvisionDs-2cd4324f-I(Z) Firmwareoperating_system
HikvisionDs-2cd4332fwd-I(H) Firmwareoperating_system
HikvisionDs-2cd4332fwd-I(S) Firmwareoperating_system
HikvisionDs-2cd4332fwd-I(Z) Firmwareoperating_system
HikvisionDs-2cd63xx Series Firmwareoperating_system
HikvisionDs-2cd6412fwd Firmwareoperating_system
HikvisionDs-2dfx Series Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2017-7921 exploited in the wild?
Yes. As of Nov 14, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 5, 2026.
Is there a public exploit for CVE-2017-7921?
Yes. Mallory tracks 23 public exploits or proofs of concept for CVE-2017-7921, the earliest disclosed Sep 23, 2017.
Is there a patch for CVE-2017-7921?
Install the model-specific firmware update addressing CVE-2017-7921, referenced by Hikvision advisory HSRC-201703-04. Updates are available for affected cameras sold through authorized distributors, but a universally applicable fixed firmware version is not specified.
What products are affected by CVE-2017-7921?
Hikvision Ds-2cd2032-I Firmware, Hikvision Ds-2cd2112-I Firmware, Hikvision Ds-2cd2132-I Firmware, Hikvision Ds-2cd2212-I5 Firmware, Hikvision Ds-2cd2232-I5 Firmware, and at least 53 more.
How severe is CVE-2017-7921?
CVE-2017-7921 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 14, 2026.
Activity feed

Recent activity

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

View more in app →
+29 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 evidence3Every report linking this CVE to a named adversary.
Associated malware5Malware families linked to this CVE, with evidence and IOCs.
Detection signatures5YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity24Community discussion across Reddit, Mastodon, and other social sources.