CVE-2026-46585
JSON

7.5high

Apache Camel Lucene: The query control headers used non-Camel-prefixed names (QUERY, RETURN_LUCENE_DOCS) that bypass the HTTP header filter, allowing an HTTP client to inject the full-text search query

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.55% (higher than 47% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-566h-v38h-3xp3

Description

Improper Input Validation, Authorization Bypass Through User-Controlled Key vulnerability in Apache Camel Lucene Component. The camel-lucene producer reads the search phrase from an Exchange header (LuceneConstants.HEADER_QUERY) whose value was the plain string QUERY (and RETURN_LUCENE_DOCS for HEADER_RETURN_LUCENE_DOCS). Because these names do not start with the Camel / camel prefix, HttpHeaderFilterStrategy - which blocks only the Camel header namespace on the HTTP boundary - let them pass from an inbound HTTP request straight into the Exchange. In a route that exposes a Lucene query operation behind an HTTP consumer (for example platform-http), any HTTP client could therefore set the QUERY header and have its value executed against the full-text index, overriding the query the route intended to run. Depending on what is indexed, this allows reading documents the request should not have access to (for example a match-all query returns the entire index, or the route's intended per-user filter can be replaced), and expensive regular-expression queries can consume significant CPU. No credentials are required when the HTTP consumer is unauthenticated. This issue affects Apache Camel: from 4.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0. Users are recommended to upgrade to version 4.21.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.8. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3. After upgrading, routes that set the query via the raw header name must use CamelLuceneQuery (and CamelLuceneReturnLuceneDocs) instead of QUERY / RETURN_LUCENE_DOCS. For deployments that cannot upgrade immediately, strip the attacker-controllable headers before the Lucene producer and set the query from a trusted source (for example removeHeader('QUERY') and removeHeader('RETURN_LUCENE_DOCS'), then setHeader('QUERY', constant(...)) at the start of the route).

Affected

Product or packageVersionsReported by
org.apache.camel:camel-lucenefrom 4.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0CVE List
org.apache.camel:camel-lucene (Maven)from 4.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0GitHub Advisory Database
apache camelfrom 4.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0NVD

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-20CWE-639

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Improper Input Validation, Authorization Bypass Through User-Controlled Key vulnerability in Apache Camel Lucene Component. The camel-lucene producer reads the search phrase from an Exchange header (LuceneConstants.HEADER_QUERY) whose value was the plain string QUERY (and RETURN_LUCENE_DOCS for HEADER_RETURN_LUCENE_DOCS). Because these names do not start with the Camel / camel prefix, HttpHeaderFilterStrategy - which blocks only the Camel header namespace on the HTTP boundary - let them pass from an inbound HTTP request straight into the Exchange. In a route that exposes a Lucene query operation behind an HTTP consumer (for example platform-http), any HTTP client could therefore set the QUERY header and have its value executed against the full-text index, overriding the query the route intended to run. Depending on what is indexed, this allows reading documents the request should not have access to (for example a match-all query returns the entire index, or the route's intended per-user filter can be replaced), and expensive regular-expression queries can consume significant CPU. No credentials are required when the HTTP consumer is unauthenticated. This issue affects Apache Camel: from 4.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0. Users are recommended to upgrade to version 4.21.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.8. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3. After upgrading, routes that set the query via the raw header name must use CamelLuceneQuery (and CamelLuceneReturnLuceneDocs) instead of QUERY / RETURN_LUCENE_DOCS. For deployments that cannot upgrade immediately, strip the attacker-controllable headers before the Lucene producer and set the query from a trusted source (for example removeHeader('QUERY') and removeHeader('RETURN_LUCENE_DOCS'), then setHeader('QUERY', constant(...)) at the start of the route).

NVD (es)

Vulnerabilidad de validación de entrada incorrecta, omisión de autorización a través de clave controlada por el usuario en el componente Apache Camel Lucene. El productor camel-lucene lee la frase de búsqueda de una cabecera de Exchange (LuceneConstants.HEADER_QUERY) cuyo valor era la cadena simple QUERY (y RETURN_LUCENE_DOCS para HEADER_RETURN_LUCENE_DOCS). Debido a que estos nombres no comienzan con el prefijo Camel / camel, HttpHeaderFilterStrategy - que bloquea solo el espacio de nombres de cabecera Camel en el límite HTTP - los dejó pasar de una solicitud HTTP entrante directamente al Exchange. En una ruta que expone una operación de consulta Lucene detrás de un consumidor HTTP (por ejemplo, platform-http), cualquier cliente HTTP podría, por lo tanto, establecer la cabecera QUERY y hacer que su valor se ejecute contra el índice de texto completo, anulando la consulta que la ruta pretendía ejecutar. Dependiendo de lo que esté indexado, esto permite leer documentos a los que la solicitud no debería tener acceso (por ejemplo, una consulta de coincidencia total devuelve el índice completo, o el filtro por usuario previsto de la ruta puede ser reemplazado), y las consultas costosas de expresiones regulares pueden consumir una CPU significativa. No se requieren credenciales cuando el consumidor HTTP no está autenticado. Este problema afecta a Apache Camel: desde 4.0.0 antes de 4.14.8, desde 4.15.0 antes de 4.18.3, desde 4.19.0 antes de 4.21.0. Se recomienda a los usuarios actualizar a la versión 4.21.0, que corrige el problema. Si los usuarios están en la rama de versiones LTS 4.14.x, entonces se les sugiere actualizar a 4.14.8. Si los usuarios están en la rama de versiones 4.18.x, entonces se les sugiere actualizar a 4.18.3. Después de actualizar, las rutas que establecen la consulta a través del nombre de cabecera sin procesar deben usar CamelLuceneQuery (y CamelLuceneReturnLuceneDocs) en lugar de QUERY / RETURN_LUCENE_DOCS. Para implementaciones que no pueden actualizar inmediatamente, elimine las cabeceras controlables por el atacante antes del productor Lucene y establezca la consulta desde una fuente confiable (por ejemplo, removeHeader(’QUERY’) y removeHeader(’RETURN_LUCENE_DOCS’), luego setHeader(’QUERY’, constant(...)) al inicio de la ruta).

References

https://camel.apache.org/security/CVE-2026-46585.htmlvendor-advisory, web
http://www.openwall.com/lists/oss-security/2026/07/05/12mailing-list, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2026-46585advisory
https://github.com/apache/camel/pull/23208web
https://github.com/apache/camel/pull/23220web
https://github.com/apache/camel/pull/23232web
https://github.com/apache/camel/commit/16a70d48145605c1a35e909d308bf9e5e2d3e7d8web
https://github.com/apache/camel/commit/349f197115d60e0c180cf9836e08f4aeb5a87872web
https://github.com/apache/camel/commit/878ea07996caff19ed227984bf6cb6cf01983422web
https://github.com/apache/camelpackage
https://github.com/apache/camel/releases/tag/camel-4.14.8web
https://github.com/apache/camel/releases/tag/camel-4.18.3web

Sources

SourceRecordLicence
CVE ListCVE-2026-46585 changed 2026-07-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-566h-v38h-3xp3 changed 2026-08-28CC-BY-4.0
NVDCVE-2026-46585 changed 2026-10-25Public domain