Skip to main content

PHP CVE-2025-7510

| EUVD-2025-21240 MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2025-07-13 cna@vuldb.com
5.5
CVSS 4.0 · NVD
Share

Severity by source

NVD PRIMARY
5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

6
Severity Changed
Apr 29, 2026 - 01:11 NVD
HIGH MEDIUM
CVSS changed
Apr 29, 2026 - 01:11 NVD
7.3 (HIGH) 5.5 (MEDIUM)
EUVD ID Assigned
Mar 16, 2026 - 09:18 euvd
EUVD-2025-21240
Analysis Generated
Mar 16, 2026 - 09:18 vuln.today
PoC Detected
Jul 15, 2025 - 17:44 vuln.today
Public exploit code
CVE Published
Jul 13, 2025 - 01:15 nvd
HIGH 7.3

DescriptionCVE.org

A vulnerability has been found in code-projects Modern Bag 1.0 and classified as critical. This vulnerability affects unknown code of the file /admin/productadd_back.php. The manipulation of the argument namepro leads to sql injection. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.

AnalysisAI

CVE-2025-7510 is a critical SQL injection vulnerability in code-projects Modern Bag 1.0 affecting the /admin/productadd_back.php file, where the 'namepro' parameter is improperly sanitized allowing remote unauthenticated attackers to execute arbitrary SQL queries. The vulnerability has been publicly disclosed with exploit code available, and carries a CVSS 7.3 score indicating moderate-to-high real-world risk with low attack complexity. An attacker can extract, modify, or delete database contents without authentication, compromising confidentiality, integrity, and availability of the application.

Technical ContextAI

Modern Bag 1.0 is a web application (CPE likely: cpe:2.3:a:code-projects:modern_bag:1.0:*:*:*:*:*:*:*) written in PHP, commonly deployed on Apache/Nginx with MySQL or MariaDB backends. The vulnerability stems from CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component - 'Injection'), a parent category encompassing SQL injection. The /admin/productadd_back.php endpoint accepts user-supplied input via the 'namepro' parameter and constructs SQL queries without parameterized statements or proper input validation, allowing attackers to inject malicious SQL syntax. This is a classic first-order SQL injection vulnerability in a PHP backend handler for product administration.

RemediationAI

{'type': 'Patching', 'description': 'Contact code-projects for security updates to Modern Bag >1.0. No official patch version is referenced in available data; vendor advisory should be requested immediately.', 'priority': 'CRITICAL'} {'type': 'Code-Level Mitigation', 'description': 'If patching is delayed, modify /admin/productadd_back.php to use parameterized prepared statements (MySQLi prepared statements or PDO with bound parameters) for all SQL queries. Example: Use $mysqli->prepare() or PDO::prepare() instead of string concatenation.', 'code_example': "Unsafe: $query = 'INSERT INTO products (namepro) VALUES (' . $_POST['namepro'] . ')'; Correct: $stmt = $mysqli->prepare('INSERT INTO products (namepro) VALUES (?)'); $stmt->bind_param('s', $_POST['namepro']); $stmt->execute();"} {'type': 'Input Validation', 'description': 'Implement strict input validation: whitelist allowed characters for product names, enforce maximum length limits, and use htmlspecialchars() for display contexts.', 'priority': 'HIGH'} {'type': 'WAF/IDS Rule', 'description': "Deploy Web Application Firewall rules to detect SQL injection patterns in POST parameters to /admin/productadd_back.php (e.g., detection of quotes, UNION, SELECT, DROP keywords in 'namepro' parameter).", 'priority': 'MEDIUM'} {'type': 'Access Control Hardening', 'description': 'Restrict access to /admin/ directory via IP whitelisting, VPN, or authentication bypass prevention until patch is applied.', 'priority': 'HIGH'}

Share

CVE-2025-7510 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy