Skip to content
Fencer Intel
medium 4.9

CVE-2022-21640 json

Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer).

published 4y ago modified 4mo ago also EUVD-2022-26864

cvss
4.9
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.5%
EPSS 1.5% chance of exploitation in 30 days, percentile 73%
public exploits
0
none known

Summary

Vulnerability in the MySQL Server product of Oracle MySQL (component: Server: Optimizer). Supported versions that are affected are 8.0.30 and prior. 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).

Patch / fix

  • oracle mysql 8.0.31
  • oracle mysql_server 8.0.31
  • mysql-8.0 Ubuntu 20.04 LTS 8.0.31-0ubuntu0.20.04.1
  • mysql-8.0 Ubuntu 22.04 LTS 8.0.31-0ubuntu0.22.04.1

ubuntu advisories UBUNTU-CVE-2022-21640

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • mysql RHEL 9 8.0.32-1.el9_2
  • mysql-libs RHEL 9 8.0.32-1.el9_2
  • mysql-test RHEL 9 8.0.32-1.el9_2
  • mysql-common RHEL 9 8.0.32-1.el9_2
  • mysql-errmsg RHEL 9 8.0.32-1.el9_2
  • mysql-server RHEL 9 8.0.32-1.el9_2
  • mecab RHEL 8 0.996-2.module+el8.8.0+18436+8918dd75
  • mysql RHEL 8 8.0.32-1.module+el8.8.0+18446+fca6280e

red hat advisories RHSA-2023:2621RHSA-2023:3087RHSA-2023:1102

  • mecab AlmaLinux 8 0.996-2.module_el8.6.0+3340+d764b636
  • mysql AlmaLinux 8 8.0.32-1.module_el8.8.0+3567+56a616e4
  • mysql-libs AlmaLinux 8 8.0.32-1.module_el8.8.0+3567+56a616e4
  • mysql-test AlmaLinux 8 8.0.32-1.module_el8.8.0+3567+56a616e4
  • mecab-ipadic AlmaLinux 8 2.7.0.20070801-16.module_el8.6.0+3340+d764b636
  • mysql-common AlmaLinux 8 8.0.32-1.module_el8.8.0+3567+56a616e4
  • mysql-errmsg AlmaLinux 8 8.0.32-1.module_el8.8.0+3567+56a616e4
  • mysql-server AlmaLinux 8 8.0.32-1.module_el8.8.0+3567+56a616e4

almalinux advisories ALSA-2023:3087ALSA-2023:2621

  • mecab Rocky Linux 8 0.996-2.module+el8.10.0+1676+9b4b6e24
  • mecab Rocky Linux 8 0.996-2.module+el8.10.0+2091+db4d14f6
  • mecab Rocky Linux 8 0.996-2.module+el8.10.0+1937+28fbbc83
  • mecab-ipadic Rocky Linux 8 2.7.0.20070801-16.module+el8.10.0+1676+9b4b6e24

rocky linux advisories RLSA-2023:3087

  • mysql CBL-Mariner 2.0 8.0.31-1

azure linux advisories AZL-11213

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Is CVE-2022-21640 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-21640 updated cvss 4.9

mysql: Server: Optimizer unspecified vulnerability (CPU Oct 2022)

  • Red Hat Enterprise Linux AppStream (v. 8) mecab 0.996-2.module+el8.8.0+18436+8918dd75, mysql 8.0.32-1.module+el8.8.0+18446+fca6280e, mysql-libs 8.0.32-1.module+el8.8.0+18446+fca6280e, mysql-test 8.0.32-1.module+el8.8.0+18446+fca6280e, mysql-common 8.0.32-1.module+el8.8.0+18446+fca6280e, mysql-errmsg 8.0.32-1.module+el8.8.0+18446+fca6280e, +3 more
    fixed: vendor fix RHSA-2023:3087
  • Red Hat Enterprise Linux AppStream (v. 9) mysql 8.0.32-1.el9_2, mysql-common 8.0.32-1.el9_2, mysql-errmsg 8.0.32-1.el9_2, mysql-server 8.0.32-1.el9_2 Red Hat Enterprise Linux CRB (v. 9) mysql-libs 8.0.32-1.el9_2, mysql-test 8.0.32-1.el9_2
    fixed: vendor fix RHSA-2023:2621
  • Red Hat Software Collections for RHEL Workstation(v. 7) rh-mysql80-mysql 8.0.32-1.el7, rh-mysql80-mysql-test 8.0.32-1.el7, rh-mysql80-mysql-common 8.0.32-1.el7, rh-mysql80-mysql-config 8.0.32-1.el7, rh-mysql80-mysql-errmsg 8.0.32-1.el7, rh-mysql80-mysql-server 8.0.32-1.el7, +4 more Red Hat Software Collections for RHEL(v. 7) rh-mysql80-mysql 8.0.32-1.el7, rh-mysql80-mysql-test 8.0.32-1.el7, rh-mysql80-mysql-common 8.0.32-1.el7, rh-mysql80-mysql-config 8.0.32-1.el7, rh-mysql80-mysql-errmsg 8.0.32-1.el7, rh-mysql80-mysql-server 8.0.32-1.el7, +4 more
    fixed: vendor fix RHSA-2023:1102
  • Red Hat Enterprise Linux 6 mysql, mysql-libs, mysql-test, mysql-bench, mysql-server, mysql-embedded Red Hat Enterprise Linux 7 mariadb, mariadb-libs, mariadb-test, mariadb-bench, mariadb-server, mariadb-embedded Red Hat Enterprise Linux 8 Judy, galera, mariadb, mariadb-pam, mariadb-test, mariadb-backup, +8 more Red Hat Enterprise Linux 9 mariadb, mariadb-pam, mariadb-test, mariadb-backup, mariadb-common, mariadb-errmsg, +6 more Red Hat OpenStack Platform 13 (Queens) mariadb, mariadb-libs, mariadb-test, mariadb-common, mariadb-config, mariadb-errmsg, +3 more Red Hat Software Collections rh-mariadb103-mariadb, rh-mariadb105-mariadb, rh-mariadb105-mariadb-pam, rh-mariadb103-mariadb-test, rh-mariadb105-mariadb-libs, rh-mariadb105-mariadb-test, +32 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2y ago

Exploit prediction

1.46% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 3.1 4.9 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Affected products

  • Oracle Corporation MySQL Server

Classification

Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Improve version ranges to indicate fix.