cvelo
P2 · HighCVSS 8.1

LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 Metadata Filter Injection

  • CVE-2026-145153
  • EUVD-2026-144277

Summary

LangChain4j versions before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 contain an injection flaw in embedding store metadata filters. Non-String filter values are written into queries via toString() without escaping. An attacker who controls loosely typed filter values, such as nested Lists or Maps coming from request JSON or LLM tool output, can inject SQL or query operators. The affected stores named in the record are pgvector, MariaDB, Milvus, MongoDB Atlas, and Chroma. Successful exploitation can read other tenants' documents or delete rows through removeAll. The CVSS score is 8.1, and the record states it is not on the CISA known exploited list.

AI summary · verify against the vendor advisory

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.

Text from the CVE.org record.

Recommendation

  • langchain4j langchain4j-chroma

    • If you run a version from 1.20.0-beta30 to before 1.23.0-beta33update to 1.23.0-beta33 or laterMinor version change: check the release notes
    • If you run a version from 1.12.1-beta21 to before 1.19.4-beta29update to 1.19.4-beta29 or laterMinor version change: check the release notes
    • If you run a version from 1.6.0-beta12 to before 1.11.12-beta19update to 1.11.12-beta19 or laterMinor version change: check the release notes
    • If you run a version before 1.5.4-beta11update to 1.5.4-beta11 or later
  • langchain4j langchain4j-mariadb

    • If you run a version from 1.20.0-beta30 to before 1.23.0-beta33update to 1.23.0-beta33 or laterMinor version change: check the release notes
    • If you run a version from 1.12.1-beta21 to before 1.19.4-beta29update to 1.19.4-beta29 or laterMinor version change: check the release notes
    • If you run a version from 1.6.0-beta12 to before 1.11.12-beta19update to 1.11.12-beta19 or laterMinor version change: check the release notes
    • If you run a version before 1.5.4-beta11update to 1.5.4-beta11 or later
  • langchain4j langchain4j-milvus

    • If you run a version from 1.20.0-beta30 to before 1.23.0-beta33update to 1.23.0-beta33 or laterMinor version change: check the release notes
    • If you run a version from 1.12.1-beta21 to before 1.19.4-beta29update to 1.19.4-beta29 or laterMinor version change: check the release notes
    • If you run a version from 1.6.0-beta12 to before 1.11.12-beta19update to 1.11.12-beta19 or laterMinor version change: check the release notes
    • If you run a version before 1.5.4-beta11update to 1.5.4-beta11 or later
  • langchain4j langchain4j-milvus-v2

    • If you run a version from 1.20.0-beta30 to before 1.23.0-beta33update to 1.23.0-beta33 or laterMinor version change: check the release notes
    • If you run 1.19.xupdate to 1.19.4-beta29 or laterPatch update: breaking changes are unlikely
  • langchain4j langchain4j-mongodb-atlas

    • If you run a version from 1.20.0-beta30 to before 1.23.0-beta33update to 1.23.0-beta33 or laterMinor version change: check the release notes
    • If you run a version from 1.12.1-beta21 to before 1.19.4-beta29update to 1.19.4-beta29 or laterMinor version change: check the release notes
    • If you run a version from 1.6.0-beta12 to before 1.11.12-beta19update to 1.11.12-beta19 or laterMinor version change: check the release notes
    • If you run a version before 1.5.4-beta11update to 1.5.4-beta11 or later
  • langchain4j langchain4j-pgvector

    • If you run a version from 1.20.0-beta30 to before 1.23.0-beta33update to 1.23.0-beta33 or laterMinor version change: check the release notes
    • If you run a version from 1.12.1-beta21 to before 1.19.4-beta29update to 1.19.4-beta29 or laterMinor version change: check the release notes
    • If you run a version from 1.6.0-beta12 to before 1.11.12-beta19update to 1.11.12-beta19 or laterMinor version change: check the release notes
    • If you run a version before 1.5.4-beta11update to 1.5.4-beta11 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • langchain4j langchain4j-chroma

    Affected versionsFixed in
    from 1.20.0-beta30 to before 1.23.0-beta331.23.0-beta33
    from 1.12.1-beta21 to before 1.19.4-beta291.19.4-beta29
    from 1.6.0-beta12 to before 1.11.12-beta191.11.12-beta19
    before 1.5.4-beta111.5.4-beta11
  • langchain4j langchain4j-mariadb

    Affected versionsFixed in
    from 1.20.0-beta30 to before 1.23.0-beta331.23.0-beta33
    from 1.12.1-beta21 to before 1.19.4-beta291.19.4-beta29
    from 1.6.0-beta12 to before 1.11.12-beta191.11.12-beta19
    before 1.5.4-beta111.5.4-beta11
  • langchain4j langchain4j-milvus

    Affected versionsFixed in
    from 1.20.0-beta30 to before 1.23.0-beta331.23.0-beta33
    from 1.12.1-beta21 to before 1.19.4-beta291.19.4-beta29
    from 1.6.0-beta12 to before 1.11.12-beta191.11.12-beta19
    before 1.5.4-beta111.5.4-beta11
  • langchain4j langchain4j-milvus-v2

    Affected versionsFixed in
    from 1.20.0-beta30 to before 1.23.0-beta331.23.0-beta33
    from 1.19.0-beta29 to before 1.19.4-beta291.19.4-beta29
  • langchain4j langchain4j-mongodb-atlas

    Affected versionsFixed in
    from 1.20.0-beta30 to before 1.23.0-beta331.23.0-beta33
    from 1.12.1-beta21 to before 1.19.4-beta291.19.4-beta29
    from 1.6.0-beta12 to before 1.11.12-beta191.11.12-beta19
    before 1.5.4-beta111.5.4-beta11
  • langchain4j langchain4j-pgvector

    Affected versionsFixed in
    from 1.20.0-beta30 to before 1.23.0-beta331.23.0-beta33
    from 1.12.1-beta21 to before 1.19.4-beta291.19.4-beta29
    from 1.6.0-beta12 to before 1.11.12-beta191.11.12-beta19
    before 1.5.4-beta111.5.4-beta11

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.