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
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Apache Software Foundation | Apache Camel | unaffected |
|
No data.
No data.
No data available yet.
Vendor 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.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
No EPSS score available.
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | 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 | |
| Weaknesses | CWE-362 | |
| References |
| |
| Metrics |
cvssV3_1
|
No data.
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')