CVE-2025-25362 Details
Description
A Server-Side Template Injection (SSTI) vulnerability in Spacy-LLM v0.7.2 allows attackers to execute arbitrary code via injecting a crafted payload into the template field.
A Server-Side Template Injection (SSTI) vulnerability has been identified in SpaCy-LLM version 0.7.2. This vulnerability allows attackers to execute arbitrary code by injecting a crafted payload into the template field. The issue arises from the use of vulnerable functions in the Jinja2 template engine, which the SpaCy-LLM package relies on to generate prompts for large language models (LLMs). When the template is processed, the injected code can be executed on the server, leading to potential unauthorized access or control over the system.
Users are advised to update SpaCy-LLM to version 0.7.3 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 5, 2025CISA-ADP
Assessed Mar 6, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/explosion/spacy-llm/issues/492 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.hacktivesecurity.com/blog/2025/04/01/cve-2025-25362-old-vulnerabilities-new-victims-breaking-llm-prompts-with-ssti/ | [email protected] | ExploitRemedyTechnical Analysis |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| explosion/spacy-llm | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 2, 2025 | CVE Modified | [email protected] |
| Mar 6, 2025 | CVE Modified | CISA-ADP |
| Mar 5, 2025 | New CVE Received | [email protected] |
Volerion