CVE-2025-40698 Overview
CVE-2025-40698 is a SQL injection vulnerability [CWE-89] in Prevengos v2.44 by Nedatec Consulting. The flaw resides in the /servicios/autorizaciones.asmx/mfsRecuperarListado endpoint. Attackers can inject SQL payloads through the mpsCentroin, mpsEmpresa, mpsProyecto, and mpsContrata POST parameters. Successful exploitation allows adversaries to read, create, update, and delete database records. The vulnerability requires low-privilege authentication and can be triggered over the network without user interaction.
Critical Impact
An authenticated attacker can compromise the confidentiality, integrity, and availability of the underlying database through crafted POST requests to the affected SOAP endpoint.
Affected Products
- Prevengos v2.44
- Vendor: Nedatec Consulting
- Affected endpoint: /servicios/autorizaciones.asmx/mfsRecuperarListado
Discovery Timeline
- 2025-09-25 - CVE-2025-40698 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-40698
Vulnerability Analysis
The vulnerability is a classic SQL injection flaw in a SOAP-based web service exposed by Prevengos v2.44. The mfsRecuperarListado method under /servicios/autorizaciones.asmx accepts user-supplied values through four POST parameters. These parameters are concatenated into backend SQL statements without sufficient sanitization or parameterization. An authenticated attacker with low privileges can therefore alter query logic and interact directly with the underlying database engine.
Because the injection point supports full query manipulation, attackers can perform SELECT, INSERT, UPDATE, and DELETE operations. This exposes stored authorization data managed by the Prevengos platform, which is used for occupational risk prevention workflows in Spanish enterprises.
Root Cause
The root cause is improper neutralization of special elements used in SQL commands [CWE-89]. The mfsRecuperarListado handler builds SQL queries by concatenating the mpsCentroin, mpsEmpresa, mpsProyecto, and mpsContrata values into the query string. No prepared statements or parameterized queries are used, and input validation does not reject SQL metacharacters.
Attack Vector
Exploitation is performed remotely over the network. The attacker must hold valid low-privilege credentials to reach the SOAP endpoint. Once authenticated, the attacker sends a crafted HTTP POST request containing SQL payloads in one or more of the four vulnerable parameters. The backend database processes the injected SQL, returning data or applying destructive changes based on the payload. Refer to the INCIBE Notice on Multiple Vulnerabilities for advisory details.
Detection Methods for CVE-2025-40698
Indicators of Compromise
- POST requests to /servicios/autorizaciones.asmx/mfsRecuperarListado containing SQL metacharacters such as single quotes, UNION, SELECT, --, or ; in the mpsCentroin, mpsEmpresa, mpsProyecto, or mpsContrata parameters.
- Unexpected database errors or delayed responses returned from the autorizaciones.asmx service.
- Anomalous read or write activity against Prevengos database tables outside normal application workflows.
Detection Strategies
- Deploy a web application firewall rule that inspects POST bodies to autorizaciones.asmx for SQL injection signatures.
- Enable database query auditing to record statements originating from the Prevengos application service account.
- Correlate authentication events with subsequent high-volume queries against authorization tables to spot abuse of valid credentials.
Monitoring Recommendations
- Alert on HTTP 500 responses from the mfsRecuperarListado endpoint, which often indicate injection probing.
- Monitor for spikes in database transactions tied to the four affected parameters.
- Log and review all administrative operations on Prevengos database schemas.
How to Mitigate CVE-2025-40698
Immediate Actions Required
- Contact Nedatec Consulting to obtain a fixed release or vendor guidance for Prevengos v2.44.
- Restrict network access to the /servicios/autorizaciones.asmx endpoint to trusted internal subnets and authenticated users only.
- Rotate credentials for accounts with access to the Prevengos service if exploitation is suspected.
Patch Information
At the time of publication, no vendor patch reference is listed in the NVD entry. Consult the INCIBE Notice on Multiple Vulnerabilities for the latest remediation status and contact Nedatec Consulting directly for updates.
Workarounds
- Place a web application firewall in front of the Prevengos application and block SQL injection payloads targeting the four vulnerable parameters.
- Enforce least-privilege database accounts so the Prevengos service cannot perform schema changes or access data outside its required scope.
- Enable detailed application and database logging to accelerate identification and forensic analysis of injection attempts.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

