Threat Feed

CVE-2026-126708: Unchecked PKCS5_PBKDF2_HMAC() return can authenticate any password

Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-18

Description

In Eclipse Mosquitto versions 2.0.0 to 2.0.22 and 2.1.0 to 2.1.2, the return value of password hash functions for sha512-pbkdf2 and legacy sha512 were not checked. Starting with OpenSSL 4.0, sha512-pbkdf2 hashing will fail when using the FIPS provider for passwords shorter than 8 characters. This has the effect that newly created passwords would match against any other password with fewer than 8 characters.

Enclave's analysis

Mosquitto's password-check code never looked at the return value from the PBKDF2/SHA512 hashing calls. When the broker runs on OpenSSL 4.0 with the FIPS provider turned on, hashing a password under 8 characters fails silently, and the broken result then matches any password typed in for that account. That's a real auth bypass, but it only fires in a fairly specific, non-default crypto configuration. Upgrade to 2.0.23/2.1.3+ (2.1.4 if you use legacy sha512) and avoid short passwords regardless.

Fix

No fixed version in the CVE record yet. Follow the vendor advisory.

Affected versions

ProductVulnerableFixed in
Eclipse Mosquitto2.0.0 through 2.0.22Not listed
Eclipse Mosquitto2.1.0 through 2.1.2Not listed

Seen in 2 sources