CVE-2026-55405

Source
https://cve.org/CVERecord?id=CVE-2026-55405
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55405.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-55405
Aliases
Published
2026-07-10T20:33:40.804Z
Modified
2026-07-16T03:30:57.285771292Z
Severity
  • 7.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L CVSS Calculator
Summary
LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55405.json",
    "cwe_ids": [
        "CWE-89"
    ],
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "fixed": "1.2.1-beta8"
                },
                {
                    "introduced": "1.3.0-beta9"
                },
                {
                    "fixed": "1.5.1-beta11"
                },
                {
                    "introduced": "1.6.0-beta12"
                },
                {
                    "fixed": "1.11.8-beta19"
                },
                {
                    "introduced": "1.12.1-beta21"
                },
                {
                    "fixed": "1.16.3-beta26"
                }
            ],
            "source": "AFFECTED_FIELD"
        }
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/langchain4j/langchain4j

Affected ranges

Type
GIT
Repo
https://github.com/langchain4j/langchain4j
Events
Database specific
{
    "source": "REFERENCES"
}

Affected versions

0.*
0.1.0
0.10.0
0.11.0
0.12.0
0.13.0
0.14.0
0.15.0
0.16.0
0.17.0
0.18.0
0.19.0
0.2.0
0.20.0
0.21.0
0.22.0
0.23.0
0.24.0
0.25.0
0.26.0
0.26.1
0.27.0
0.27.1
0.28.0
0.29.0
0.29.1
0.3.0
0.30.0
0.31.0
0.32.0
0.33.0
0.34.0
0.35.0
0.36.0
0.36.1
0.36.2
0.4.0
0.5.0
0.6.0
0.7.0
0.8.0
0.9.0
1.*
1.0.0-alpha1
1.0.0-beta1
1.0.0-beta2
1.11.0
1.11.4
1.11.6
1.11.7
1.13.0
1.14.0
1.15.0
1.16.0
1.16.1
1.16.2
1.2.0
1.5.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55405.json"