CVE-2026-126708
Description
A flaw was found in Eclipse Mosquitto. The return values of password hashing functions are not properly checked upon failure. When used with cryptographic modules that enforce minimum length requirements, such as OpenSSL operating under Federal Information Processing Standards (FIPS) mode, hash generation fails silently for passwords shorter than eight characters. Consequently, an attacker can bypass authentication because affected accounts may successfully match any short password.
Statement
This flaw allows authentication bypass when the Mosquitto broker runs against an OpenSSL FIPS provider that rejects password-based key derivation for passwords shorter than 8 bytes. Mosquitto does not check the return value of the PBKDF2 hash function, so two failing hashes compare equal, and any short password matches an account that was provisioned with a short password. Upstream reports this failure starting with OpenSSL 4.0; Red Hat's OpenSSL 3.5.9 builds carry an equivalent FIPS enforcement, a minimum password length of 8 bytes for PBKDF2 in the FIPS provider, so the condition is reachable on RHEL 9 and RHEL 10 based products when FIPS mode is enabled and password file authentication is used with short passwords. Satellite 6.16 on RHEL 8 is not affected because RHEL 8 ships OpenSSL 1.1.1, whose PKCS5_PBKDF2_HMAC implementation does not enforce a minimum password length.
Mitigation
To mitigate this vulnerability, ensure all Mosquitto user accounts are configured with passwords of at least eight characters. Re-generate any existing password hashes that are shorter than eight characters using `mosquitto_passwd` with eight or more characters.
Additionally, network exposure can be minimized by restricting broker access to localhost or trusted networks. To configure Mosquitto to listen only on localhost, modify `/etc/mosquitto/mosquitto.conf`:
listener 1883 127.0.0.1
To restrict network access using `firewalld`:
firewall-cmd --permanent --zone=public --remove-port=1883/tcp
firewall-cmd --reload
Warning: Modifying listener parameters requires a service restart via `systemctl restart mosquitto`, which will temporarily terminate active client sessions. Restricting network access or firewall ports will block clients outside permitted networks.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.4 | N/A | 9.8 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | High | N/A | Low |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | High | N/A | High |
| Integrity Impact | High | N/A | High |
| Availability Impact | None | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Access Control
Technical Impact: Bypass Protection Mechanism
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.