CVE-2026-145153: LangChain4j SQL Injection
Published 2026-12-04 · Updated 2026-12-04 · Source disclosure@vulncheck.com
Not known to be exploited · high severity — update LangChain4j to a fixed release (1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33) in your next patch cycle.
What to do
- Update LangChain4j to a fixed release: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29 or 1.23.0-beta33 (whichever matches your release branch).
- Until it is patched, do not leave LangChain4j reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Put WAF rules in front of the affected parameters, and make sure the application's database account holds only the privileges it needs.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| LangChain4j | Releases before the fixed versions | 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29 or 1.23.0-beta33 (whichever matches your release branch) |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is high, so exploitation depends on conditions the attacker does not control. The impact on confidentiality, integrity and availability is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | High | Success depends on conditions outside the attacker's control. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | High | Total loss of confidentiality. |
| Integrity | High | Total loss of integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: SQL Injection
Description
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/langchain4j/langchain4j/commit/055468af94754c981958bbadad45eb282d86efce
- Patchhttps://github.com/langchain4j/langchain4j/commit/8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802
- Advisoryhttps://github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v
- Advisoryhttps://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