CVE-2026-145153: langchain4j-pgvector · SQL Injection
Affects langchain4j-pgvectorSource CVE Database V5
Not known to be exploited · CVSS 9.2 Critical : upgrade to 1.5.4-beta11 as a priority.
Data as of 4 Dec 2026, 16:15 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 9.2 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 8.1 |
- Patch
- Available – fixed in 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29 +1
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 4 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| langchain4jlangchain4j-pgvector | Affected
| Fixed in
|
| langchain4jlangchain4j-pgvector | Affected
| Fixed in
|
| langchain4jlangchain4j-pgvector | Affected
| Fixed in
|
| langchain4jlangchain4j-pgvector | Affected
| Fixed in
|
| langchain4jlangchain4j-mariadb | Affected
| Fixed in
|
| langchain4jlangchain4j-mariadb | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade langchain4j to one of the fixed versions: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, or 1.23.0-beta33. These versions contain patches that properly escape special elements in embedding store metadata filters to prevent injection. No other mitigation or temporary workaround is indicated by the vendor advisory.
Description
CVE-2026-145153 is a critical SQL injection vulnerability in langchain4j versions before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33. The flaw arises from improper neutralization of special elements in embedding store metadata filters, where non-String values are converted to strings without proper escaping. This allows attackers controlling loosely typed filter values, such as nested Lists or Maps from JSON requests or LLM tool outputs, to inject SQL or query operators into supported stores like pgvector, MariaDB, Milvus, MongoDB Atlas, or Chroma. Exploitation can lead to unauthorized reading of other tenants' documents or deletion of rows via removeAll operations.
References
- github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v (opens in a new tab)
- github.com/langchain4j/langchain4j/commit/055468af94754c981958bbadad45eb282d86efce (opens in a new tab)
- github.com/langchain4j/langchain4j/commit/8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802 (opens in a new tab)
- vulncheck.com/advisories/langchain4j-before-1.5.4-beta11-1.11.12-beta19-1.19.4-beta29-and-1.23.0-beta33-metadata-filter-injection (opens in a new tab)