Skip to main content
Menu
CVEs

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.

CVE-2026-145153EUVD-2026-144277Published December 4, 2026, updated

9.2CriticalCNA
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.”

github.com

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

cve.now Index

37Pof 100 · provisional · methodology v3
  • 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

Timeline

  1. CVE published
  2. First seen by cve.now
  3. Posted on X by cve.now
  4. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  5. Record last updated

Evidence 6

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

No corrections so far. Something wrong on this page? Report an error.