CVE-2026-84181
Apache Camel: Camel-Shiro Authentication Bypass via Skipped Credential Verification on Subject Reuse
Description
Improper Authentication vulnerability in Apache Camel Shiro component.
This issue affects Apache Camel: from 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1.
The Shiro security processor skipped credential verification when the subject already bound to the current thread carried the same principal as the incoming exchange. Because the thread that carries a Camel exchange is drawn from a pool and reused across exchanges, a subject left bound by an earlier authenticated exchange could satisfy the check for a later one that presented no valid credentials of its own. The password on the incoming exchange was, in that case, never verified. The condition depends on thread reuse and on the principal matching, which is why it is not reached on every request, but it requires nothing of the attacker beyond sending a request naming a principal that is in active use.
Upgrade to Apache Camel 4.23.0, which fixes the issue. Users on the 4.18.x LTS releases stream should upgrade to 4.18.5. Users on the 4.22.x LTS releases stream should upgrade to 4.22.1. The processor now verifies the presented credentials on every exchange rather than accepting a subject already bound to the thread. Setting alwaysReauthenticate=false restores the previous behaviour for deployments that depend on it. For deployments that cannot upgrade immediately, ensure the Shiro subject is cleared from the thread at the end of every exchange so that no subject can be inherited by a later one.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.camel » camel-shiropreliminary | >= 4.0.0, < 4.18.5>= 4.19.0, < 4.22.1 | 4.18.5, 4.22.1 |
Blast radius
10% of the dependent artifacts (4) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 241 |
| 2 hops | 682 |
| 3 hops | 124 |
| 4 hops | 107 |
| 5 hops | 306 |
| 6 hops | 9 |
Most used dependents
- org.apache.camel » camel-allcomponents16 usages
- org.apache.camel » camel-catalog-maven16 usages
- org.apache.camel » camel-jbang-core15 usages
- org.apache.camel » camel-catalog-lucene8 usages
- org.apache.camel » camel-route-parser7 usages
- org.apache.camel » camel-kamelet-main5 usages
- org.apache.camel » apache-camel5 usages
- io.kaoto.forage » integration-tests-common5 usages
- org.apache.camel.quarkus » camel-quarkus-shiro4 usages
- org.apache.camel » camel-catalog-console3 usages
- org.apache.camel » camel-report-maven-plugin3 usages
- org.apache.camel » camel-jbang-plugin-kubernetes3 usages
- org.apache.camel » camel-jbang-plugin-generate2 usages
- org.apache.camel.quarkus » camel-quarkus-shiro-deployment2 usages
- org.apache.camel » camel-jbang-plugin-test2 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | security/CVE-2026-84181.html | camel.apache.org |
| Advisory | CVE record CVE-2026-84181 | github.com |
| Advisory | NVD CVE-2026-84181 | nvd.nist.gov |
| Fix | apache/camel pull request #25822 | github.com |
| Fix | apache/camel pull request #25944 | github.com |
| Fix | apache/camel pull request #25946 | github.com |
| Report | jira/browse/CAMEL-24439 | issues.apache.org |
| Web | maven2 | repo.maven.apache.org |
