gcdRadar
archive/Research/AIR-2023-0005
closedclosed 9 Apr 2023Research1 Research / proof of conceptAI

LLM Application Frameworks Allow Remote Code Execution via Prompting

ChatGPT, langchain, boxcars.ai

Frameworks like langchain and boxcars.ai allow direct query execution through LLMs, enabling remote code execution or SQL injection via prompt inputs. Researchers demonstrated that unauthorized actions could be triggered through conversational input.

first report
26 Mar 2023
last update
31 Mar 2023

Timeline · 4

  1. 26 Mar 2023AVID-2023-R0003: Frameworks like langchain (Python) and boxcars.ai (Ruby) offer apps and scripts to directly execute queries through LLMs as a built-in feature.
  2. 26 Mar 2023InjectGPT: the most polite exploit ever
  3. 26 Mar 2023Reddit thread on InjectGPT
  4. 31 Mar 2023AVID-2023-V028: Frameworks like langchain (Python) and boxcars.ai (Ruby) offer apps and scripts to directly execute queries through LLMs as a built-in feature.

Sources · 4

News and write-ups

  1. 2023-03-26
    InjectGPT: the most polite exploit ever
    blog.luitjes.it · blog.luitjes.it/posts/injectgpt-most-polite-exploit-ever
  2. 2023-03-26
    Reddit thread on InjectGPT
    reddit.com · reddit.com/r/netsec/comments/121gpay/injectgpt_remote_code_execution_by_asking_n

Research and catalogues

  1. 2023-03-26
  2. 2023-03-31

Titles and links belong to their publishers. The summary above is written by gcdRadar in its own words; data is CC BY-SA 4.0.

Classification

AI role
Attack on AI
categories
Prompt injectionAgent hijack
severity
1 · Research / proof of concept
targets
OpenAI, Framework / tooling
dates
happened 26 Mar 2023 · first reported 26 Mar 2023
origin
AVID
record
confidence 0.90 · created 2026-10-18 06:56Z · updated 2026-10-18 06:56Z

Lane, AI role, categories and severity come from the classifier; the OWASP and ATLAS rows are derived from the categories. How these are assigned

Copy a brief

This record as a short Markdown brief, for a ticket, a chat or a coding agent.

the brief as text
# LLM Application Frameworks Allow Remote Code Execution via Prompting

https://gcdradar.vercel.app/incidents/llm-application-frameworks-allow-remote-code-execution-via-p · AIR-2023-0005 · closed 2023-04-09

- Lane: Research
- Severity: 1 (Research / proof of concept)
- Fix status: Fix status unknown
- First reported: 2023-03-26
- AI role: Attack on AI
- Products: ChatGPT, langchain, boxcars.ai

## Summary

Frameworks like langchain and boxcars.ai allow direct query execution through LLMs, enabling remote code execution or SQL injection via prompt inputs. Researchers demonstrated that unauthorized actions could be triggered through conversational input.

## What to do

No action recorded; read the sources below and the vendor's advisory.

## Latest updates

- 2023-03-31: AVID-2023-V028: Frameworks like langchain (Python) and boxcars.ai (Ruby) offer apps and scripts to directly execute queries through LLMs as a built-in feature. (https://github.com/avidml/avid-db/blob/main/vulnerabilities/2023/AVID-2023-V028.json)
- 2023-03-26: Reddit thread on InjectGPT (https://reddit.com/r/netsec/comments/121gpay/injectgpt_remote_code_execution_by_asking_nicely)
- 2023-03-26: InjectGPT: the most polite exploit ever (https://blog.luitjes.it/posts/injectgpt-most-polite-exploit-ever)
- 2023-03-26: AVID-2023-R0003: Frameworks like langchain (Python) and boxcars.ai (Ruby) offer apps and scripts to directly execute queries through LLMs as a built-in feature. (https://github.com/avidml/avid-db/blob/main/reports/2023/AVID-2023-R0003.json)

## Sources

- 2023-03-26 AVID: AVID-2023-R0003: Frameworks like langchain (Python) and boxcars.ai (Ruby) offer apps and scripts to directly execute queries through LLMs as a built-in feature. https://github.com/avidml/avid-db/blob/main/reports/2023/AVID-2023-R0003.json
- 2023-03-26 blog.luitjes.it: InjectGPT: the most polite exploit ever https://blog.luitjes.it/posts/injectgpt-most-polite-exploit-ever
- 2023-03-26 reddit.com: Reddit thread on InjectGPT https://reddit.com/r/netsec/comments/121gpay/injectgpt_remote_code_execution_by_asking_nicely
- 2023-03-31 AVID: AVID-2023-V028: Frameworks like langchain (Python) and boxcars.ai (Ruby) offer apps and scripts to directly execute queries through LLMs as a built-in feature. https://github.com/avidml/avid-db/blob/main/vulnerabilities/2023/AVID-2023-V028.json

Verify against the vendor's advisory before changing production. Data CC BY-SA 4.0, https://gcdradar.vercel.app.

Related

  1. closed
    AI
  2. closed9.8
    LangChain family CVE-2023-29374: LangChain code injection via LLMMathChain

    Patch now · Disclosed · since 5 Apr 2023 · CVE-2023-29374

    AI
  3. closed
    AI
  4. closed9.8
    LangChain family CVE-2023-32785: Langchain SQL Injection vulnerability

    Patch now · Disclosed · since 21 Oct 2023 · CVE-2023-32785

    AI
  5. closed
    AI
  6. closed
    ChatGPT ChatGPT Bug Exposes User Chat Histories and Payment Data

    Breaches & attacks · Real loss · since 20 Mar 2023

    AI