# CVE-2025-12790: Rubygem-mqtt: rubygem-mqtt hostname validation

- Severity: High 7.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2025-11-06T21:07:34.970Z
- Modified: 2026-10-18T21:10:00.120Z
- Also known as: GHSA-9c5q-w6gr-fxcq
- Weaknesses: CWE-29
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- ruby-mqtt: before 0.7.0
- rubygem-mqtt: no versions given
- satellite:el8/rubygem-mqtt: no versions given
- mqtt (RubyGems): before 0.7.0

## Every score

- redhat: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://access.redhat.com/security/cve/CVE-2025-12790> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2413004> (issue-tracking, web)
- <https://github.com/njh/ruby-mqtt/blob/main/NEWS.md#ruby-mqtt-version-070-2025-10-29> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-12790> (advisory)
- <http://github.com/njh/ruby-mqtt> (package)

## Sources

- CVE List: [CVE-2025-12790](https://www.cve.org/CVERecord?id=CVE-2025-12790), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-9c5q-w6gr-fxcq](https://github.com/advisories/GHSA-9c5q-w6gr-fxcq), CC-BY-4.0, modified 2025-11-07
- NVD: [CVE-2025-12790](https://nvd.nist.gov/vuln/detail/CVE-2025-12790), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-12790 · Whole record: https://cve.day/CVE-2025-12790.json · Rebuilt by cve.day 2026-11-25T22:59:07.312Z
