← Security advisories
Apache Camel security advisory

CVE-2026-120397

Camel-Mina synchronous producer can return a previous request's reply to a later exchange when disconnectOnNoReply is false

Description

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.

Mitigation

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.

Credit

This issue was discovered by Shashank Mohan Jain

Notes

The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-26488 refers to the various commits that resolved the issue, and have more details.

References