CVE-2026-46591
Beschrijving NL
Onjuiste neutralisatie van speciale elementen in Data Query Logic-kwetsbaarheid in Apache Camel Neo4J-component. De camel-neo4j-producent bouwt de Cypher WHERE-CLAUSULE voor zijn match/ophalen en verwijderen van bewerkingen van de CamelNeo4jMatchProperties-kaart. CVE-2025-66169 behandelde Cypher-injectie door de eigenschapswaarden door ze te binden als queryparameters ($ paramN), maar de eigenschapsnamen (de JSON-sleutels van die kaart) werden nog steeds samengevoegd in de queryreeks woordelijk in Neo4jProducer.retrieveNodes () en deleteNode(). Een eigenschapsnaam met Cypher-syntaxis wijzigt daarom de structuur van de uitgevoerde query. Wanneer een route niet-vertrouwde invoer in de CamelNeo4jMatchProperties-kaart in kaart brengt - bijvoorbeeld door een aanvraagtekst door te geven als de wedstrijdkaart, of van een consument die geen inkomende Camel* -headers filtert - kan een aanvaller die de JSON-sleutelnamen beheert willekeurige Cypher injecteren en elke node of relatie in de Neo4j-database lezen, wijzigen of verwijderen. De CamelNeo4jMatchProperties-header is zelf Camel-prefixed en wordt gefilterd door de HTTP-header-filterstrategie, dus een gewone HTTP-client kan deze niet rechtstreeks instellen; het probleem is bereikbaar via routes die opzettelijk of per ongeluk niet-vertrouwde gegevens in die header overbrengen. Dit probleem treft Apache Camel: van 4.10.0 vóór 4.14.8, van 4.15.0 vóór 4.18.3, van 4.19.0 vóór 4.21.0. Gebruikers wordt aangeraden om te upgraden naar versie 4.21.0, die het probleem oplost. Als gebruikers zich op de 4.14.x LTS-releasesstroom bevinden, wordt hen voorgesteld om te upgraden naar 4.14.8. Als gebruikers zich op de 4.18.x-releasesstroom bevinden, wordt hen voorgesteld om te upgraden naar 4.18.3. Voor implementaties die niet onmiddellijk kunnen upgraden, vult u de CamelNeo4jMatchProperties-kaart niet in op basis van niet-vertrouwde invoer: valideer de eigenschapsnamen (bijvoorbeeld tegen ^[A-Za-z_][A-Za-z0-9_]*$) vóór de Neo4j-producent en zorg ervoor dat elke consument die een dergelijke route invoert, inkomende Camel* / Camel* -headers filtert, zodat de match-header niet door een externe afzender kan worden geleverd.
Origineel (Engels) tonen
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.