CVE-2025-7185
Published: 08 July 2025
Summary
CVE-2025-7185 is a medium-severity Injection (CWE-74) vulnerability in Code-Projects Library System. Its CVSS base score is 5.5 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 48.6% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SC-7 (Boundary Protection).
Deeper analysis
CVE-2025-7185 is a critical SQL injection vulnerability (CWE-74, CWE-89) in code-projects Library System 1.0, affecting unknown code within the /approve.php file. The issue arises from manipulation of the ID argument, allowing remote attackers to inject malicious SQL payloads. Published on 2025-07-08, it carries a CVSS v3.1 base score of 7.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
Unauthenticated remote attackers can exploit this vulnerability with low attack complexity and no user interaction required. Successful exploitation enables partial impacts on confidentiality, integrity, and availability, such as unauthorized data access, modification, or disruption via SQL injection.
Advisories and related details are available through references including VulDB entries (vuldb.com/?ctiid.315124, vuldb.com/?id.315124, vuldb.com/?submit.607186), a GitHub issue at github.com/HeDunSec/cve/issues/1, and the vendor site at code-projects.org. The exploit has been publicly disclosed and may be in use.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-20525
Vulnerability details
A vulnerability was found in code-projects Library System 1.0. It has been declared as critical. This vulnerability affects unknown code of the file /approve.php. The manipulation of the argument ID leads to sql injection. The attack can be initiated remotely.…
more
The exploit has been disclosed to the public and may be used.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
SQL injection in public-facing /approve.php enables exploitation of public-facing applications (T1190), abuse of server software components like web app/DB backend (T1505), and data collection from databases via arbitrary queries (T1213.006).
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Directly requires validation of the ID parameter in approve.php to reject SQL metacharacters and block injection payloads before they reach the database.
Boundary-protection mechanisms such as a WAF or application-layer filter can inspect and drop remote SQL-injection attempts targeting /approve.php.
Continuous monitoring of web-application traffic and database query logs can identify anomalous SQL syntax originating from unauthenticated remote requests.