CVE-2025-12790: Nicholas J Humfrey ruby-mqtt · Path Traversal: '..filename
Affects Nicholas J Humfrey ruby-mqttSource CVE Database V5
Not known to be exploited · CVSS 7.4 High.
Data as of 26 Oct 2026, 15:59 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
RubyGemsmqttpkg:gem/mqttOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Organizations should immediately audit their use of the ruby-mqtt library and verify if hostname validation is enabled or can be enforced. If the library version in use lacks this feature, consider upgrading to a patched version once available or applying custom patches to enforce strict hostname verification during TLS handshakes. Network-level mitigations include deploying MQTT brokers and clients within secure, segmented networks to reduce exposure to MITM attacks. Employing VPNs or secure tunnels for MQTT traffic can add an additional layer of protection. Monitoring network traffic for anomalies and implementing intrusion detection systems focused on MQTT protocol anomalies can help detect exploitation attempts. Developers should follow secure coding practices by validating all TLS parameters and avoid disabling certificate checks. Finally, maintain awareness of updates from the ruby-mqtt project and apply security patches promptly when released.
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.