Severity: 
    CVSS 3.1: 4.8 (medium) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L

Affected versions:

- Apache Camel (org.apache.camel:camel-pqc) 4.12.0 before 4.18.6
- Apache Camel (org.apache.camel:camel-pqc) 4.19.0 before 4.22.2
- Apache Camel (org.apache.camel:camel-pqc) 4.23.0 before 4.24.0

Description:

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.

Solution:

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.

Credit:

Shashank Mohan Jain (finder)
Andrea Cosentino (remediation developer)

References:

https://camel.apache.org/security/CVE-2026-110471.html
https://issues.apache.org/jira/browse/CAMEL-25603
https://github.com/apache/camel/pull/27768
https://github.com/apache/camel/pull/27905
https://github.com/apache/camel/pull/27884
https://camel.apache.org/
https://www.cve.org/CVERecord?id=CVE-2026-110471

Reply via email to