Loading advisory.
Loading advisory.
RabbitMQ Java client: TrustEverythingTrustManager used by default in useSslProtocol() enables MITM
com.rabbitmq.client.TrustEverythingTrustManager accepts ANY TLS certificate (including null chains) and is used as the default trust manager when calling ConnectionFactory.useSslProtocol() without arguments.
Published 2026-08-18 16:29 UTC · Modified 2026-09-10 03:51 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| com.rabbitmq:amqp-client | Maven | < 5.33.0 versions 1.3.0, 1.5.4, 1.5.5, 1.6.0, 1.7.2, 1.8.0, 1.8.1, 2.0.0, 2.1.0, 2.1.1, 2.2.0, 2.3.0, 2.3.1, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.6.1, 2.7.0, 2.7.1 and 130 more | 5.33.0 | No single command for Maven. Update to 5.33.0 in your build file. |
com.rabbitmq.client.TrustEverythingTrustManager accepts ANY TLS certificate (including null chains) and is used as the default trust manager when calling ConnectionFactory.useSslProtocol() without arguments. Combined with hostname verification being disabled by default, this enables trivial man-in-the-middle attacks.
com.rabbitmq.client.TrustEverythingTrustManager — accepts any certificate
com.rabbitmq.client.ConnectionFactory.useSslProtocol() — uses TrustEverythingTrustManager
Hostname verification disabled by default (enableHostnameVerification() must be called explicitly)
com.rabbitmq.client.ConnectionFactory.getPassword() — returns plaintext with no redaction
Default port 5672 (plaintext) with PLAIN SASL — credentials sent unencrypted
// TrustEverythingTrustManager accepts ANY certificate including null
TrustEverythingTrustManager tm = new TrustEverythingTrustManager();
tm.checkServerTrusted(null, "RSA"); // No exception — accepts null cert chain
tm.getAcceptedIssuers(); // Returns empty array — trusts all CAs
// ConnectionFactory defaults
ConnectionFactory factory = new ConnectionFactory();
factory.useSslProtocol(); // Uses TrustEverythingTrustManager internally
// enableHostnameVerification() NOT called by default
// Credential exposure
factory.setPassword("secret_password_123");
factory.getPassword(); // Returns "secret_password_123" — no redaction
// Default plaintext port
factory.getPort(); // 5672 (plaintext, not 5671/TLS)
// PLAIN SASL sends cleartext credentials
PlainMechanism pm = new PlainMechanism();
// handleChallenge() sends username+password in cleartextMITM: Attacker presents self-signed cert → TrustEverythingTrustManager accepts it → all RabbitMQ traffic intercepted
Credential theft: Default plaintext port (5672) + PLAIN SASL = credentials readable on network
DNS rebinding: No hostname verification → attacker DNS record → MITM without cert
Logging exposure: getPassword() returns plaintext → credentials in logs/stack traces
Deprecate TrustEverythingTrustManager — it should never be used in production
useSslProtocol() should use the JVM default trust store, not TrustEverything
Enable hostname verification by default
Redact password in getPassword() or remove the public getter
Warn when using PLAIN SASL without TLS
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.003 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |