LiveActive security incident?Get immediate response
CVE Record

CVE-2023-36258: An issue in LangChain before 0.0.236 allows an attacker to execute arbitrary code because Python code with...

An issue in LangChain before 0.0.236 allows an attacker to execute arbitrary code because Python code with os.system, exec, or eval can be used.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

LangChain versions before 0.0.236 are reported to allow arbitrary code execution when Python code using dangerous execution functions is accepted. This is a serious class of issue, but the source bundle does not provide CVSS details, affected configurations, or evidence of active exploitation.

Executive priority

Prioritize remediation for internet-facing or user-driven AI applications using affected LangChain versions. The business risk is potentially severe because code execution can compromise systems, but urgency should be scoped against confirmed dependency use and exposure.

Technical view

CVE-2023-36258 is classified as CWE-94 code injection. The CVE description states that LangChain before 0.0.236 can execute arbitrary code because Python code using os.system, exec, or eval can be used. The provided sources do not define vulnerable components, exploit prerequisites, or vendor mitigation detail beyond the version boundary.

Likely exposure

Exposure is most likely where applications depend on LangChain before 0.0.236 and allow untrusted or model-influenced Python code paths. The bundle lists affected vendor/product as n/a, so teams must confirm actual dependency use locally.

Exploitation context

The source bundle does not indicate active exploitation, and KEV status is false. Public reference is a GitHub issue, but no supported exploit status, real-world campaign, or exploitation volume is provided.

Researcher notes

Evidence is sparse. The CVE record gives a version boundary and CWE-94 classification, but lacks CVSS, impacted module detail, exploit prerequisites, and confirmed fix notes. Treat findings as source-limited and validate against the referenced GitHub issue and vendor release history.

Mitigation direction

  • Inventory applications and services that use LangChain.
  • Update LangChain deployments below 0.0.236 where feasible.
  • Check LangChain vendor guidance for the correct fixed release and configuration advice.
  • Restrict untrusted input from reaching Python code execution features.
  • Review AI agent workflows for unsafe code execution assumptions.

Validation and detection

  • Confirm deployed LangChain versions across repositories and runtime environments.
  • Identify routes or jobs that let users influence Python execution behavior.
  • Review dependency lockfiles and build artifacts for versions below 0.0.236.
  • Check monitoring for unexpected code execution or process-spawning behavior.
  • Verify no CISA KEV listing is present for this CVE.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-94: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2023-36258 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-94 · source CWE mapping

Improper Control of Generation of Code ('Code Injection')

Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.