CVE-2025-53114
JSON

7.5high

CometD has acknowledgement extension out of memory

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.38% (higher than 34% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-cqgj-h8vf-4w59

Description

CometD is a scalable comet implementation for web messaging. In versions 5.0.0 through 5.0.22, 6.0.0 through 6.0.18, 7.0.0 through 7.0.18, and 8.0.0 through 8.0.8, bad clients that always send a fixed batch value when the server is using the acknowledgement extension may cause the unacknowledged message queue to grow indefinitely, eventually causing an `OutOfMemoryError`. Versions 5.0.23, 6.0.19, 7.0.19, and 8.0.9 patch the issue. As a workaround, disable the acknowledgement extension.

Affected

Product or packageVersionsReported by
cometd cometd>= 5.0.0, < 5.0.23, >= 6.0.0, < 6.0.19, >= 7.0.0, < 7.0.19, >= 8.0.0, < 8.0.9CVE List
org.cometd.java:cometd-java-server-common (Maven)from 5.0.0 before 5.0.23, from 6.0.0 before 6.0.19, from 7.0.0 before 7.0.19, from 8.0.0 before 8.0.9GitHub Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-400

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

CometD is a scalable comet implementation for web messaging. In versions 5.0.0 through 5.0.22, 6.0.0 through 6.0.18, 7.0.0 through 7.0.18, and 8.0.0 through 8.0.8, bad clients that always send a fixed batch value when the server is using the acknowledgement extension may cause the unacknowledged message queue to grow indefinitely, eventually causing an `OutOfMemoryError`. Versions 5.0.23, 6.0.19, 7.0.19, and 8.0.9 patch the issue. As a workaround, disable the acknowledgement extension.

GitHub Advisory Database
Impact

Bad clients that always send a fixed batch value while the server is using the acknowledgement extension can cause the unacknowledged message queue to grow indefinitely, eventually resulting in an OutOfMemoryError.

Such bad clients would always send:

{
  "channel": "/meta/connect",
  ...
  "ext": { "ack": 1 }
}

The server would never clear the unacknowledged message queue, and one bad client can cause a server outage.

Patches

5.0.x - https://github.com/cometd/cometd/pull/2168 6.0.x - https://github.com/cometd/cometd/pull/2169 8.0.x - https://github.com/cometd/cometd/pull/2118

Workarounds

Disable the acknowledgement extension.

Resources

https://github.com/cometd/cometd/discussions/2116 https://github.com/cometd/cometd/issues/2117

NVD (es)

CometD es una implementación comet escalable para mensajería web. En las versiones 5.0.0 a 5.0.22, 6.0.0 a 6.0.18, 7.0.0 a 7.0.18 y 8.0.0 a 8.0.8, los clientes defectuosos que siempre envían un valor de lote fijo cuando el servidor está utilizando la extensión de acuse de recibo pueden hacer que la cola de mensajes no reconocidos crezca indefinidamente, lo que eventualmente causa un 'OutOfMemoryError'. Las versiones 5.0.23, 6.0.19, 7.0.19 y 8.0.9 parchean el problema. Como solución alternativa, deshabilite la extensión de acuse de recibo.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-53114 changed 2026-06-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-cqgj-h8vf-4w59 changed 2026-06-10CC-BY-4.0
NVDCVE-2025-53114 changed 2026-10-12Public domain