cve.bz

CVE-2025-21540 oracle mysql server: Incorrect Authorization

5.4 mediumEPSS 0.5%

Medium (5.4) in oracle mysql server. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Security: Privileges). Supported versions that are affected are 8.0.40 and prior, 8.4.3 and prior and 9.1.0 and prior. Easily exploitable vulnerability allows low privileged attacker with network access via multiple protocols to compromise MySQL Server. Successful attacks of this vulnerability can result in unauthorized update, insert or delete access to some of MySQL Server accessible data as well as unauthorized read access to a subset of MySQL Server accessible data. CVSS 3.1 Base Score 5.4 (Confidentiality and Integrity impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-21540 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-21540?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-21540?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-21540 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Oracle Corporation MySQL Serverthrough 8.0.40
Oracle Corporation MySQL Serverthrough 8.4.3
Oracle Corporation MySQL Serverthrough 9.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu14.04:LTSmysql-5.5no fix listedUBUNTU-CVE-2025-21540
Ubuntu16.04:LTSpercona-server-5.6, percona-xtradb-cluster-5.6no fix listedUBUNTU-CVE-2025-21540
Ubuntu20.04:LTSmysql-8.08.0.41-0ubuntu0.20.04.1UBUNTU-CVE-2025-21540 USN-7245-1
Ubuntu22.04:LTSmysql-8.08.0.41-0ubuntu0.22.04.1UBUNTU-CVE-2025-21540 USN-7245-1
Ubuntu24.04:LTSmysql-8.08.0.41-0ubuntu0.24.04.1UBUNTU-CVE-2025-21540 USN-7245-1
UbuntuPro:16.04:LTS, Pro:18.04:LTSmysql-5.7no fix listedUBUNTU-CVE-2025-21540
Red Hatenterprise_linux:8::appstreammecab, mecab-devel, mecab-debuginfo and 1 more0:0.996-2.module+el8.10.0+22857+7f331eddRHSA-2025:1673
Red Hatenterprise_linux:8::appstreammecab-ipadic, mecab-ipadic-EUCJP0:2.7.0.20070801-17.module+el8.10.0+22857+7f331eddRHSA-2025:1673
Red Hatenterprise_linux:8::appstreammysql, mysql-libs, mysql-test and 10 more0:8.0.41-1.module+el8.10.0+22857+7f331eddRHSA-2025:1673
Red Hatenterprise_linux:9::appstreammysql, mysql-common, mysql-errmsg and 7 more0:8.0.41-2.el9_5RHSA-2025:1671
Red Hatenterprise_linux:9::crbmysql-libs, mysql-test, mysql-devel and 6 more0:8.0.41-2.el9_5RHSA-2025:1671
AlmaLinux8mecab, mecab-devel0.996-2.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux8mecab, mecab-devel0.996-2.module_el8.6.0+3340+d764b636ALSA-2025:1673
AlmaLinux8mecab-ipadic, mecab-ipadic-EUCJP2.7.0.20070801-17.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux8mysql, mysql-libs, mysql-test and 4 more8.0.41-1.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux9mysql, mysql-libs, mysql-test and 4 more8.0.41-2.el9_5ALSA-2025:1671
Rocky Linux8mecab0:0.996-2.module+el8.10.0+1676+9b4b6e24RLSA-2025:1673
Rocky Linux8mecab-ipadic0:2.7.0.20070801-17.module+el8.10.0+1937+28fbbc83RLSA-2025:1673
Rocky Linux8mysql0:8.0.41-1.module+el8.10.0+1937+28fbbc83.0.1RLSA-2025:1673
Rocky Linux9mysql0:8.0.41-2.el9_5RLSA-2025:1671

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat ships MySQL Server in Red Hat Enterprise Linux. This vulnerability has been addressed through regular MySQL release updates.

Red Hat's mitigation

Restrict network access to the MySQL Server to trusted clients only.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8mysql:8.0-8100020250212154709.489197e6Fixed 2025-02-19RHSA-2025:1673
Red Hat Enterprise Linux 9mysql-0:8.0.41-2.el9_5Fixed 2025-02-19RHSA-2025:1671
Red Hat Enterprise Linux 10mysql8.4Affected
Red Hat Enterprise Linux 6mysqlNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-21540.

References

Check your stackJSON