Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › AI

CVE-2026-145153 — langchain4j langchain4j-pgvector

Critical · CVSS 9.2 First seen December 04, 2026
AIDatabasesVulnerabilities

Research article

LangChain4j Injection Flaw Enables Data Manipulation Across Multiple Databases

CVECVE-2026-145153
Vendor and productlangchain4j langchain4j-pgvector; langchain4j langchain4j-mariadb; langchain4j langchain4j-milvus
PublishedDecember 04, 2026 18:00 UTC
Research cut-offDecember 04, 2026 17:45 UTC
Sources reviewed2: NVD record (last modified 2026-12-04); CISA KEV catalog

Executive summary

CVE-2026-145153 impacts LangChain4j versions prior to 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33, allowing attackers to inject malicious queries through the toString() method without proper escaping. The CVSS 3.1 score is 8.1 HIGH, assigned by disclosure@vulncheck.com [1]. The sources do not mention any confirmed exploitation [2]. The recommended action is to upgrade to the fixed versions specified in the CVE record.

Key points

  • LangChain4j versions before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 are affected [1].
  • The CVSS 3.1 score is 8.1 HIGH, assigned by disclosure@vulncheck.com [1].
  • The reviewed sources do not report exploitation [2].
  • Attackers can inject SQL or query operators into multiple database stores [1].
  • The main action is to update to the fixed versions listed in the CVE record [1].

Vulnerability identification

CVE IDVendorProductCWECVSS 4.0CVSS 3.1PublishedLast ModifiedRecord Status
CVE-2026-145153langchain4jlangchain4j-pgvector, langchain4j-mariadb, langchain4j-milvus, langchain4j-mongodb-atlasCWE-89, CWE-9439.2 CRITICAL, scored by disclosure@vulncheck.com8.1 HIGH, scored by disclosure@vulncheck.com2026-12-04T17:19:462026-12-04T17:19:46Received

Vulnerability description

A flaw exists in LangChain4j that allows attackers to inject SQL or query operators into various database systems such as pgvector, MariaDB, Milvus, MongoDB Atlas, or Chroma [1]. This occurs because the system converts non-String values into query strings using toString() without escaping them [1]. Those with access to loosely typed filter parameters, including nested Lists or Maps derived from JSON inputs or LLM outputs, can alter queries to retrieve or remove data from other tenants' documents [1].

Attack surface and exploitation prerequisites

The CVSS vector indicates network access (AV:N), high attack complexity (AC:H), no privileges required (PR:N) and no user interaction (UI:N) [1]. The attack can be initiated by an attacker who can supply non-String values to filters, such as nested Lists or Maps from JSON or LLM tool outputs [1].

Impact analysis

The CVSS 3.1 vector indicates high impact on confidentiality (C:H), integrity (I:H), and availability (A:H) [1]. The description states that attackers can access other tenants' documents or delete rows using the removeAll function [1].

Affected products and versions

ProductAffected VersionFixed Version
langchain4j-pgvector< 1.5.4-beta111.5.4-beta11
langchain4j-pgvector≥ 1.6.0-beta12, < 1.11.12-beta191.11.12-beta19
langchain4j-pgvector≥ 1.12.1-beta21, < 1.19.4-beta291.19.4-beta29
langchain4j-pgvector≥ 1.20.0-beta30, < 1.23.0-beta331.23.0-beta33
langchain4j-mariadb< 1.5.4-beta111.5.4-beta11
langchain4j-mariadb≥ 1.6.0-beta12, < 1.11.12-beta191.11.12-beta19
langchain4j-mariadb≥ 1.12.1-beta21, < 1.19.4-beta291.19.4-beta29
langchain4j-mariadb≥ 1.20.0-beta30, < 1.23.0-beta331.23.0-beta33
langchain4j-milvus< 1.5.4-beta111.5.4-beta11
langchain4j-milvus≥ 1.6.0-beta12, < 1.11.12-beta191.11.12-beta19
langchain4j-milvus≥ 1.12.1-beta21, < 1.19.4-beta291.19.4-beta29
langchain4j-milvus≥ 1.20.0-beta30, < 1.23.0-beta331.23.0-beta33
langchain4j-mongodb-atlas< 1.5.4-beta111.5.4-beta11
langchain4j-mongodb-atlas≥ 1.6.0-beta12, < 1.11.12-beta191.11.12-beta19
langchain4j-mongodb-atlas≥ 1.12.1-beta21, < 1.19.4-beta291.19.4-beta29
langchain4j-mongodb-atlas≥ 1.20.0-beta30, < 1.23.0-beta331.23.0-beta33

Exploitation and threat intelligence status

CVE-2026-145153 is not listed in the CISA KEV catalog as of December 4, 2026 [2]. The reviewed sources do not report exploitation [2].

Detection and exposure assessment

To determine if an organization is exposed, check if the installed version of LangChain4j falls within the affected ranges listed in the CVE record [1]. No detection steps are provided in the sources [1].

Remediation

The fixed versions for LangChain4j are 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 [1]. No mitigation steps are provided in the sources [1].

Remediation checklist

  1. Update LangChain4j to version 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, or 1.23.0-beta33 [1].
  2. Review the affected versions and ensure all instances are patched [1].
  3. Monitor for any signs of unauthorized data access or deletion.

Evidence gaps

  • The sources do not describe the internal workings of the affected component.
  • The sources do not mention a workaround or alternative mitigation strategy.
  • The sources do not provide technical details about the flaw's mechanism.
  • The sources do not describe root cause analysis.
  • The sources do not provide exploitation scenarios or attack lifecycle details.
  • The sources do not describe indicators of compromise.

References

  1. CVE-2026-145153 record. NIST National Vulnerability Database (NVD), 2026-12-04. https://nvd.nist.gov/vuln/detail/CVE-2026-145153. Accessed 2026-12-04. Vulnerability identification, Vulnerability description, Attack surface and exploitation prerequisites, Impact analysis, Affected products and versions, Detection and exposure assessment, Remediation
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-04. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-04. Exploitation and threat intelligence status

Written with AI assistance from the 2 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Critical · 9.2 CVSS 4.0 base score from the CNA (vulncheck.com)

An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.

Attack from
the network (remotely)
Attack complexity
high (only works under specific conditions)
Special conditions
only in some setups or conditions
Login needed
no
User action needed
no
Impact
high on confidentiality, integrity and availability
Impact on other systems
none

Vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 8.1 from the CNA (vulncheck.com): CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
  • CWE-943: Improper Neutralization of Special Elements in Data Query Logic

Affected and fixed versions

ProductAffected versionsFixed in
langchain4j langchain4j-pgvector< 1.5.4-beta111.5.4-beta11
langchain4j langchain4j-pgvector≥ 1.6.0-beta12, < 1.11.12-beta191.11.12-beta19
langchain4j langchain4j-pgvector≥ 1.12.1-beta21, < 1.19.4-beta291.19.4-beta29
langchain4j langchain4j-pgvector≥ 1.20.0-beta30, < 1.23.0-beta331.23.0-beta33
langchain4j langchain4j-mariadb< 1.5.4-beta111.5.4-beta11
langchain4j langchain4j-mariadb≥ 1.6.0-beta12, < 1.11.12-beta191.11.12-beta19
langchain4j langchain4j-mariadb≥ 1.12.1-beta21, < 1.19.4-beta291.19.4-beta29
langchain4j langchain4j-mariadb≥ 1.20.0-beta30, < 1.23.0-beta331.23.0-beta33
langchain4j langchain4j-milvus< 1.5.4-beta111.5.4-beta11
langchain4j langchain4j-milvus≥ 1.6.0-beta12, < 1.11.12-beta191.11.12-beta19
langchain4j langchain4j-milvus≥ 1.12.1-beta21, < 1.19.4-beta291.19.4-beta29
langchain4j langchain4j-milvus≥ 1.20.0-beta30, < 1.23.0-beta331.23.0-beta33
langchain4j langchain4j-mongodb-atlas< 1.5.4-beta111.5.4-beta11
langchain4j langchain4j-mongodb-atlas≥ 1.6.0-beta12, < 1.11.12-beta191.11.12-beta19
langchain4j langchain4j-mongodb-atlas≥ 1.12.1-beta21, < 1.19.4-beta291.19.4-beta29
langchain4j langchain4j-mongodb-atlas≥ 1.20.0-beta30, < 1.23.0-beta331.23.0-beta33
langchain4j langchain4j-chroma< 1.5.4-beta111.5.4-beta11
langchain4j langchain4j-chroma≥ 1.6.0-beta12, < 1.11.12-beta191.11.12-beta19
langchain4j langchain4j-chroma≥ 1.12.1-beta21, < 1.19.4-beta291.19.4-beta29
langchain4j langchain4j-chroma≥ 1.20.0-beta30, < 1.23.0-beta331.23.0-beta33

+2 more. From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain).

Affected

  • langchain4j langchain4j-pgvector
  • langchain4j langchain4j-mariadb
  • langchain4j langchain4j-milvus
  • langchain4j langchain4j-mongodb-atlas
  • langchain4j langchain4j-chroma

Frequently asked questions

What is CVE-2026-145153?

CVE-2026-145153 impacts LangChain4j versions prior to 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33, allowing attackers to inject malicious queries through the toString() method without proper escaping. The CVSS 3.1 score is 8.1 HIGH, assigned by disclosure@vulncheck.com. The sources do not mention any confirmed exploitation. Weakness type: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE-89).

How severe is CVE-2026-145153?

CVE-2026-145153 has a CVSS 4.0 base score of 9.2 (critical), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.

Is CVE-2026-145153 being exploited?

Not as far as is known: CVE-2026-145153 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026.

Which versions are affected by CVE-2026-145153?

langchain4j langchain4j-pgvector < 1.5.4-beta11 (fixed in 1.5.4-beta11); langchain4j langchain4j-pgvector ≥ 1.6.0-beta12, < 1.11.12-beta19 (fixed in 1.11.12-beta19); langchain4j langchain4j-pgvector ≥ 1.12.1-beta21, < 1.19.4-beta29 (fixed in 1.19.4-beta29); langchain4j langchain4j-pgvector ≥ 1.20.0-beta30, < 1.23.0-beta33 (fixed in 1.23.0-beta33); and more, listed on this page.

How do I fix CVE-2026-145153?

Update LangChain4j to version 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, or 1.23.0-beta33. Review the affected versions and ensure all instances are patched. Monitor for any signs of unauthorized data access or deletion.

Timeline & sources

References

Related vulnerabilities & news