Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOperator misconfigures custom auth class (fails to load)
-
DeliveryBroker silently starts fail-open (AcceptAll/PermitAll)
-
ExploitAttacker connects anonymously over MQTT
-
ExecutionSubscribe/publish to all topics
-
ImpactRead sensitive data and inject/tamper messages
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Fail-secure design
|
| Exploitation Conditions | Not a directly attacker-triggered flaw: exploitation requires that the operator has configured a custom authenticator_class or authorizator_class in Moquette AND that class fails to load at startup (misspelled class name, missing dependency, constructor failure, or classpath problem). Under that condition Server.initializeAuthenticator/initializeAuthorizatorPolicy fall back to AcceptAllAuthenticator/PermitAllAuthorizatorPolicy, leaving the broker with authentication/authorization disabled while the operator believes controls are active. Once that state exists, exploitation is remote and unauthenticated (MQTT is anonymous by default) against any exposed listener. The limiting factor is that a broker with no custom auth configured (already permissive by design) or one whose auth class loads correctly is unaffected - the risk is confined to deployments that both intend to enforce auth and have a broken class-load. |
| Impact | The input CVSS 4.0 vector (9.3, AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N) scores this as a critical remote-unauthenticated confidentiality+integrity break, and that end-state is accurate: once the fail-open path triggers, any anonymous MQTT client reads and writes all topics. However, the score overstates real-world exploitability because the flaw (CWE-636, failure to fail securely) is NOT attacker-triggered - it is a latent condition that only manifests when the operator has actually configured a custom authenticator_class/authorizator_class AND that class fails to load (misspelled name, missing dependency, constructor exception, or classpath problem). CVSS 4.0 has no clean way to encode this operator-misconfiguration precondition, so AC:L/PR:N reads as more universally exploitable than it is. There is no EPSS score, no CISA KEV listing, and no networked/weaponized exploit - the advisory ships only source-only, no-network JDK-17 PoCs (part of a broader Moquette audit bundle). Signals are therefore consistent in one direction: high technical impact, but no evidence of active exploitation and a meaningful environmental gate. Treat as a high-priority hardening/patch item for anyone running Moquette with custom auth classes, but not an emergency mass-exploitation scenario. Note the vendor VA:N (no availability impact) is correct for THIS CVE, though the same advisory documents separate unauthenticated DoS bugs not covered here. |
| Exploit ScenarioDerived | An operator deploys Moquette with a custom authenticator_class, but a packaging change drops the dependency (or the class name is misspelled), so at startup the broker silently falls back to AcceptAllAuthenticator/PermitAllAuthorizatorPolicy and comes up with authentication disabled. A remote attacker who connects anonymously - the default MQTT behavior - then subscribes to and publishes on every topic. Only source-only PoCs exist; no network-ready public exploit is published. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 23, 2026
Moquette MQTT brokers prior to 0.18.1 can start up with authentication and authorization silently disabled whenever a configured authenticator_class or authorizator_class fails to load, so any remote client - including anonymous MQTT clients, since the broker is anonymous by default - can read and write every topic the broker handles while the operator believes access controls are active. The flaw is not directly attacker-triggered: it requires a deployment that both intends to enforce auth and has a broken class-load (misspelled class name, missing dependency, constructor failure, or classpath problem), which is why the independent assessment rates it CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N even though the end-state is a full confidentiality and integrity break; the vendor's CVSS 4.0 vector is 9.3. No public exploit for this fail-open condition was identified at time of analysis, and no CISA KEV entry is present; version 0.18.1 fixes the issue by aborting startup instead of falling back to permissive defaults.
RemediationAI
Upgrade to Moquette 0.18.1 - vendor-released patch: 0.18.1 - which is the fix for this issue; it was introduced by PR #967 (commit 14a2f4fd280c8f6a791600c306cbccecb7c67007) and makes Server.initializeAuthenticator and Server.initializeAuthorizatorPolicy throw IllegalArgumentException and reject startup rather than silently installing AcceptAll/PermitAll, with regression test ServerAuthConfigFailClosedTest confirming both the abort behavior and that the intentional no-class default still starts. Full details are in https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq; related upstream fixes in the same advisory cluster are PR #957 and PR #958. If immediate upgrade is not possible, use these compensating controls: (1) treat the broker's WARN log for a class that failed to load as a security event - alert on it and add a post-deployment smoke test that connects with bogus credentials and asserts rejection, since a passed test is the only way to distinguish a working ACL from a failed-open one; (2) verify the fully qualified class name and that the auth plugin and its transitive dependencies are present on the broker classpath, re-checking after every configuration or dependency change; (3) until fail-closed behavior is verified, restrict the MQTT listeners (default 1883/8883 and the WebSocket port) to trusted networks through firewall rules or bind-address configuration - trade-off: this blocks legitimate remote publishers and subscribers; (4) avoid treating client-side settings as a control, since MQTT allows anonymous connects by default and the permissive fallback cannot be corrected server-side without the 0.18.1 code. Note that patching to 0.18.1 also addresses the related pattern-ACL wildcard injection, Will-message authorization bypass, and durable-store key-collision issues reported in the same advisory, so a single upgrade to 0.18.1 plus review of pattern ACL rules and Will-message handling is the recommended path.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-636 (Not Failing Securely, i.e. a fail-open default) in Moquette's Java reflection-based policy initialization. In broker/src/main/java/io/moquette/broker/Server.java around lines 483-531, Server.initializeAuthenticator and Server.initializeAuthorizatorPolicy load the class named by authenticator_class/authorizator_class; when instantiation throws, the code path is indistinguishable from the 'no class configured' case and returns AcceptAllAuthenticator or PermitAllAuthorizatorPolicy. MQTT listeners are anonymous by default, so authentication and ACL policies are the only barrier between an untrusted client and the broker's full topic namespace. Affected code is identified by CPE cpe:2.3:a:moquette-io:moquette:*:*:*:*:*:*:*:* and Maven coordinates io.moquette:moquette-broker (vulnerable <= 0.18.0). This CVE sits inside a wider GHSA-5f42-97gr-vfhq cluster of issues that share the same 'untrusted anonymous MQTT client' trust model: pattern-ACL wildcard injection via an unvalidated clientId substituted into %c/%u rules, a SessionEventLoop crash that wedges co-located clients, a Topic.match NPE on malformed ACL filters, a Last-Will authorization bypass, and durable-store key collisions. As the advisory notes, this is a memory-safe JVM broker, so the ceiling is authorization bypass, denial of service, and cross-session integrity - not remote code execution.
Know when Moquette gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
AC:H because exploitation depends on a specific operator misconfiguration (auth class configured but failing to load); once present, any remote anonymous client gets full topic read/write, so C:H/I:H, no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Moquette is a lightweight Java MQTT broker. Prior to 0.18.1, when a configured authenticator or authorizator class cannot be loaded, Server.initializeAuthenticator and Server.initializeAuthorizatorPolicy treat the failure as though no custom class was configured and fall back to AcceptAllAuthenticator or PermitAllAuthorizatorPolicy. A misspelled class name, missing dependency, constructor failure, or classpath problem can therefore start the broker with authentication or authorization disabled even though the operator configured those controls. This issue is fixed in version 0.18.1.
Articles & Coverage 1
Technical POC Analysis
CWE-636 - Not Failing Securely, specifically a fail-open initialization path.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Moquette, an open-source MQTT broker commonly embedded in IoT and industrial messaging pipelines, can run with all access controls silently switched off, allowing any remote or anonymous client to read and write every topic the broker manages while operators believe authentication is enforcing. Because MQTT brokers typically sit at the center of device telemetry, command-and-control, and sensor data flows, a fail-open broker effectively hands unauthenticated parties both read access to sensitive operational data and the ability to inject or alter commands. The vulnerability is not remotely triggered by an attacker but surfaces in any deployment that intends to enforce access control and has a misconfigured or broken authenticator or authorizer class, meaning the organizations most affected are those with existing authentication configurations they believe are working.
Vendor-released patch: 0.18.1. Until that upgrade is applied, interim mitigations are: verify in startup logs and runtime behavior that the configured authenticator_class and authorizator_class actually loaded, and treat any load failure as a stop-ship condition; explicitly disable anonymous access on all MQTT listeners and confirm default-deny topic ACLs; restrict network reachability to the broker via firewall rules, TLS client certificates, or a gateway so only trusted endpoints can connect; and add alerting on broker startup that flags any state in which authentication is not active.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Moquette MQTT brokers running versions prior to 0.18.1 fail to enforce topic write ACLs on Last Will and Testament messa
Durable MQTT sessions in Moquette 0.18.0 and earlier can corrupt each other's persisted queues when a client connects wi
Remote, pre-authentication denial of service in the Moquette MQTT broker (moquette-io moquette-broker) through 0.18.0 al
Denial of service in the Moquette lightweight Java MQTT broker prior to 0.18.1: a single remote, unauthenticated MQTT cl
Unbounded per-session message queuing in Moquette MQTT Broker before 0.18.1 permits remote unauthenticated clients to ex
Remote unauthenticated clients can crash a Moquette MQTT broker running 0.18.0 or earlier by publishing or subscribing w
Unauthorized message injection in the Moquette lightweight Java MQTT broker affects all releases prior to 0.18.1: PostOf
EUVD-2026-85418
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB