CVE-2026-120397: Apache Camel: Camel-Mina synchronous producer can return a previous request's reply to a later exchange when disconnectOnNoReply is false
Exposure of Data Element to Wrong Session vulnerability in Apache Camel Mina component.
This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.3, from 4.23.0 before 4.24.0.
A synchronous camel-mina producer (sync=true) keeps a single, uncorrelated response handler and latch per producer, and a sync producer is pooled and reused across exchanges. When the non-default disconnectOnNoReply=false is configured, a producer whose request has timed out keeps its session open and is reused by a later exchange, so a reply the remote peer delivers after the timeout can be accepted by that later exchange as its own successful result, returning one caller's reply to a different caller. The default configuration (disconnectOnNoReply=true) closes the timed-out session before reuse and is not affected.
Upgrade to Apache Camel 4.24.0, which fixes the issue. Users on the 4.22.x LTS release stream should upgrade to 4.22.3. Users on the 4.18.x LTS release stream should upgrade to 4.18.6.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Apache Camelto a version that resolves this vulnerability.Fixed in 4.24.0 - Upgrade
Upgrade
Apache Camelto a version that resolves this vulnerability.Fixed in 4.18.6 - Upgrade
Upgrade
Apache Camelto a version that resolves this vulnerability.Fixed in 4.22.3 - Configuration
Set disconnectOnNoReply to true to close timed-out sessions before reuse.
Apache Camel Mina disconnectOnNoReply = true
Event History
Frequently Asked Questions
Which deployments are affected?
Affected deployments use the Apache Camel Mina component with a synchronous producer (sync=true) and explicitly configure disconnectOnNoReply=false. The default setting, disconnectOnNoReply=true, is not affected because it closes a timed-out session before the producer is reused.
What conditions are required for a reply to be sent to the wrong caller?
A request must time out while its session remains open, after which the pooled synchronous producer is reused for a later exchange. If the remote peer then delivers the earlier request's delayed reply, Camel can accept it as the later exchange's successful response.
What should teams do if they cannot upgrade immediately?
Set or retain disconnectOnNoReply=true for synchronous Camel-Mina producers so timed-out sessions are closed before reuse. This prevents the affected reuse path described for disconnectOnNoReply=false.
Which fixed versions are available?
Upgrade to Apache Camel 4.24.0. For supported LTS streams, upgrade to 4.22.3 on 4.22.x or 4.18.6 on 4.18.x.