{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.0.194"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "893d20f735af0387870c9a7c160ef51f34d053ad"
            }
          ],
          "repo": "https://github.com/langchain-ai/langchain",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38896.json"
  },
  "details": "An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to execute arbitrary code via the from_math_prompt and from_colored_object_prompt functions.",
  "id": "CVE-2023-38896",
  "modified": "2026-08-12T03:51:10.437292860Z",
  "published": "2023-08-15T00:00:00Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://twitter.com/llm_sec/status/1668711587287375876"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38896.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-38896"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/hwchase17/langchain/issues/5872"
    },
    {
      "type": "FIX",
      "url": "https://github.com/hwchase17/langchain/pull/6003"
    }
  ],
  "schema_version": "1.9.0"
}