{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "055468af94754c981958bbadad45eb282d86efce"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "055468af94754c981958bbadad45eb282d86efce"
            },
            {
              "fixed": "8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802"
            }
          ],
          "repo": "https://github.com/langchain4j/langchain4j",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6wgf-c23j-fj2v"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-89",
      "CWE-943"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145153.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "fixed": "1.5.4-beta11"
              },
              {
                "introduced": "1.6.0-beta12"
              },
              {
                "fixed": "1.11.12-beta19"
              },
              {
                "introduced": "1.12.1-beta21"
              },
              {
                "fixed": "1.19.4-beta29"
              },
              {
                "introduced": "1.20.0-beta30"
              },
              {
                "fixed": "1.23.0-beta33"
              },
              {
                "fixed": "1.5.4-beta11"
              },
              {
                "introduced": "1.6.0-beta12"
              },
              {
                "fixed": "1.11.12-beta19"
              },
              {
                "introduced": "1.12.1-beta21"
              },
              {
                "fixed": "1.19.4-beta29"
              },
              {
                "introduced": "1.20.0-beta30"
              },
              {
                "fixed": "1.23.0-beta33"
              },
              {
                "fixed": "1.5.4-beta11"
              },
              {
                "introduced": "1.6.0-beta12"
              },
              {
                "fixed": "1.11.12-beta19"
              },
              {
                "introduced": "1.12.1-beta21"
              },
              {
                "fixed": "1.19.4-beta29"
              },
              {
                "introduced": "1.20.0-beta30"
              },
              {
                "fixed": "1.23.0-beta33"
              },
              {
                "fixed": "1.5.4-beta11"
              },
              {
                "introduced": "1.6.0-beta12"
              },
              {
                "fixed": "1.11.12-beta19"
              },
              {
                "introduced": "1.12.1-beta21"
              },
              {
                "fixed": "1.19.4-beta29"
              },
              {
                "introduced": "1.20.0-beta30"
              },
              {
                "fixed": "1.23.0-beta33"
              },
              {
                "fixed": "1.5.4-beta11"
              },
              {
                "introduced": "1.6.0-beta12"
              },
              {
                "fixed": "1.11.12-beta19"
              },
              {
                "introduced": "1.12.1-beta21"
              },
              {
                "fixed": "1.19.4-beta29"
              },
              {
                "introduced": "1.20.0-beta30"
              },
              {
                "fixed": "1.23.0-beta33"
              },
              {
                "introduced": "1.19.0-beta29"
              },
              {
                "fixed": "1.19.4-beta29"
              },
              {
                "introduced": "1.20.0-beta30"
              },
              {
                "fixed": "1.23.0-beta33"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      },
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "4j"
              },
              {
                "fixed": "1.5.4-beta11"
              }
            ],
            "source": "DESCRIPTION"
          }
        ]
      }
    ]
  },
  "details": "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.",
  "id": "CVE-2026-145153",
  "modified": "2026-12-04T19:45:27.121992312Z",
  "published": "2026-12-04T16:09:46.836Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145153.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/langchain4j/langchain4j/commit/055468af94754c981958bbadad45eb282d86efce"
    },
    {
      "type": "FIX",
      "url": "https://github.com/langchain4j/langchain4j/commit/8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-145153"
    },
    {
      "type": "ADVISORY",
      "url": "https://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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 Metadata Filter Injection"
}