# CVE-2023-30466: Authentication Bypass Vulnerability in Milesight Network Video Recorder (NVR)

> A weak password reset mechanism in Milesight NVRs allows remote attackers to take over accounts via crafted HTTP requests.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 28 Apr 2023
- **Updated:** 30 Jan 2025
- **Also known as:** GHSA-jpv9-5pvw-6mc2

## What is CVE-2023-30466?

CVE-2023-30466 is a critical authentication bypass vulnerability in Milesight NVR MS-Nxxxx-xxC, published on 28 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

This vulnerability exists in Milesight 4K/H.265 Series NVR models (MS-Nxxxx-xxG, MS-Nxxxx-xxE, MS-Nxxxx-xxT, MS-Nxxxx-xxH and MS-Nxxxx-xxC), due to a weak password reset mechanism at the Milesight NVR web-based management interface. A remote attacker could exploit this vulnerability by sending a specially crafted http requests on the targeted device.

Successful exploitation of this vulnerability could allow remote attacker to account takeover on the targeted device.

Weakness: CWE-640 (Weak Password Recovery Mechanism for Forgotten Password)

## Which versions are affected by CVE-2023-30466?

It affects 21 products.


Products: Milesight Ms-N1004-Uc Firmware, Milesight Ms-N1004-Upc Firmware, Milesight Ms-N1008-Uc Firmware, Milesight Ms-N1008-Unc Firmware, Milesight Ms-N1008-Unpc Firmware, Milesight Ms-N1008-Upc Firmware, Milesight Ms-N5008-E Firmware, Milesight Ms-N5008-Pe Firmware, Milesight Ms-N5008-Uc Firmware, Milesight Ms-N5008-Upc Firmware, Milesight Ms-N5016-E Firmware, Milesight Ms-N5016-Pe Firmware, Milesight Ms-N7016-Uh Firmware, Milesight Ms-N7016-Uph Firmware, Milesight Ms-N7032-Uh Firmware, Milesight Ms-N7032-Uph Firmware, Milesight Ms-N7048-Uph Firmware, Milesight Ms-N8032-Uh Firmware, Milesight Ms-N8064-Uh Firmware, Milesight Ms-Nxxxx-Xxg Firmware and 1 more.

## How do I fix CVE-2023-30466?

No fix has been published for CVE-2023-30466 yet. Limit exposure of the affected software until one is available.

## Is CVE-2023-30466 being exploited?

There is no known exploitation of CVE-2023-30466 in the wild and no public exploit code.

## Other vulnerabilities in Milesight NVR MS-Nxxxx-xxC

- [CVE-2023-30467](https://insights.sbomify.com/CVE-2023-30467/): Improper Authorization Vulnerability in Milesight Network Video Recorder (NVR) (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-30466 and fix it if it is affected.

What it is: CVE-2023-30466 is a critical authentication bypass vulnerability in Milesight NVR MS-Nxxxx-xxC, published on 28 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-30466 in the wild and no public exploit code.

Affected product: Milesight NVR MS-Nxxxx-xxC. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-30466/ (Markdown: https://insights.sbomify.com/CVE-2023-30466/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-30466
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-30466
- OSV: https://osv.dev/vulnerability/CVE-2023-30466

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-30466/
Summaries are generated and may contain mistakes; the official description above is the record.
