CVE-2025-66440

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.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:frappe:erpnext:*:*:*:*:*:*:*:*

History

14 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (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.

05 Jan 2026, 18:23

Type Values Removed Values Added
CVSS v2 : unknown
v3 : 9.8
v2 : unknown
v3 : 8.8
References () https://github.com/frappe/frappe/security - () https://github.com/frappe/frappe/security - Product
References () https://iamanc.github.io/post/erpnext-sqli - () https://iamanc.github.io/post/erpnext-sqli - Exploit, Third Party Advisory
First Time Frappe erpnext
Frappe
CPE cpe:2.3:a:frappe:erpnext:*:*:*:*:*:*:*:*

16 Dec 2025, 16:16

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
CWE CWE-89

15 Dec 2025, 18:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-12-15 18:15

Updated : 2026-10-14 13:10


NVD link : CVE-2025-66440

Mitre link : CVE-2025-66440

CVE.ORG link : CVE-2025-66440


JSON object : View

Products Affected

frappe

  • erpnext
CWE
CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')