CVE-2025-66440 SQL injection in n/a
Attackers can extract arbitrary database data via SQL injection in the payment entry module of ERPNext.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-66440?
CVE-2025-66440 is a critical SQL injection vulnerability in Frappe Erpnext, published on 15 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Frappe ERPNext through 15.89.0. Function get_outstanding_reference_documents() at erpnext/accounts/doctype/payment_entry/payment_entry.py is vulnerable to SQL Injection. It allows an attacker to extract arbitrary data from the database by injecting SQL payloads via the to_posting_date parameter, which is directly interpolated into the query without proper sanitization or parameter binding.
Weakness: CWE-89
Which versions are affected by CVE-2025-66440?
It affects 1 product.
Products include Frappe Erpnext.
How do I fix CVE-2025-66440?
No fix has been published for CVE-2025-66440 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2025-66440 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66440 exists.
Other vulnerabilities in Frappe Erpnext
Sources
Also known as GHSA-rx6f-68r9-j7w6.