9.8critical
An issue was discovered in Frappe ERPNext through 15.89.0.
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.41% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| frappe erpnext | up to 15.89.0 | NVD |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
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.
NVD (es)
Se descubrió un problema en Frappe ERPNext hasta la versión 15.89.0. La función get_outstanding_reference_documents() en erpnext/accounts/doctype/payment_entry/payment_entry.py es vulnerable a inyección SQL. Permite a un atacante extraer datos arbitrarios de la base de datos inyectando cargas útiles SQL a través del parámetro to_posting_date, que se interpola directamente en la consulta sin una sanitización adecuada o vinculación de parámetros.
References
| https://github.com/frappe/frappe/security | product | |
| https://iamanc.github.io/post/erpnext-sqli | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66440 changed 2025-12-16 | CVE Terms of Use |
| NVD | CVE-2025-66440 changed 2026-10-14 | Public domain |