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.

Project Subscriptions

No data.

Advisories

No advisories yet.

Fixes

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.


Workaround

No workaround given by the vendor.

History

Thu, 03 Dec 2026 12:15:00 +0000

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

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-12-03T11:59:51.208Z

Reserved: 2026-10-14T07:29:50.859Z

Link: CVE-2026-110471

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-12-03T12:17:58.823

Modified: 2026-12-03T12:17:58.947

Link: CVE-2026-110471

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses