Skip to main content

PHP EUVD-2025-21271

| CVE-2025-7542 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-21271
Analysis Generated
Mar 16, 2026 - 09:18 vuln.today
PoC Detected
Jul 16, 2025 - 14:37 vuln.today
Public exploit code
CVE Published
Jul 13, 2025 - 21:15 nvd
HIGH 7.3

DescriptionCVE.org

A vulnerability was found in PHPGurukul User Registration & Login and User Management System 3.3 and classified as critical. Affected by this issue is some unknown functionality of the file /admin/user-profile.php. The manipulation of the argument uid leads to sql injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.

AnalysisAI

CVE-2025-7542 is a critical SQL injection vulnerability in PHPGurukul User Registration & Login and User Management System version 3.3, located in the /admin/user-profile.php file where the 'uid' parameter is not properly sanitized. An unauthenticated remote attacker can exploit this vulnerability to execute arbitrary SQL queries, potentially leading to unauthorized data access, modification, or system compromise. The vulnerability has been publicly disclosed with proof-of-concept code available, and exploitation requires no special privileges or user interaction, making it a high-priority threat for affected deployments.

Technical ContextAI

This vulnerability is rooted in CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component, also related to SQL injection patterns). The affected application is PHPGurukul's user management system, a PHP-based web application that processes user profile requests. The vulnerability exists in /admin/user-profile.php where the 'uid' (user ID) parameter is passed directly into SQL queries without proper parameterized queries, input validation, or prepared statement usage. The CPE for this vulnerability would be cpe:2.3:a:phpgurukul:user_registration_and_login_system:3.3:*:*:*:*:*:*:* indicating the specific version 3.3 is vulnerable. The root cause is improper input handling in a database query context, a classic SQL injection vulnerability pattern that allows attackers to manipulate SQL syntax and logic.

RemediationAI

{'type': 'Patching', 'action': 'Upgrade PHPGurukul User Registration & Login System to a patched version (version 3.4 or later if available). Contact PHPGurukul directly for patch availability and release timelines.', 'priority': 'Critical - Apply immediately'} {'type': 'Workaround - Input Validation', 'action': "If patching is not immediately possible, implement strict input validation on the 'uid' parameter in /admin/user-profile.php. Validate that 'uid' contains only numeric values using regex or type casting: if(!is_numeric($_GET['uid'])) { exit('Invalid input'); }", 'priority': 'High - Implement as interim measure'} {'type': 'Workaround - Prepared Statements', 'action': "Refactor all database queries in /admin/user-profile.php to use parameterized queries/prepared statements with bound variables instead of string concatenation. Example: $stmt = $pdo->prepare('SELECT * FROM users WHERE uid = ?'); $stmt->execute([$_GET['uid']]);", 'priority': 'High - Best practice implementation'} {'type': 'Access Control', 'action': 'Restrict access to /admin/ directory via web server configuration (Apache/.htaccess or Nginx) to trusted IP ranges or implement additional authentication layers. Require WAF rules to block SQL injection patterns in query parameters.', 'priority': 'Medium - Defense-in-depth measure'} {'type': 'Monitoring', 'action': "Enable SQL error logging and monitor for unusual SQL queries or errors in application and database logs. Set up alerts for 'uid' parameter values containing SQL keywords (UNION, SELECT, OR, etc.).", 'priority': 'Medium - Detection and response capability'}

Share

EUVD-2025-21271 vulnerability details – vuln.today

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