CVE-2025-66434: Code Injection

Published Dec 15, 2025
·
Updated

An SSTI (Server-Side Template Injection) vulnerability exists in the getdunninglettertext method of Frappe ERPNext through 15.89.0. The function renders attacker-controlled Jinja2 templates (bodytext) using frappe.rendertemplate() 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 getsafeglobals(). 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.

Affected Software

2 affected components
pypi/frappe<=15.89.0
Frappe ERPNext<=15.89.0

Event History

Dec 15, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-66434?

The severity of CVE-2025-66434 is considered high due to its ability to allow remote code execution via Server-Side Template Injection.

2

How do I fix CVE-2025-66434?

To fix CVE-2025-66434, update Frappe ERPNext to a version higher than 15.89.0 where the vulnerability is patched.

3

What is the impact of CVE-2025-66434?

The impact of CVE-2025-66434 includes unauthorized access and the potential for attackers to execute arbitrary code on the server.

4

Which versions of Frappe ERPNext are affected by CVE-2025-66434?

Versions of Frappe ERPNext up to and including 15.89.0 are affected by CVE-2025-66434.

5

What kind of attack can exploit CVE-2025-66434?

CVE-2025-66434 can be exploited through Server-Side Template Injection (SSTI), allowing attackers to render and execute arbitrary Jinja2 templates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203