CWE-1427 詳細

CWE-1427

Improper Neutralization of Input Used for LLM Prompting
2024-11-19
00h00 +00:00
Incomplete
2026-10-28
00h00 +00:00
特定のCWEの通知
特定のCWEの変更情報をいち早くお届けします。
通知を管理する

名前: Improper Neutralization of Input Used for LLM Prompting

The product uses externally-provided data to build prompts provided to large language models (LLMs), but the way these prompts are constructed causes the LLM to fail to distinguish between user-supplied inputs and developer provided system directives.

一般情報

導入モード

Architecture and Design
Implementation
Implementation
System Configuration
Integration
Bundling

適用可能なプラットフォーム

言語

クラス: Not Language-Specific (Undetermined)

オペレーティングシステム

クラス: Not OS-Specific (Undetermined)

アーキテクチャ

クラス: Not Architecture-Specific (Undetermined)

テクノロジー

名前: AI/ML (Undetermined)

一般的な結果

スコープ 影響 可能性
Confidentiality
Integrity
Availability
Execute Unauthorized Code or Commands, Varies by Context
ConfidentialityRead Application Data
IntegrityModify Application Data, Execute Unauthorized Code or Commands
Access ControlRead Application Data, Modify Application Data, Gain Privileges or Assume Identity

観察された例

参考文献 説明

CVE-2023-32786

Chain: LLM integration framework has prompt injection (CWE-1427) that allows an attacker to force the service to retrieve data from an arbitrary URL, essentially providing SSRF (CWE-918) and potentially injecting content into downstream tasks.

CVE-2024-5184

ML-based email analysis product uses an API service that allows a malicious user to inject a direct prompt and take over the service logic, forcing it to leak the standard hard-coded system prompts and/or execute unwanted prompts to leak sensitive data.

CVE-2024-5565

Chain: library for generating SQL via LLMs using RAG uses a prompt function to present the user with visualized results, allowing altering of the prompt using prompt injection (CWE-1427) to run arbitrary Python code (CWE-94) instead of the intended visualization code.

CVE-2024-48746

AI-based integration with business intel dashboard allows prompt injection through its natural language component, allowing execution of arbitrary code

潜在的な緩和策

Phases : Architecture and Design
Phases : Implementation
Phases : Architecture and Design
Phases : Implementation
Phases : Installation // Operation
Phases : System Configuration

検出方法

Dynamic Analysis with Manual Results Interpretation

Dynamic Analysis with Automated Results Interpretation

Architecture or Design Review

脆弱性マッピングノート

理由 : This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
コメント : Ensure that the weakness being identified involves improper neutralization during prompt generation. A different CWE might be needed if the core concern is related to inadvertent insertion of sensitive information, generating prompts from third-party sources that should not have been trusted (as may occur with indirect prompt injection), or jailbreaking, then the root cause might be a different weakness.

参考文献

REF-1450

OWASP Top 10 for Large Language Model Applications - LLM01
OWASP.
https://genai.owasp.org/llmrisk/llm01-prompt-injection/

REF-1451

IBM - What is a prompt injection attack?
Matthew Kosinski, Amber Forrest.
https://www.ibm.com/think/topics/prompt-injection

REF-1452

Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection
Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, Mario Fritz.
https://arxiv.org/abs/2302.12173

登録情報

名前 組織 日付 リリース日 Version
Max Rattray Praetorian 2024-06-21 +00:00 2024-11-19 +00:00 4.16

変更履歴

名前 組織 日付 コメント
CWE Content Team MITRE 2025-09-09 +00:00 updated References
CWE Content Team MITRE 2025-12-11 +00:00 updated Observed_Examples, Weakness_Ordinalities
CWE Content Team MITRE 2026-04-30 +00:00 updated Relationships
CWE Content Team MITRE 2026-10-28 +00:00 updated Demonstrative_Examples