Cyber Resilience

CVE-2024-39948

Memory Safety in Dahuasecurity Nvr4104-4Ks2\/L Firmware ≤ 4.003.0000000.1.r.240515

Published
31 July 2024
Modified
30 September 2025
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.0056 44th percentile
Risk Priority 58 floored blend · peak EPSS

Summary

CVE-2024-39948 is a high-severity NULL Pointer Dereference (CWE-476) vulnerability in Dahuasecurity Nvr4104-4Ks2\/L Firmware. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 44th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

A vulnerability has been found in Dahua products. Attackers can send carefully crafted data packets to the interface with vulnerabilities, causing the device to crash.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
T1036.001 Invalid Code Signature Stealth
Adversaries may attempt to mimic features of valid code signatures to increase the chance of deceiving a user, analyst, or tool.
T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-0359Shared CWE-20, CWE-476
CVE-2026-46334Shared CWE-20, CWE-476
CVE-2024-3385Shared CWE-20, CWE-476
CVE-2023-25947Shared CWE-20, CWE-476
CVE-2025-58364Shared CWE-20, CWE-476
CVE-2025-59537Shared CWE-20, CWE-476
CVE-2025-9014Shared CWE-20, CWE-476
CVE-2023-24465Shared CWE-20, CWE-476
CVE-2023-0779Shared CWE-20, CWE-476
CVE-2026-21506Shared CWE-20, CWE-476

Affected Assets

dahuasecurity
nvr4104-4ks2\/l firmware
≤ 4.003.0000000.1.r.240515
dahuasecurity
nvr4108-4ks2\/l firmware
4.003.0000000.1.r.240515
dahuasecurity
nvr4116-4ks2\/l firmware
≤ 4.003.0000000.1.r.240515
dahuasecurity
nvr4104-p-4ks2\/l firmware
≤ 4.003.0000000.1.r.240515
dahuasecurity
nvr4108-p-4ks2\/l firmware
≤ 4.003.0000000.1.r.240515
dahuasecurity
nvr4108-8p-4ks2\/l firmware
≤ 4.003.0000000.1.r.240515
dahuasecurity
nvr4116-8p-4ks2\/l firmware
≤ 4.003.0000000.1.r.240515
dahuasecurity
nvr4104hs-4ks2\/l firmware
≤ 4.003.0000000.1.r.240515
dahuasecurity
nvr4108hs-4ks2\/l firmware
≤ 4.003.0000000.1.r.240515
dahuasecurity
nvr4104hs-p-4ks2\/l firmware
≤ 4.003.0000000.1.r.240515
+46 more product configuration(s) — see NVD for full list

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)
  • 6 hardening rules · 3 OS baselines
Validate
Prove the fix (OWASP ASVS)

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation (including static analysis) directly finds null-dereference bugs before deployment.

SI-10 directly requires validity checks on information inputs, structurally preventing improper or missing validation.

Documented development standards and tools can enforce null-safety rules and safe pointer usage.

Engineering principles can mandate defensive coding such as explicit null checks before dereference.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices (static analysis, code review, safe coding standards) directly prevent NULL dereference bugs during development.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing can detect NULL dereference defects before release.

prevents

Secure SDLC mandates defensive coding practices that can prevent NULL dereferences.

prevents

Application security requirements can specify input validation and pointer-safety rules.

prevents

Secure architecture principles encourage defensive design that avoids unsafe pointer use.

prevents

Secure coding standards directly require NULL-pointer checks and safe dereference patterns.

none

Regular automated validation of system software and data content, combined with scanning of all inbound files, enforces input validation at the boundary before untrusted content is processed.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over `controls_xwalks` (authoritative rows only; rows rated `none` are excluded).

RHEL 8 (1 rule)
  • V-230265 RHEL 8 must prevent the installation of software, patches, service packs, device drivers, or operating system components of local packages without verification they have been digitally signed using a certificate that is issued by a Certificate Authority (CA) that is recognized and approved by the organization. prevents CWE-20

References