From d0496fb3ec4a077c1d1e9d4aa6c52786d9fc6315 Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Fri, 10 Jul 2026 10:15:20 +0200 Subject: [PATCH] [GHSA-q86m-qjpm-vqcw] Improper Neutralization of Special Elements in Data Query... Signed-off-by: Andrea Cosentino --- .../GHSA-q86m-qjpm-vqcw.json | 67 ++++++++++++++++++- 1 file changed, 65 insertions(+), 2 deletions(-) diff --git a/advisories/unreviewed/2026/07/GHSA-q86m-qjpm-vqcw/GHSA-q86m-qjpm-vqcw.json b/advisories/unreviewed/2026/07/GHSA-q86m-qjpm-vqcw/GHSA-q86m-qjpm-vqcw.json index 1f8b776e8f441..b39267e1057ce 100644 --- a/advisories/unreviewed/2026/07/GHSA-q86m-qjpm-vqcw/GHSA-q86m-qjpm-vqcw.json +++ b/advisories/unreviewed/2026/07/GHSA-q86m-qjpm-vqcw/GHSA-q86m-qjpm-vqcw.json @@ -1,11 +1,12 @@ { "schema_version": "1.4.0", "id": "GHSA-q86m-qjpm-vqcw", - "modified": "2026-07-06T21:30:36Z", + "modified": "2026-07-10T07:58:22Z", "published": "2026-07-06T09:30:29Z", "aliases": [ "CVE-2026-46591" ], + "summary": "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)", "details": "Improper Neutralization of Special Elements in Data Query Logic vulnerability in Apache Camel Neo4J component.\n\nThe 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.\nThis 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.\n\nUsers 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.", "severity": [ { @@ -13,7 +14,65 @@ "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N" } ], - "affected": [], + "affected": [ + { + "package": { + "ecosystem": "Maven", + "name": "org.apache.camel:camel-neo4j" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "4.10.0" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "< 4.14.8" + } + }, + { + "package": { + "ecosystem": "Maven", + "name": "org.apache.camel:camel-neo4j" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "4.15.0" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "< 4.18.3" + } + }, + { + "package": { + "ecosystem": "Maven", + "name": "org.apache.camel:camel-neo4j" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "4.19.0" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "< 4.21.0" + } + } + ], "references": [ { "type": "ADVISORY", @@ -22,6 +81,10 @@ { "type": "WEB", "url": "https://camel.apache.org/security/CVE-2026-46591.html" + }, + { + "type": "PACKAGE", + "url": "https://github.com/apache/camel/tree/main/components/camel-ai/camel-neo4j" } ], "database_specific": {