Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-12790: Path Traversal: '..filename' in Nicholas J Humfrey ruby-mqtt

0
High
VulnerabilityCVE-2025-12790cvecve-2025-12790
Published: Thu Nov 06 2025 (11/06/2025, 21:07:34 UTC)
Source: CVE Database V5
Vendor/Project: Nicholas J Humfrey
Product: ruby-mqtt

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 22:17:39 UTC

Technical Analysis

CVE-2025-12790 identifies a critical security flaw in the ruby-mqtt library, a Ruby implementation of the MQTT protocol used widely in IoT and messaging applications. The vulnerability stems from the library's default behavior of not validating the hostname during TLS connections, which is a fundamental security check to ensure the server's identity. Without hostname validation, an attacker positioned on the network path can perform a Man-in-the-Middle (MITM) attack by intercepting and potentially altering MQTT messages between the client and broker. This undermines the confidentiality and integrity of the data transmitted. The vulnerability has a CVSS 3.1 base score of 7.4, indicating a high severity level. The attack vector is network-based, requiring no privileges or user interaction, but the attack complexity is high due to the need for network positioning. The scope remains unchanged as the vulnerability affects only the client side. No patches or fixes are currently linked, suggesting that users must manually implement hostname validation or upgrade when a fix becomes available. The lack of hostname validation is a critical oversight in the security design of the library, especially given MQTT's prevalent use in sensitive IoT environments where data integrity and confidentiality are paramount.

Potential Impact

The primary impact of this vulnerability is the potential for attackers to intercept and manipulate MQTT traffic, leading to unauthorized disclosure of sensitive information and data tampering. This can compromise the confidentiality and integrity of communications in IoT devices, industrial control systems, and messaging platforms relying on ruby-mqtt. Exploitation could allow attackers to inject malicious commands, disrupt device operations, or exfiltrate data, potentially causing operational disruptions and privacy breaches. Given MQTT's widespread adoption in critical infrastructure and consumer IoT, the vulnerability could have far-reaching consequences, including undermining trust in connected systems and causing financial and reputational damage to affected organizations. The absence of authentication requirements and user interaction lowers the barrier for exploitation, increasing the risk profile. However, the high attack complexity and requirement for network access somewhat limit the exploitability to attackers with network proximity or control.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
redhat
Date Reserved
2025-11-06T03:33:00.733Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 690d0f9108e329e0f8f19b56

Added to database: 11/6/2025, 9:13:53 PM

Last enriched: 2/26/2026, 10:17:39 PM

Last updated: 3/25/2026, 3:07:03 AM

Views: 101

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses