{"id":"CVE-2025-52040","published":"2025-10-01T00:00:00Z","modified":"2025-10-01T14:51:04Z","title":"In Frappe ERPNext 15.57.5, the function get_blanket_orders() at erpnext/controllers/queries.py is vulnerable to SQL…","vendor":null,"product":null,"tier":"tail","description":{"text":"In Frappe ERPNext 15.57.5, the function get_blanket_orders() at erpnext/controllers/queries.py is vulnerable to SQL Injection, which allows an attacker can extract all information from databases by injecting a SQL query into the blanket_order_type parameter.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00327,"percentile":0.26232,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/Vietsunshine-Electronic-Solution-JSC/Vulnerability-Disclosures/blob/main/2025/Frappe%20Framework%20-%20Multiple%20SQL%20Injection.md","tags":[]},{"url":"https://github.com/frappe/erpnext/pull/49192/commits/1db135262d9474411ef54e3367d24bb169d2503e","tags":[]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":5.25},{"name":"CVSS severity","points":5.74}]},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-10-01T14:50:37.145027Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-33231","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2025-52047-family-cve-2025-52047","parents":[{"from":"CVE-2025-52047","to":"CVE-2025-52040","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["erpnext/controllers/queries.py"],"commits":["https://github.com/frappe/erpnext/commit/1db135262d9474411ef54e3367d24bb169d2503e","https://github.com/frappe/erpnext/commit/6320f7290f93a5278ffdfaa790af70427c20a1c8"],"basis":"rarely changed file"}]}]}}