Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-55405— LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector

Quick assessment

Affected
langchain4j langchain4j
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

LangChain4j LangChain4j是LangChain4j公司开源的一款Java语言的大语言模型集成开发框架。 LangChain4j存在SQL注入漏洞,该漏洞源于MariaDB和pgvector嵌入存储在构建元数据过滤SQL时,通过字符串拼接过滤键和字符串值直接嵌入查询且未充分转义,导致攻击者可利用EmbeddingSearchRequest.filter()中的特制元数据键突破SQL上下文并注入任意SQL,从而支持盲数据渗漏、通过sleep函数造成拒绝服务以及通过removeAll(Fil

CVSS 7.6 · High EPSS 0.47% · P39

Affected Version Matrix 4

VendorProduct Version RangeStatus
langchain4j langchain4j < 1.2.1-beta8 affected
>= 1.3.0-beta9, < 1.5.1-beta11 affected
>= 1.6.0-beta12, < 1.11.8-beta19 affected
>= 1.12.1-beta21, < 1.16.3-beta26 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-55405

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector
Source: CVE Program / CVE List V5
Vulnerability Description
LangChain4j is a Java library for building LLM-powered applications on the JVM. Prior to 1.2.1-beta8, 1.5.1-beta11, 1.11.8-beta19, and 1.16.3-beta26, the MariaDB and pgvector embedding stores build metadata-filter SQL by string-concatenating filter keys, and in MariaDB string values, directly into the query without adequate escaping. A crafted metadata key in EmbeddingSearchRequest.filter() can break out of its SQL context and inject arbitrary SQL into the statements executed by the stores' search and removeAll(Filter) operations, enabling blind data exfiltration, denial of service via sleep functions, and deletion of arbitrary rows through removeAll(Filter). This issue is fixed in langchain4j-mariadb and langchain4j-pgvector versions 1.2.1-beta8, 1.5.1-beta11, 1.11.8-beta19, and 1.16.3-beta26.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
LangChain4j SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LangChain4j LangChain4j是LangChain4j公司开源的一款Java语言的大语言模型集成开发框架。 LangChain4j存在SQL注入漏洞,该漏洞源于MariaDB和pgvector嵌入存储在构建元数据过滤SQL时,通过字符串拼接过滤键和字符串值直接嵌入查询且未充分转义,导致攻击者可利用EmbeddingSearchRequest.filter()中的特制元数据键突破SQL上下文并注入任意SQL,从而支持盲数据渗漏、通过sleep函数造成拒绝服务以及通过removeAll(Fil
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
langchain4j langchain4j < 1.2.1-beta8 -

II. Public POCs for CVE-2026-55405

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 9485 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-55405

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-55405 (5)

Vendor Advisories for CVE-2026-55405 (1)

Other References for CVE-2026-55405 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-55405

No comments yet


Leave a comment