CVE DatabaseCVE-2022-40799
한국어 권고문 →
CVE-2022-407998.8/HIGHCISA KEVCWE-494CWE-494

D-Link DNR-322L NVR Remote Code Execution via Backup Config Data Integrity Failure (CVE-2022-40799)

⚡ Jump to Patch
Affected Vendors
d-link
Affected Components
dnr-322l
Published Date
2022-11-29
CVSS v3.1
8.8
HIGH
EPSS (30d)
33.7%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

D-Link DNR-322L Cloud Network Video Recorder firmware versions 2.60B15 and prior

Impact

An authenticated attacker can exploit the lack of data integrity verification in the backup configuration feature to execute arbitrary OS-level commands and fully compromise the device

Mitigation

Since this product is End-of-Life (EOL), immediately isolate the device from the external network and migrate to a supported alternative

Affected Products & Version Scope

D-Link DNR-322L Cloud Network Video Recorder: Firmware versions 2.60B15 and prior

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

This product (DNR-322L) has reached End-of-Life (EOL) status, and the vendor does not provide official security patches or firmware updates. The recommended course of action is to decommission the device immediately and replace it with a modern, actively supported NVR model.

2. Temporary Workaround & Hardening Configuration

If immediate replacement is not feasible, isolate the NVR from the public internet and restrict access to the web administration console using firewall rules. Below is an example of restricting access to a specific administrator IP (e.g., 192.168.1.100) using iptables:

bash
# Allow HTTP/HTTPS access only from the trusted administrator IP
iptables -A INPUT -p tcp -s 192.168.1.100 --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -s 192.168.1.100 --dport 443 -j ACCEPT

# Drop all other incoming traffic to the web management ports
iptables -A INPUT -p tcp --dport 80 -j DROP
iptables -A INPUT -p tcp --dport 443 -j DROP

3. Log Audit & IoC Verification Commands

Administrators can inspect web server access logs for suspicious requests targeting the backup configuration endpoints and check for unauthorized active shell processes:

bash
# 1. Search web access logs for backup/restore requests containing shell metacharacters
grep -Ei 'backup|config|restore' /var/log/httpd-access.log | grep -E '(\||\;|\`|\$)'

# 2. Audit running processes for suspicious shell executions
ps aux | grep -E 'sh|bash|ash' | grep -v grep
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Isolate the EOL D-Link DNR-322L device from the network immediately and replace it with a supported product.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2022-40799) is a data integrity failure (CWE-494) within the 'Backup Config' functionality of the D-Link DNR-322L NVR. The root cause lies in the application's failure to validate the integrity and structure of configuration files or parameters during backup and restoration processes, allowing arbitrary inputs to be processed by the underlying system.

2. Exploitation Mechanics & Attack Scenario

An authenticated attacker with access to the web management interface can upload a maliciously crafted configuration archive or send manipulated parameters to the backup/restore endpoint. When the device's internal scripts extract or parse these configuration files, embedded shell metacharacters (such as ';', '`', or '$()') are executed directly by the system shell without proper sanitization, leading to arbitrary command execution with root privileges.

3. Infrastructure & Business Impact

This vulnerability is actively exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. Successful exploitation allows complete takeover of the NVR, enabling attackers to intercept live video feeds, tamper with or delete recorded surveillance footage, and use the compromised device as a pivot point to launch lateral attacks inside the internal corporate network.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2022-40799)

FAQ

Q1. How critical is CVE-2022-40799 and is it actively exploited in the wild?

CVE-2022-40799 is rated CVSS 8.8 (HIGH) with a 30-day EPSS exploitation probability of 33.7%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2022-40799?

Primary impacted vendors include d-link across dnr-322l. Scope summary: D-Link DNR-322L Cloud Network Video Recorder: Firmware versions 2.60B15 and prior

Q3. What temporary mitigations or workarounds exist for CVE-2022-40799 before patching?

[Mitigation] Since this product is End-of-Life (EOL), immediately isolate the device from the external network and migrate to a supported alternative Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2022-40799

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (d-link)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2022-40799 D-Link DNR-322L NVR Remote Code Execution via Backup Config Data Integrity Failure (CVE-2022-40799) (CVSS 8.8) - Patch & Workaround | CVE Pulse