{"id":"CVE-2025-66440","aliases":["CVE-2025-66440"],"related":[],"kind":"vulnerability","state":"published","title":"An issue was discovered in Frappe ERPNext through 15.89.0.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-15T00:00:00.000Z","modified":"2026-10-14T13:10:00.187Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"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-89"],"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://github.com/frappe/frappe/security","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://iamanc.github.io/post/erpnext-sqli","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-12-16T15:22:52.332Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66440","url":"https://www.cve.org/CVERecord?id=CVE-2025-66440","licence":"CVE Terms of Use","modified":"2025-12-16T15:25:19.698Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66440","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66440","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.415Z","epss":{"score":0.00406,"percentile":0.36932,"date":"2026-12-01T12:00:22.000Z"}}