langchain vulnerable to arbitrary code execution
Published Aug 22, 2023 · Updated Oct 23, 2026 · Also known as GHSA-7gfq-f96f-g85j, PYSEC-2023-151
Original summary
Normalized public record · Updated Oct 23, 2026
langchain vulnerable to arbitrary code execution
Publisher and source text is retained separately from QFinch interpretation.
QFinch assessment
An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via the via the a json file to the `load_prompt` parameter. This is related to `__subclasses__` or a template.
Evidence: public source recordsAffected products
| Affected package, product or range | Fix status |
|---|---|
| Consult the referenced vendor advisory for affected versions. | Consult source advisory |
Matching a version is only one part of assessing exposure. QFinch has not assessed your environment on this public page.
Remediation
Apply the vendor-supported fixed release or mitigation, then verify the affected component is no longer reachable.
- Confirm the affected product and reachable code path exist in your environment.
- Apply the vendor-supported patch or mitigation from the primary advisory.
- Rescan the exact deployed revision and retain verification evidence.
Evidence coverage
- SSVC priority
- MEDIUM
- Confidence
- 20%
- Aliases
- GHSA-7gfq-f96f-g85j, PYSEC-2023-151
Scores appear only when corresponding evidence exists. Missing data is never interpreted as zero risk.
Sources and record history
Record history
Published Aug 22, 2023 · Last refreshed Oct 23, 2026