{"id":"CVE-2025-66434","aliases":["CVE-2025-66434"],"related":[],"kind":"vulnerability","state":"published","title":"An SSTI (Server-Side Template Injection) vulnerability exists in the getdunninglettertext method of Frappe ERPNext through 15.89.0.","summary":"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 Type and its child table Dunning Letter Text can inject arbitrary Jinja expressions, resulting in server-side code execution within a restricted but still unsafe context. This can leak database information.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 Type and its child table Dunning Letter Text can inject arbitrary Jinja expressions, resulting in server-side code execution within a restricted but still unsafe context. This can leak database information.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad SSTI (Server-Side Template Injection) existe en el método get_dunning_letter_text de Frappe ERPNext a través de la versión 15.89.0. La función renderiza plantillas Jinja2 controladas por el atacante (body_text) usando frappe.render_template() con un contexto proporcionado por el usuario (doc). Aunque Frappe usa un SandboxedEnvironment personalizado, varias globales peligrosas como frappe.db.sql todavía están disponibles en el contexto de ejecución a través de get_safe_globals(). Un atacante autenticado con acceso para configurar Dunning Type y su tabla hija Dunning Letter Text puede inyectar expresiones Jinja arbitrarias, lo que resulta en ejecución de código del lado del servidor dentro de un contexto restringido pero aún inseguro. Esto puede filtrar información de la base de datos.","source":"nvd"}],"published":"2025-12-15T00:00:00.000Z","modified":"2026-11-03T22:03:07.981Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94","CWE-1336"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"15.89.0"}],"vendor":"frappe","product":"erpnext","cpe":"cpe:2.3:a:frappe:erpnext:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.notion.so/SSTI-bug-1-239e6086eadc8096bfcfe90551a3a483?source=copy_link","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://iamanc.github.io/post/erpnext-ssti-bug-1","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-12-17T15:51:50.610Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66434","url":"https://www.cve.org/CVERecord?id=CVE-2025-66434","licence":"CVE Terms of Use","modified":"2026-11-03T22:03:07.981Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66434","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66434","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.412Z","epss":{"score":0.00633,"percentile":0.51651,"date":"2026-12-01T12:00:22.000Z"}}