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
- 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.
- 26 Mar 2023InjectGPT: the most polite exploit ever
- 26 Mar 2023Reddit thread on InjectGPT
- 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
- 2023-03-26InjectGPT: the most polite exploit everblog.luitjes.it · blog.luitjes.it/posts/injectgpt-most-polite-exploit-ever
- 2023-03-26Reddit thread on InjectGPTreddit.com · reddit.com/r/netsec/comments/121gpay/injectgpt_remote_code_execution_by_asking_n
Research and catalogues
- 2023-03-26AVID-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.AVID · github.com/avidml/avid-db/blob/main/reports/2023/AVID-2023-R0003.json
- 2023-03-31AVID-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.AVID · github.com/avidml/avid-db/blob/main/vulnerabilities/2023/AVID-2023-V028.json
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
- lane
- Research
- AI role
- Attack on AI
- categories
- Prompt injectionAgent hijack
- severity
- 1 · Research / proof of concept
- targets
- OpenAI, Framework / tooling
- owasp llm top 10
- LLM01:2025 Prompt InjectionLLM06:2025 Excessive Agency
- 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
- closedMathGPT Code Execution in MathGPT via Prompt Injection
Research · since 28 Jan 2023
AI - closed9.8LangChain family CVE-2023-29374: LangChain code injection via LLMMathChain
Patch now · Disclosed · since 5 Apr 2023 · CVE-2023-29374
AI - closedChatGPT ChatGPT Conversation Exfiltration via Indirect Prompt Injection
Research · since May 2023 (approx.)
AI - closed9.8LangChain family CVE-2023-32785: Langchain SQL Injection vulnerability
Patch now · Disclosed · since 21 Oct 2023 · CVE-2023-32785
AI - closedBing Chat Bing Chat Data Exfiltration via Indirect Prompt Injection
Research · since 2023 (approx.)
AI - closedChatGPT ChatGPT Bug Exposes User Chat Histories and Payment Data
Breaches & attacks · Real loss · since 20 Mar 2023
AI