CVE-2026-110471: Apache Camel: Camel-PQC: shared secret confusion between concurrent exchanges - one KeyGenerator instance, and for the hybrid operations one KeyAgreement instance, was shared across concurrent key encapsulation operations without synchronization
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') vulnerability in Apache Camel PQC component.
This issue affects Apache Camel: from 4.12.0 before 4.18.6, from 4.19.0 before 4.22.2, from 4.23.0 before 4.24.0.
The key encapsulation operations of the camel-pqc component, including the hybrid ones, and the PQC data format used a single javax.crypto.KeyGenerator instance, and the hybrid operations a single KeyAgreement instance, for every exchange without synchronizing access. A key encapsulation KeyGenerator is stateful and is not thread safe: it is initialised either to generate an encapsulation or to extract one, and then produces its result from that state. With concurrent exchanges sharing one instance, the initialisation of one operation and the generation of another interleave, so an operation can return the encapsulation and the secret key that belong to another exchange, which leaves data encrypted under a secret that another party holds, or it can fail. In the hybrid operations the classical key agreement keeps the combined secret unknown to the other party, so the outcome there is a failed exchange. The data format is affected in its default configuration, and so is a KeyGenerator registered as a bean, which is autowired into every pqc endpoint. Reaching it requires concurrent traffic through the same endpoint or data format, which is the ordinary condition for a Camel route under load.
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.2. Users on the 4.18.x LTS release stream should upgrade to 4.18.6. The fixed releases use a new KeyGenerator (and, for the hybrid operations, a new KeyAgreement) for every operation when Camel creates the instance itself, and a configured instance is used by one exchange at a time. For deployments that cannot upgrade immediately, restrict the affected route to a single concurrent consumer so that no two exchanges use the instance at once.
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.2 - Compensating control
Restrict the affected route to a single concurrent consumer so no two exchanges use the shared instance at once.
Event History
Frequently Asked Questions
Which deployments are exposed to the confidentiality impact?
Deployments using the camel-pqc component or its PQC data format in an affected Apache Camel release are exposed when concurrent exchanges perform key encapsulation operations. Non-hybrid key encapsulation can return an encapsulation and secret key belonging to another exchange, potentially leaving data encrypted under a secret held by another party.
How does the impact differ for hybrid operations?
For hybrid operations, the shared classical KeyAgreement instance can also be affected by concurrent access. The classical key agreement keeps the combined secret unknown to the other party, so the documented result is a failed exchange rather than disclosure of the combined secret.
How can I determine whether my deployment needs remediation?
Check whether Apache Camel is in the affected ranges: 4.12.0 through before 4.18.6, 4.19.0 through before 4.22.2, or 4.23.0 through before 4.24.0. Prioritize systems where the camel-pqc component or PQC data format handles concurrent exchanges.
Which versions contain the fix?
Upgrade to Apache Camel 4.18.6, 4.22.2, or 4.24.0, as applicable to the release line in use.