Spring AI
SpEL Injection via Unescaped Filter Key in SimpleVectorStore Leads to Remote Code Execution
In Spring AI, a SpEL injection vulnerability exists in SimpleVectorStore when a user-supplied value is used as a filter expression key. A malicious actor could exploit this to execute arbitrary code. Only applications that use SimpleVectorStore and pass user-supplied input as a filter expression key are affected. This issue affects Spring AI: from 1.0.0 before 1.0.5, from 1.1.0 before 1.1.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.0.0, < 1.0.5
- >= 1.1.0, < 1.1.4
Fixed in 1.0.5, 1.1.4
Mitigation
Upgrade Spring AI to 1.0.5 or 1.1.4 or later.
Timeline
Days relative to CVE publicationFirst public PoC 6.4 days after publication; not in CISA KEV. First PoC: n0n4m3x41/CVE-2026-22738-POC (created 2 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| n0n4m3x41/CVE-2026-22738-POC | 2 Apr 2026 +6.4 d | 13 | PoC |
| rockmelodies/CVE-2026-22738 | 3 Apr 2026 +7.2 d | 2 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /search
- Query
filterKey=countryfilterValue=USquery=hellofilterKey=filterValue=x- Ports
- 8082
- Seen in
- 2 repos: n0n4m3x41/CVE-2026-22738-POC, rockmelodies/CVE-2026-22738
- Evidence
- n0n4m3x41/CVE-2026-22738-POC/exploit.py:104 n0n4m3x41/CVE-2026-22738-POC/exploit.py:125 n0n4m3x41/CVE-2026-22738-POC/exploit.py:144 n0n4m3x41/CVE-2026-22738-POC/exploit.py:166 n0n4m3x41/CVE-2026-22738-POC/exploit.py:230 rockmelodies/CVE-2026-22738/test/exploit.py:104
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/search\?(?:.*&)?filterKey=country.*filterValue=US.*query=hello.*filterKey=.*filterValue=x
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8082] (msg:"GG PoC-Monitor CVE-2026-22738 Spring Spring AI exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/search"; http.uri; content:"filterKey=country"; http.uri; content:"filterValue=US"; http.uri; content:"query=hello"; http.uri; content:"filterKey="; http.uri; content:"filterValue=x"; reference:url,poc.griffinguard.io/cve/CVE-2026-22738; classtype:web-application-attack; sid:9721490; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Spring Spring AI exploit attempt (CVE-2026-22738)
id: gg-pocmon-cve-2026-22738-9721490
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-22738. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-22738
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/search'
cs-uri-query|contains|all:
- 'filterKey=country'
- 'filterValue=US'
- 'query=hello'
- 'filterKey='
- 'filterValue=x'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.22738