← Security advisories
Apache Camel security advisory

CVE-2026-105968

Camel-Netty-HTTP: security-constraint roles are matched by substring instead of exact value, allowing an authorization bypass

Description

In camel-netty-http, the roles declared in a security constraint were compared to the authenticated roles using substring matching rather than exact comparison. An authenticated user whose role name was a substring of a required role (for example a user holding "admin" against a constraint requiring "superadmin") 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.

Mitigation

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.

Credit

This issue was discovered by Yuval Saggie and Mor Weinberger (powered by Echo Frontier)

Notes

The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-25376 refers to the various commits that resolved the issue, and have more details.

References