CVE-2026-46591
JSON

8.2high

Apache Camel: Camel-Neo4j: JSON property names from the CamelNeo4jMatchProperties header are interpolated into the Cypher WHERE clause without validation, allowing Cypher injection (incomplete remediation of CVE-2025-66169)

Severity
8.2high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.45% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-q86m-qjpm-vqcw

Description

Improper Neutralization of Special Elements in Data Query Logic vulnerability in Apache Camel Neo4J component. The camel-neo4j producer builds the Cypher WHERE clause for its match/retrieve and delete operations from the CamelNeo4jMatchProperties map. CVE-2025-66169 addressed Cypher injection through the property values by binding them as query parameters ($paramN), but the property names (the JSON keys of that map) were still concatenated into the query string verbatim in Neo4jProducer.retrieveNodes() and deleteNode(). A property name containing Cypher syntax therefore alters the structure of the executed query. Where a route maps untrusted input into the CamelNeo4jMatchProperties map - for example by passing a request body as the match map, or from a consumer that does not filter inbound Camel* headers - an attacker who controls the JSON key names can inject arbitrary Cypher and read, modify or delete any node or relationship in the Neo4j database. The CamelNeo4jMatchProperties header is itself Camel-prefixed and is filtered by the HTTP header-filter strategy, so a plain HTTP client cannot set it directly; the issue is reachable through routes that deliberately or inadvertently carry untrusted data into that header. This issue affects Apache Camel: from 4.10.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. For deployments that cannot upgrade immediately, do not populate the CamelNeo4jMatchProperties map from untrusted input: validate or allow-list the property names (for example against ^[A-Za-z_][A-Za-z0-9_]*$) before the Neo4j producer, and ensure that any consumer feeding such a route filters inbound Camel* / camel* headers so the match header cannot be supplied by an external sender.

Affected

Product or packageVersionsReported by
org.apache.camel:camel-neo4jfrom 4.10.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-neo4j (Maven)from 4.10.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.10.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0NVD

All scores

CISA-ADP8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

Classification

CWE-943

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

What each source says

CVE List

Improper Neutralization of Special Elements in Data Query Logic vulnerability in Apache Camel Neo4J component. The camel-neo4j producer builds the Cypher WHERE clause for its match/retrieve and delete operations from the CamelNeo4jMatchProperties map. CVE-2025-66169 addressed Cypher injection through the property values by binding them as query parameters ($paramN), but the property names (the JSON keys of that map) were still concatenated into the query string verbatim in Neo4jProducer.retrieveNodes() and deleteNode(). A property name containing Cypher syntax therefore alters the structure of the executed query. Where a route maps untrusted input into the CamelNeo4jMatchProperties map - for example by passing a request body as the match map, or from a consumer that does not filter inbound Camel* headers - an attacker who controls the JSON key names can inject arbitrary Cypher and read, modify or delete any node or relationship in the Neo4j database. The CamelNeo4jMatchProperties header is itself Camel-prefixed and is filtered by the HTTP header-filter strategy, so a plain HTTP client cannot set it directly; the issue is reachable through routes that deliberately or inadvertently carry untrusted data into that header. This issue affects Apache Camel: from 4.10.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. For deployments that cannot upgrade immediately, do not populate the CamelNeo4jMatchProperties map from untrusted input: validate or allow-list the property names (for example against ^[A-Za-z_][A-Za-z0-9_]*$) before the Neo4j producer, and ensure that any consumer feeding such a route filters inbound Camel* / camel* headers so the match header cannot be supplied by an external sender.

NVD (es)

Vulnerabilidad de Neutralización Incorrecta de Elementos Especiales en la Lógica de Consulta de Datos en el componente Apache Camel Neo4J. El productor camel-neo4j construye la cláusula WHERE de Cypher para sus operaciones de coincidencia/recuperación y eliminación a partir del mapa CamelNeo4jMatchProperties. CVE-2025-66169 abordó la inyección de Cypher a través de los valores de las propiedades al vincularlos como parámetros de consulta ($paramN), pero los nombres de las propiedades (las claves JSON de ese mapa) aún se concatenaban en la cadena de consulta textualmente en Neo4jProducer.retrieveNodes() y deleteNode(). Un nombre de propiedad que contiene sintaxis Cypher, por lo tanto, altera la estructura de la consulta ejecutada. Donde una ruta mapea entrada no confiable en el mapa CamelNeo4jMatchProperties - por ejemplo, pasando un cuerpo de solicitud como el mapa de coincidencia, o desde un consumidor que no filtra los encabezados Camel entrantes - un atacante que controla los nombres de las claves JSON puede inyectar Cypher arbitrario y leer, modificar o eliminar cualquier nodo o relación en la base de datos Neo4j. El encabezado CamelNeo4jMatchProperties tiene prefijo Camel y es filtrado por la estrategia de filtro de encabezados HTTP, por lo que un cliente HTTP simple no puede establecerlo directamente; el problema es alcanzable a través de rutas que deliberada o inadvertidamente llevan datos no confiables a ese encabezado. Este problema afecta a Apache Camel: desde 4.10.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 lanzamientos LTS 4.14.x, entonces se sugiere que actualicen a 4.14.8. Si los usuarios están en la rama de lanzamientos 4.18.x, entonces se sugiere que actualicen a 4.18.3. Para implementaciones que no pueden actualizarse inmediatamente, no rellene el mapa CamelNeo4jMatchProperties con entrada no confiable: valide o incluya en una lista blanca los nombres de las propiedades (por ejemplo, contra ^[A-Za-z_][A-Za-z0-9_]*$) antes del productor Neo4j, y asegúrese de que cualquier consumidor que alimente dicha ruta filtre los encabezados Camel / camel entrantes para que el encabezado de coincidencia no pueda ser proporcionado por un remitente externo.

References

https://camel.apache.org/security/CVE-2026-46591.htmlvendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2026-46591advisory
https://github.com/apache/camel/pull/23258web
https://github.com/apache/camel/pull/23294web
https://github.com/apache/camel/pull/23323web
https://github.com/apache/camel/commit/7881d949c40befcc602016dcce25a2fb38d070ceweb
https://github.com/apache/camel/commit/865d0b8b99f969e06ec6275b69c72670b5763245web
https://github.com/apache/camel/commit/bb4176fe87dc0cc60a5be37a57b69b8c610c1dd2web
https://github.com/advisories/GHSA-4jrw-64vr-7g8madvisory
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-46591 changed 2026-07-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-q86m-qjpm-vqcw changed 2026-08-28CC-BY-4.0
NVDCVE-2026-46591 changed 2026-10-25Public domain