CVE-2026-94386
Awaiting Analysis Awaiting Analysis - Queue

Cache Poisoning in Apache Camel OAuth Component

Vulnerability report for CVE-2026-94386, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-26

Last updated on: 2026-10-26

Assigner: Apache Software Foundation

Description

Use of Cache Containing Sensitive Information vulnerability in Apache Camel Oauth component. This issue affects Apache Camel: from 4.19.0 before 4.22.2. OAuthClientCredentialsTokenResolver obtains OAuth 2.0 bearer tokens through the client credentials grant on behalf of the components that authenticate their outbound calls with a named OAuth profile, such as camel-openai, camel-langchain4j-agent, camel-huggingface, camel-docling, camel-a2a, camel-spring-ai-chat and the IBM watsonx components, and of applications that call the OAuthClientAuthenticationFactory SPI directly. It kept the tokens it obtained in a static cache shared by every resolver instance and every CamelContext in the JVM, and keyed that cache on the token endpoint and the client ID only, although the token request also carries the client secret and the requested scope. Two profiles that share a token endpoint and a client ID but request different scopes, or authenticate with different client secrets, therefore mapped to the same cache entry: the profile that resolved a token first populated the entry, and the other profile was then handed that token, with no token request made under its own configuration, for as long as the token remained valid. Token caching is enabled by default, and pointing several profiles at one identity provider client is an ordinary use of the profile support rather than an opt-in to an insecure setting. The outcome is an outbound request that carries a token issued for another profile's scope, which can grant broader authority than the calling profile was configured for, or reach a service the token was not issued for; with identity providers that derive a token's audience from the requested scope, a different scope can mean a token for a different service altogether. A profile configured with a different client secret was likewise served the token obtained with the other secret, without authenticating with its own. The profiles are configured by the deployment, which is trusted, so no untrusted input reaches the cache: the party that gains is the service that receives a token it was not meant to receive, which, if hostile or compromised, can replay that token within its scope. Reaching the issue requires a deployment that defines more than one profile sharing a token endpoint and client ID while differing in scope or client secret. Users are recommended to upgrade to version 4.23.0, which fixes the issue. If users are on the 4.22.x releases stream, then they are suggested to upgrade to 4.22.2. The 4.19.x to 4.21.x release lines reached end of life before this issue was resolved and will not receive a fix, so deployments on them must move to a supported release. For deployments that cannot upgrade immediately, disable token caching on every OAuth profile that shares a token endpoint and client ID with another profile, by setting camel.oauth.NAME.cache-tokens=false for a named profile or camel.oauth.cache-tokens=false for the default one, so that each resolution requests a token with that profile’s own scope and client secret, at the cost of a token request on every resolution. Alternatively, register a separate client at the identity provider for each profile that needs a different scope or client secret, so that no two such profiles share a client ID.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-26
Last Modified
2026-10-26
Generated
2026-10-26
AI Q&A
2026-10-26
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
Apache Software Foundation Apache Camel 4.19.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-524 The code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves Apache Camel's OAuth component improperly caching sensitive OAuth 2.0 bearer tokens. The cache was incorrectly keyed only on the token endpoint and client ID, ignoring the client secret and requested scope. This allowed different profiles with the same client ID but different scopes or secrets to share tokens, potentially granting broader access than intended.

Detection Guidance

Detecting this vulnerability requires checking Apache Camel OAuth component configurations and cache behavior. Review logs for OAuth token reuse across different profiles. Inspect JVM cache entries for tokens shared unintentionally. Use commands like 'grep -r "camel.oauth" /path/to/config' to find OAuth profile settings. Check for multiple profiles sharing the same token endpoint and client ID but with different scopes or secrets.

Impact Analysis

An attacker could exploit this to gain unauthorized access to services or data by reusing tokens issued for broader scopes or different services. For example, a token obtained for one profile's scope might be reused by another profile, allowing access beyond its intended permissions.

Mitigation Strategies

Upgrade Apache Camel to version 4.23.0 or 4.22.2. If upgrading is not possible, disable token caching for affected profiles by setting 'camel.oauth.NAME.cache-tokens=false' or 'camel.oauth.cache-tokens=false'. Alternatively, register separate clients at the identity provider for each profile with different scopes or secrets.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-94386. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart