SQL injection in embedding store metadata filters
Affects LangChain4j embedding store modules such as pgvector, MariaDB and Milvus before the patched releases. Fixed in 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29 and 1.23.0-beta33.
- Exploited
- No known exploitation
- Fix
- Fixed in dev.langchain4j:langchain4j-pgvector 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · dev.langchain4j:langchain4j-mariadb 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · dev.langchain4j:langchain4j-milvus 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · dev.langchain4j:langchain4j-mongodb-atlas 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · dev.langchain4j:langchain4j-chroma 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · dev.langchain4j:langchain4j-milvus-v2 1.19.4-beta29, 1.23.0-beta33
- Who is exposed
- Not reported
Summary
Written by a model
LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 contains an injection vulnerability in embedding store metadata filters that writes non-String values into queries via toString() without escaping. Attackers who control loosely typed filter values, such as nested Lists or Maps from request JSON or LLM tool output, can inject SQL or query operators in pgvector, MariaDB, Milvus, MongoDB Atlas, or Chroma stores to read other tenants' documents or delete rows via removeAll.
Who should check
Teams running LangChain4j embedding stores (pgvector, MariaDB, Milvus, Milvus v2, MongoDB Atlas, Chroma) that pass request JSON or LLM tool output into metadata filters.
Not fixed by: Passing only String values is not enough on pgvector before 1.11.0; upgrade.
“Several embedding stores built the query for a metadata Filter by writing the filter values into the query text.”
What to do
Upgrade to a fixed version: dev.langchain4j:langchain4j-pgvector 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · dev.langchain4j:langchain4j-mariadb 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · dev.langchain4j:langchain4j-milvus 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · dev.langchain4j:langchain4j-mongodb-atlas 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · dev.langchain4j:langchain4j-chroma 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · dev.langchain4j:langchain4j-milvus-v2 1.19.4-beta29, 1.23.0-beta33.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-145153 (LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 Metadata Filter Injection), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-145153 (entry last updated 2026-12-04):
Affected:
- Maven package dev.langchain4j:langchain4j-pgvector: fixed in 1.5.4-beta11
- Maven package dev.langchain4j:langchain4j-pgvector: from 1.6.0-beta12, fixed in 1.11.12-beta19
- Maven package dev.langchain4j:langchain4j-pgvector: from 1.12.1-beta21, fixed in 1.19.4-beta29
- Maven package dev.langchain4j:langchain4j-pgvector: from 1.20.0-beta30, fixed in 1.23.0-beta33
- Maven package dev.langchain4j:langchain4j-mariadb: fixed in 1.5.4-beta11
- Maven package dev.langchain4j:langchain4j-mariadb: from 1.6.0-beta12, fixed in 1.11.12-beta19
- Maven package dev.langchain4j:langchain4j-mariadb: from 1.12.1-beta21, fixed in 1.19.4-beta29
- Maven package dev.langchain4j:langchain4j-mariadb: from 1.20.0-beta30, fixed in 1.23.0-beta33
- Maven package dev.langchain4j:langchain4j-milvus: fixed in 1.5.4-beta11
- Maven package dev.langchain4j:langchain4j-milvus: from 1.6.0-beta12, fixed in 1.11.12-beta19
- and 12 more affected products, listed on https://cve.now/CVE-2026-145153
Fixed versions: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33.
Conditions (all must be true for the bug to be hit):
- Affected langchain4j embedding store modules (pgvector, MariaDB, Milvus, Milvus v2, MongoDB Atlas, Chroma) in versions below the patched releases. (source: https://github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v)
- On pgvector before 1.11.0, String values in isIn and isNotIn are also injectable, so String-only filters are affected there too. (source: https://github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-145153 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-145153 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (Maven): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v
- https://github.com/langchain4j/langchain4j/commit/055468af94754c981958bbadad45eb282d86efce
- https://github.com/langchain4j/langchain4j/commit/8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802
- https://www.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
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-145153
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-145153"}.Affected versions
- dev.langchain4j:langchain4j-pgvectorfixed in 1.5.4-beta11Fixed in 1.5.4-beta11 (released Nov 2, 2026, 32 days before disclosure).
- dev.langchain4j:langchain4j-pgvectorFrom 1.6.0-beta12 · fixed in 1.11.12-beta19Fixed in 1.11.12-beta19 (released Oct 30, 2026, 35 days before disclosure).
- dev.langchain4j:langchain4j-pgvectorFrom 1.12.1-beta21 · fixed in 1.19.4-beta29Fixed in 1.19.4-beta29 (released Oct 30, 2026, 35 days before disclosure).
- dev.langchain4j:langchain4j-pgvectorFrom 1.20.0-beta30 · fixed in 1.23.0-beta33Fixed in 1.23.0-beta33 (released Oct 28, 2026, 37 days before disclosure).The latest release, 0.36.2, is still affected.
- dev.langchain4j:langchain4j-mariadbfixed in 1.5.4-beta11Fixed in 1.5.4-beta11 (released Nov 2, 2026, 32 days before disclosure).
- dev.langchain4j:langchain4j-mariadbFrom 1.6.0-beta12 · fixed in 1.11.12-beta19Fixed in 1.11.12-beta19 (released Oct 30, 2026, 35 days before disclosure).
- dev.langchain4j:langchain4j-mariadbFrom 1.12.1-beta21 · fixed in 1.19.4-beta29Fixed in 1.19.4-beta29 (released Oct 30, 2026, 35 days before disclosure).
- dev.langchain4j:langchain4j-mariadbFrom 1.20.0-beta30 · fixed in 1.23.0-beta33Fixed in 1.23.0-beta33 (released Oct 28, 2026, 37 days before disclosure).The latest release, 1.23.0-beta33, is not affected.
- dev.langchain4j:langchain4j-milvusfixed in 1.5.4-beta11
- dev.langchain4j:langchain4j-milvusFrom 1.6.0-beta12 · fixed in 1.11.12-beta19
- dev.langchain4j:langchain4j-milvusFrom 1.12.1-beta21 · fixed in 1.19.4-beta29
- dev.langchain4j:langchain4j-milvusFrom 1.20.0-beta30 · fixed in 1.23.0-beta33
- dev.langchain4j:langchain4j-mongodb-atlasfixed in 1.5.4-beta11
- dev.langchain4j:langchain4j-mongodb-atlasFrom 1.6.0-beta12 · fixed in 1.11.12-beta19
- dev.langchain4j:langchain4j-mongodb-atlasFrom 1.12.1-beta21 · fixed in 1.19.4-beta29
- dev.langchain4j:langchain4j-mongodb-atlasFrom 1.20.0-beta30 · fixed in 1.23.0-beta33
- dev.langchain4j:langchain4j-chromafixed in 1.5.4-beta11
- dev.langchain4j:langchain4j-chromaFrom 1.6.0-beta12 · fixed in 1.11.12-beta19
- dev.langchain4j:langchain4j-chromaFrom 1.12.1-beta21 · fixed in 1.19.4-beta29
- dev.langchain4j:langchain4j-chromaFrom 1.20.0-beta30 · fixed in 1.23.0-beta33
- dev.langchain4j:langchain4j-milvus-v2From 1.19.0-beta29 · fixed in 1.19.4-beta29
- dev.langchain4j:langchain4j-milvus-v2From 1.20.0-beta30 · fixed in 1.23.0-beta33
cve.now Index
- Exploitation0/40No signal
- Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
- Reach10/20Affects Maven packages
- Severity10/10CVSS 9.2, total technical impact per CISA
- No patch0/5No signal
What would change the score
- Would score about 82 if added to CISA KEV
- Would score about 77 if CISA's SSVC rates exploitation active
- Would score about 42 if advisories confirm default setups are exposed
Impact
- Widely used4 packages depend on dev.langchain4j:langchain4j-pgvector. deps.dev
Timeline
- CVE published
- First seen by cve.now
- Posted on X by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Evidence 6
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · langchain4j/langchain4j · Advisory GHSA-6wgf-c23j-fj2v |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-145153 |
| Record | NVD · CVE-2026-145153 |
| Other links 3 | |
| Patch | GitHub · langchain4j/langchain4j · Commit 055468af |
| Patch | GitHub · langchain4j/langchain4j · Commit 8f6e2210 |
| Link | 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 |
Questions about CVE-2026-145153
Is CVE-2026-145153 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Metadata filter injection lets the filter used in a search or delete be altered. An attacker can read other tenants' or users' rows through search, and delete all rows through removeAll(Filter).
Source: github.com
Which versions are affected by CVE-2026-145153?
dev.langchain4j:langchain4j-pgvector (Maven): before 1.5.4-beta11. dev.langchain4j:langchain4j-pgvector (Maven): from 1.6.0-beta12 before 1.11.12-beta19. dev.langchain4j:langchain4j-pgvector (Maven): from 1.12.1-beta21 before 1.19.4-beta29. dev.langchain4j:langchain4j-pgvector (Maven): from 1.20.0-beta30 before 1.23.0-beta33. dev.langchain4j:langchain4j-mariadb (Maven): before 1.5.4-beta11. 17 more packages are listed on the page.
Source: cve.now feed data
Am I affected, and how do I check?
The affected modules are pgvector, MariaDB, Milvus, Milvus v2, MongoDB Atlas and Chroma, in versions below the patched releases: 0 to 1.5.4-beta11, 1.6.0-beta12 to 1.11.12-beta19, 1.12.1-beta21 to 1.19.4-beta29, and 1.20.0-beta30 to 1.23.0-beta33. On pgvector before 1.11.0, String values in isIn and isNotIn are also injectable, so String-only filters are affected there too. Check the langchain4j module version listed in the project's dependency file.
Source: github.com
How do I fix CVE-2026-145153?
Upgrade the affected module to the fixed version for its release line: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, or 1.23.0-beta33.
Source: github.com
Related
- CVE-2026-55405LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector
- CVE-2026-45262FacturaScripts: Authenticated SQL injection in the REST API filter parameter via parenthesis bypass in `Where::sqlColumn`
- CVE-2026-77432activity_notification: SQL Injection via custom_filter in Bulk Notification Endpoints
- CVE-2026-145040WWBN AVideo before 29.9.0 Unauthenticated Blind SQL Injection via Video List Sort
- CVE-2026-136376Joomla Extension - joomboost.com - SQL injection in search time filters in JoomRecipe extension 1.0.0-6.9.8
- CVE-2026-136369Joomla Extension - joomboost.com - Unauthenticated SQL injection in JoomInvoice extension 1.0.0-6.5.2
No corrections so far. Something wrong on this page? Report an error.