Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-50080 Overview
CVE-2025-50080 is a denial-of-service vulnerability in the Oracle MySQL Server Stored Procedure component. The flaw allows a high-privileged attacker with network access to crash or hang the database server through multiple protocols. Oracle disclosed the issue in the July 2025 Critical Patch Update.
Affected versions span 8.0.0-8.0.42, 8.4.0-8.4.5, and 9.0.0-9.3.0. The vulnerability maps to CWE-400: Uncontrolled Resource Consumption and impacts availability only, with no confidentiality or integrity consequences.
Critical Impact
Successful exploitation produces a complete denial of service through hangs or repeatable crashes of the MySQL Server process, disrupting dependent applications.
Affected Products
- Oracle MySQL Server versions 8.0.0 through 8.0.42
- Oracle MySQL Server versions 8.4.0 through 8.4.5
- Oracle MySQL Server versions 9.0.0 through 9.3.0
Discovery Timeline
- 2025-07-15 - Oracle published the vulnerability in the July 2025 Critical Patch Update
- 2025-07-15 - CVE-2025-50080 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-50080
Vulnerability Analysis
The vulnerability resides in the Stored Procedure subsystem of MySQL Server. An authenticated attacker holding elevated database privileges can submit crafted stored procedure logic that exhausts server resources or triggers an unrecoverable fault. The outcome is either a persistent server hang or a reproducible crash of the mysqld process.
The attack reaches the server over the network using any protocol MySQL exposes, including the native MySQL protocol and X Protocol. No user interaction is required, and the attack complexity is low once the attacker holds the necessary privileges. The scope remains unchanged, so impact is contained to the vulnerable MySQL instance.
Because confidentiality and integrity are not affected, this issue is primarily a service-availability risk. Environments running MySQL as a backing store for business-critical applications face operational disruption rather than data compromise.
Root Cause
The underlying weakness is classified as CWE-400: Uncontrolled Resource Consumption. The stored procedure component fails to properly bound resource usage when processing specific inputs, allowing a privileged client to exhaust server resources. Oracle has not published implementation-level details beyond the component attribution.
Attack Vector
An attacker authenticates to MySQL Server with a high-privileged account, then issues stored procedure operations over any supported network protocol. The malicious payload drives the server into a hang state or triggers a crash, terminating all active sessions and halting query processing until the service is restarted. Repeated attempts after restart reproduce the condition until the server is patched.
Technical exploitation details are described in prose only. Refer to the Oracle Critical Patch Update July 2025 for Oracle's official notice.
Detection Methods for CVE-2025-50080
Indicators of Compromise
- Unexpected mysqld process crashes or restarts recorded in system journal and MySQL error logs
- Repeated MySQL server hangs with growing connection backlogs and client timeouts
- Anomalous stored procedure invocations originating from accounts with elevated privileges such as SUPER, CREATE ROUTINE, or ALTER ROUTINE
- Core dumps from the MySQL process appearing shortly after stored procedure execution
Detection Strategies
- Correlate MySQL error log entries containing signal 11 or assertion failures with recent stored procedure activity in the general query log
- Audit mysql.proc and information_schema.ROUTINES for newly created or modified procedures from privileged accounts
- Enable the MySQL Enterprise Audit plugin or audit_log to capture CALL statements and routine definitions for forensic review
Monitoring Recommendations
- Alert on mysqld process restart events and abnormal exit codes on database hosts
- Monitor connection pool saturation and query latency to detect server hang conditions early
- Track privileged account activity, especially routine creation and modification events, through SIEM correlation rules
How to Mitigate CVE-2025-50080
Immediate Actions Required
- Apply the fixes from the Oracle Critical Patch Update July 2025 to all affected MySQL Server instances
- Inventory MySQL deployments and confirm versions against the affected ranges 8.0.0-8.0.42, 8.4.0-8.4.5, and 9.0.0-9.3.0
- Review and reduce accounts holding SUPER, CREATE ROUTINE, ALTER ROUTINE, and EXECUTE privileges to the minimum required
- Restrict network exposure of MySQL ports 3306 and 33060 to trusted application subnets only
Patch Information
Oracle released fixes for CVE-2025-50080 in the July 2025 Critical Patch Update. Upgrade to MySQL Server 8.0.43, 8.4.6, 9.3.1, or later as applicable to the deployed branch. Patch details and download references are available in the Oracle Critical Patch Update Advisory - July 2025.
Workarounds
- Revoke CREATE ROUTINE and ALTER ROUTINE privileges from non-essential accounts until patching is complete
- Enforce network segmentation and firewall rules so only trusted application hosts can reach the MySQL service
- Enable audit logging to detect stored procedure abuse while patches are being staged
- Deploy database activity monitoring to terminate sessions exhibiting resource-exhaustion patterns
# Review accounts with routine-management privileges
mysql -u root -p -e "SELECT grantee, privilege_type FROM information_schema.user_privileges WHERE privilege_type IN ('CREATE ROUTINE','ALTER ROUTINE','SUPER');"
# Revoke routine-management privileges from a non-essential account
mysql -u root -p -e "REVOKE CREATE ROUTINE, ALTER ROUTINE ON *.* FROM 'appuser'@'%'; FLUSH PRIVILEGES;"
# Verify installed MySQL version
mysql --version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

