CVE Explorer
CVE-2025-66434
An SSTI (Server-Side Template Injection) vulnerability exists in the get_dunning_letter_text method of Frappe ERPNext through 15.89.0. The function renders attacker-controlled Jinja2 templates (body_text) using frappe.render_template() with a user-supplied context (doc). Although Frappe uses a custom SandboxedEnvironment, several dangerous globals such as frappe.db.sql are still available in the execution context via get_safe_globals(). An authenticated attacker with access to configure Dunning
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6b0cb4965b3b0472c00516b5fd8f79483db5771c20d963bc3b6ecf4757b62a94 · sha256:58a9e03ec0104bba… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-1336","description":"CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6b0cb4965b3b0472c00516b5fd8f79483db5771c20d963bc3b6ecf4757b62a94 · sha256:58a9e03ec0104bba… · /containers/adp/0/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:6b0cb4965b3b0472c00516b5fd8f79483db5771c20d963bc3b6ecf4757b62a94 · sha256:58a9e03ec0104bba… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:6b0cb4965b3b0472c00516b5fd8f79483db5771c20d963bc3b6ecf4757b62a94 · sha256:58a9e03ec0104bba… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6b0cb4965b3b0472c00516b5fd8f79483db5771c20d963bc3b6ecf4757b62a94 · sha256:58a9e03ec0104bba… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-1336","description":"CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6b0cb4965b3b0472c00516b5fd8f79483db5771c20d963bc3b6ecf4757b62a94 · sha256:58a9e03ec0104bba… · /containers/adp/0/problemTypes/0/descriptions/0
Source references
2 source assertions{"url":"https://iamanc.github.io/post/erpnext-ssti-bug-1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6b0cb4965b3b0472c00516b5fd8f79483db5771c20d963bc3b6ecf4757b62a94 · sha256:58a9e03ec0104bba… · /containers/cna/references/1
{"url":"https://www.notion.so/SSTI-bug-1-239e6086eadc8096bfcfe90551a3a483?source=copy_link"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6b0cb4965b3b0472c00516b5fd8f79483db5771c20d963bc3b6ecf4757b62a94 · sha256:58a9e03ec0104bba… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.