high7.4
CVE-2025-12790
MQTT does not validate hostnames
Impact
A flaw was found in Rubygem MQTT. By default, the package used to not have hostname validation, resulting in possible Man-in-the-Middle (MITM) attack.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rubygems | mqtt | < 0.7.0 | 0.7.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://access.redhat.com/security/cve/CVE-2025-12790
- https://bugzilla.redhat.com/show_bug.cgi?id=2413004
- https://github.com/njh/ruby-mqtt/blob/main/NEWS.md#ruby-mqtt-version-070-2025-10-29
- https://github.com/advisories/GHSA-9c5q-w6gr-fxcq
- https://nvd.nist.gov/vuln/detail/CVE-2025-12790