{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-45312",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-05-11T20:50:30.538Z",
        "datePublished": "2026-05-29T12:24:07.996Z",
        "dateUpdated": "2026-06-02T01:02:42.683Z"
    },
    "containers": {
        "cna": {
            "title": "RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-1336",
                            "lang": "en",
                            "description": "CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 9.9,
                        "baseSeverity": "CRITICAL",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6"
                }
            ],
            "affected": [
                {
                    "vendor": "infiniflow",
                    "product": "ragflow",
                    "versions": [
                        {
                            "version": "<= 0.24.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-05-29T12:24:07.996Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In 0.24.0 and earlier, a Jinja2 template injection in the prompt generator (rag/prompts/generator.py) allows any authenticated user to execute arbitrary OS commands on the server. Any normal user can register, create a Canvas workflow with a DuckDuckGo + LLM component chain, and trigger the SSTI."
                }
            ],
            "source": {
                "advisory": "GHSA-wpg4-h5g2-jxm6",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "references": [
                    {
                        "url": "https://github.com/infiniflow/ragflow/security/advisories/GHSA-wpg4-h5g2-jxm6",
                        "tags": [
                            "exploit"
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-06-02T01:01:26.376594Z",
                                "id": "CVE-2026-45312",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-06-02T01:02:42.683Z"
                }
            }
        ]
    }
}