Skip to main content

FlashMQ CVE-2025-62723

MEDIUM
Missing Release of Resource after Effective Lifetime (CWE-772)
2025-10-24 security-advisories@github.com
4.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to FlashMQ broker
  2. Delivery
    Create sessions subscribed for QoS messages
  3. Exploit
    Leave queued messages undelivered until session expiry
  4. Execution
    Accumulate unreleased memory
  5. Impact
    Exhaust broker resources

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup on lifecycle end
Exploitation Conditions

Requires authenticated access to the FlashMQ broker (CVSS PR:L); an anonymous attacker cannot trigger it. The attacker must be able to create sessions and have them collect QoS messages that are never delivered to a connected client, so the queued entries leak when the session eventually expires. Limiting factors: valid credentials are mandatory, the impact is gradual memory growth rather than an immediate crash (A:L), it affects FlashMQ versions prior to 1.23.2, and upgrading to 1.23.2 fully remediates it.

Impact

This is a genuinely low-priority issue whose signals are consistent rather than conflicting. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L, base 4.3 Medium) describes a network-reachable but authenticated (PR:L) weakness whose only impact is partial availability (A:L) - no confidentiality or integrity loss. This aligns with CWE-772 (Missing Release of Resource) and the commit evidence, which replaces std::shared_ptr prev/next links with std::weak_ptr to break a reference cycle in the QoS packet queue, confirming a memory leak rather than data exposure. EPSS is low at 0.34% (25th percentile), the CVE is NOT in CISA KEV, and no public exploit was identified, so exploitation risk is minimal and matches the modest technical impact. The one data-quality conflict is the input tag 'Information Disclosure,' which contradicts the CVSS C:N and the resource-leak root cause - this appears to be a mislabel and should not drive triage. Net: a real but minor availability/resource-exhaustion bug in an authenticated context, not an urgent threat.

Exploit ScenarioDerived

An authenticated user with broker access repeatedly creates sessions and subscribes so the broker queues QoS messages, then never connects a client to consume them and lets the sessions expire. Because the leaked queue entries are not released on session expiration, broker memory grows unbounded over time, eventually degrading or exhausting the server. No public exploit code was identified, and the attack requires valid credentials and sustained activity rather than a single request.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 08, 2026

Authenticated users of FlashMQ MQTT brokers running versions prior to 1.23.2 can cause a gradual memory leak by creating sessions that accumulate QoS messages which are never delivered to a connected client; the queued publish entries are not released even after the session eventually expires. The result is slow, cumulative memory growth that can degrade broker stability over time rather than an immediate crash (CVSS 4.3, A:L), and exploitation requires valid credentials (PR:L). No public exploit code has been identified at time of analysis and there is no confirmed active exploitation; EPSS is low at 0.34% (25th percentile), and the vendor has released a fix in 1.23.2.

RemediationAI

Upgrade FlashMQ to version 1.23.2, which fully remediates the issue; the fix is contained in commit e86c49360ef4387440c97f591770cdb9284b4ee9 and described in advisory GHSA-7mhp-22q4-r6vv. Vendor patch status is 'available from vendor'. Where upgrading immediately is not possible, compensating controls trade off functionality or operations: restrict broker accounts so only fully trusted, authenticated clients can create sessions and subscriptions, since exploitation requires credentials (PR:L); monitor broker process memory (RSS) for unbounded growth tied to expired sessions and schedule periodic broker restarts to reclaim leaked memory-restarts briefly interrupt all connected clients and do not fix the underlying leak; and reduce session expiry intervals or cap per-session queued QoS message volume where the broker supports such limits, accepting that aggressive expiry shortens offline-message retention for legitimate clients. None of these controls is a substitute for upgrading to 1.23.2.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FlashMQ is a high-performance MQTT broker/server designed for multi-CPU environments, and the flaw resides in its internal QoS publish queue management. The root cause is CWE-772 (Missing Release of Resource after Effective Lifetime): the QueuedPublish linked list in qospacketqueue.cpp/h used std::shared_ptr for its prev/next pointers, creating strong reference cycles that prevented queued QoS publish entries from being freed when a session expired without those messages ever being delivered to a client. The upstream fix (commit e86c49360ef4387440c97f591770cdb9284b4ee9) converts the prev/next members from std::shared_ptr to std::weak_ptr, deletes the copy/move assignment operators on QueuedPublish, and updates traversal sites in session.cpp and sessionsandsubscriptionsdb.cpp to use .lock() when dereferencing the weak references. This breaks the reference cycle so queue nodes are reclaimed on session expiry. The affected component is the MQTT session/QoS delivery subsystem; the CPE cpe:2.3:a:flashmq:flashmq:*:*:*:*:*:*:*:* denotes all FlashMQ versions prior to the patched release.

Know when Flashmq 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

Vendor (github) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 4.3 MEDIUM

Network-facing broker but valid credentials are required (PR:L); only a slow memory leak with no data exposure, so C:N/I:N and limited availability impact (A:L).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

DescriptionCVE.org

FlashMQ is a MQTT broker/server, designed for multi-CPU environments. Prior to version 1.23.2, any authenticated user can create sessions and have them collect QoS messages. When not sent to a client, these are then not released upon (eventual) session expiration. Version 1.23.2 fixes the issue.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
niche open-source MQTT broker, limited enterprise deployment footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:a:flashmq:flashmq:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy