LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector

Summary

CVECVE-2026-55405
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-07-10 21:16:55 UTC
Updated2026-07-10 21:16:55 UTC
DescriptionLangChain4j 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.

Risk And Classification

Primary CVSS: v3.1 7.6 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L

Problem Types: CWE-89 | CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary7.6HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
3.1CNADECLARED7.6HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Langchain4j Langchain4j affected < 1.2.1-beta8 Not specified
CNA Langchain4j Langchain4j affected >= 1.3.0-beta9, < 1.5.1-beta11 Not specified
CNA Langchain4j Langchain4j affected >= 1.6.0-beta12, < 1.11.8-beta19 Not specified
CNA Langchain4j Langchain4j affected >= 1.12.1-beta21, < 1.16.3-beta26 Not specified

References

ReferenceSourceLinkTags
github.com/langchain4j/langchain4j/security/advisories/GHSA-2mfg-cc43-9pcj [email protected] github.com
github.com/langchain4j/langchain4j/commit/8805d5d128694302f1b0a265017418... [email protected] github.com
github.com/langchain4j/langchain4j/releases/tag/1.16.3 [email protected] github.com
github.com/langchain4j/langchain4j/commit/ce96291dfb243c7f6753b5d65c7a77... [email protected] github.com
github.com/langchain4j/langchain4j/commit/f14a10ce77e4ea1b8277f67d6a81f4... [email protected] github.com
github.com/langchain4j/langchain4j/commit/1bc1f60aa58ef5c3c1703caf733624... [email protected] github.com
github.com/langchain4j/langchain4j/commit/13a0698bdfaf105d8aaf0367881df5... [email protected] github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report