Every CVE Search/ Get API key

CVE-2025-12790

Rubygem-mqtt: rubygem-mqtt hostname validation

7.4 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
None

Exploit likelihood

0.38%Up 0.3 points since Nov 7, 2025
90%50%10%1%

What each source reports

CVE List Score used 7.4

Rubygem-mqtt: rubygem-mqtt hostname validation

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.

Record
CVE-2025-12790
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-29
Updated
2026-11-02
EUVDEUVD-2025-38162 7.4

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.

Record
EUVD-2025-38162
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-9c5q-w6gr-fxcq 7.4

MQTT does not validate hostnames

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.

Record
GHSA-9c5q-w6gr-fxcq
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-29
Updated
2026-11-02
NVD 7.4

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.

Record
CVE-2025-12790
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-29
Updated
2026-11-02
OSV 7.4

Rubygem-mqtt: rubygem-mqtt hostname validation

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.

Record
CVE-2025-12790
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-29
Updated
2026-11-02
OSVGHSA-9c5q-w6gr-fxcq 7.4

MQTT does not validate hostnames

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.

Record
GHSA-9c5q-w6gr-fxcq
CVSS 3.1
7.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-29
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
mqtt
RubyGems
before 0.7.0
0.7.0
mqtt
RubyGems
before 0.7.0, plus listed versions
0.0.10.0.20.0.30.0.40.0.5
Show 10 moreShow less
0.0.70.0.80.0.90.1.00.2.00.3.00.3.10.4.00.5.00.6.0
0.7.0

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2025-12790 is a high vulnerability (CVSS 7.4) in Nicholas J Humfrey Ruby-mqtt, published November 6, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.38%, the 31st percentile. Fixed in mqtt 0.7.0.

References

MoveEnter Open