CVE-2026-105968: Apache Camel: camel-netty-http matches security-constraint roles by substring instead of exact value
Improper Authorization vulnerability in Apache Camel Netty HTTP component.
This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.2.
In camel-netty-http, the roles declared in a security constraint were compared to the authenticated roles using substring matching rather than exact comparison. A role whose name merely contained a required role as a substring could therefore satisfy a constraint it should not, so a caller could reach a route whose authorization it was not entitled to pass. The fixed releases match security-constraint roles by exact value.
Users are recommended to upgrade to 4.18.6 for the 4.18.x LTS releases stream, to 4.22.2 for the 4.22.x LTS releases stream, or to 4.23.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.18.6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.22.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.23.0
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using the Apache Camel Netty HTTP component are affected if they run versions from 4.0.0 before 4.18.6 or from 4.19.0 before 4.22.2, and use security constraints with role-based authorization.
What does an attacker need to exploit this issue?
An attacker needs to authenticate with a role whose name contains the required role name as a substring. That role can incorrectly satisfy the security constraint and allow access to an otherwise unauthorized route.
Are all authenticated users able to bypass route authorization?
No. The authenticated role must contain the required role as a substring; the issue is not described as granting access to users with no relevant role value.
What versions should be deployed to remediate the issue?
Upgrade to 4.18.6 in the 4.18.x LTS stream, 4.22.2 in the 4.22.x LTS stream, or 4.23.0. These releases compare security-constraint roles by exact value.
How can I identify potentially affected authorization rules before upgrading?
Review camel-netty-http security constraints and compare each required role name with the authenticated role names in use. Any assigned role name that contains a required role name as a substring may have been accepted incorrectly.