CVE-2026-126708 PoC — Eclipse Mosquitto Short Password Hash Bypass (CVSS 9.1)

[](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-126708)
[](https://nvd.nist.gov/vuln/detail/CVE-2026-126708)
[](https://cwe.mitre.org/data/definitions/252.html)
[](https://www.python.org/)
[](https://github.com/cveForge)
## Metadata
| Field | Value |
|------------|----------------------------------------------------|
| CVE ID | CVE-2026-126708 |
| Product | Eclipse Mosquitto MQTT Broker |
| CVSS Score | 9.1 Critical |
| CWE | CWE-252 (Unchecked Return Value / Short Hash) |
| Affected | Mosquitto <= 2.0.19 (password_file authentication) |
| Fixed In | Mosquitto >= 2.0.20 |
## Description
Eclipse Mosquitto's `password_file` authentication performs a hash prefix comparison that is vulnerable to short-password bypass. When a supplied password generates a hash that shares a prefix with a stored hash entry, authentication is incorrectly granted. Empty or very short passwords can exploit this logic flaw to gain unauthorized access.
## Attack Flow
```mermaid
flowchart LR
A[Attacker] -->|MQTT CONNECT user=admin pw=X| B[Mosquitto Auth]
B -->|hash short pw|