USN-4952-1

Source
https://ubuntu.com/security/notices/USN-4952-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-4952-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-4952-1
Upstream
Related
Published
2021-05-12T16:53:36.256381Z
Modified
2025-10-13T04:35:30Z
Summary
mysql-5.7, mysql-8.0 vulnerabilities
Details

Multiple security issues were discovered in MySQL and this update includes new upstream MySQL versions to fix these issues.

MySQL has been updated to 8.0.25 in Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. Ubuntu 18.04 LTS has been updated to MySQL 5.7.34.

In addition to security fixes, the updated packages contain bug fixes, new features, and possibly incompatible changes.

Please see the following for more information:

https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-34.html https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-24.html https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-25.html https://www.oracle.com/security-alerts/cpuapr2021.html

References

Affected packages

Ubuntu:18.04:LTS / mysql-5.7

Package

Name
mysql-5.7
Purl
pkg:deb/ubuntu/mysql-5.7@5.7.34-0ubuntu0.18.04.1?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.7.34-0ubuntu0.18.04.1

Affected versions

5.*

5.7.19-0ubuntu1
5.7.20-0ubuntu0.17.10.1
5.7.20-1ubuntu1
5.7.21-1ubuntu1
5.7.22-0ubuntu18.04.1
5.7.23-0ubuntu0.18.04.1
5.7.24-0ubuntu0.18.04.1
5.7.25-0ubuntu0.18.04.2
5.7.26-0ubuntu0.18.04.1
5.7.27-0ubuntu0.18.04.1
5.7.28-0ubuntu0.18.04.4
5.7.29-0ubuntu0.18.04.1
5.7.30-0ubuntu0.18.04.1
5.7.31-0ubuntu0.18.04.1
5.7.32-0ubuntu0.18.04.1
5.7.33-0ubuntu0.18.04.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libmysqlclient-dev",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "libmysqlclient20",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "libmysqld-dev",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "mysql-client",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "mysql-client-5.7",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "mysql-client-core-5.7",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "mysql-server",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "mysql-server-5.7",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "mysql-server-core-5.7",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "mysql-source-5.7",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "mysql-testsuite",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        },
        {
            "binary_name": "mysql-testsuite-5.7",
            "binary_version": "5.7.34-0ubuntu0.18.04.1"
        }
    ],
    "availability": "No subscription required"
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:18.04:LTS",
    "cves": [
        {
            "id": "CVE-2021-2146",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2154",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2162",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2166",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2169",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2171",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2179",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2180",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2194",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2226",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2307",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N",
                    "type": "CVSS_V3"
                },
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        }
    ]
}

Ubuntu:20.04:LTS / mysql-8.0

Package

Name
mysql-8.0
Purl
pkg:deb/ubuntu/mysql-8.0@8.0.25-0ubuntu0.20.04.1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.0.25-0ubuntu0.20.04.1

Affected versions

8.*

8.0.17-0ubuntu2
8.0.17-0ubuntu3
8.0.18-0ubuntu3
8.0.18-0ubuntu4
8.0.18-0ubuntu5
8.0.19-0ubuntu2
8.0.19-0ubuntu3
8.0.19-0ubuntu4
8.0.19-0ubuntu5
8.0.20-0ubuntu0.20.04.1
8.0.21-0ubuntu0.20.04.3
8.0.21-0ubuntu0.20.04.4
8.0.22-0ubuntu0.20.04.2
8.0.22-0ubuntu0.20.04.3
8.0.23-0ubuntu0.20.04.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libmysqlclient-dev",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "libmysqlclient21",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "mysql-client",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "mysql-client-8.0",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "mysql-client-core-8.0",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "mysql-router",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "mysql-server",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "mysql-server-8.0",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "mysql-server-core-8.0",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "mysql-source-8.0",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "mysql-testsuite",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        },
        {
            "binary_name": "mysql-testsuite-8.0",
            "binary_version": "8.0.25-0ubuntu0.20.04.1"
        }
    ],
    "availability": "No subscription required"
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:20.04:LTS",
    "cves": [
        {
            "id": "CVE-2021-2146",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2162",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2164",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2166",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2169",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2170",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2171",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2172",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2179",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2180",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2193",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2194",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2196",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2201",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2203",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2208",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2212",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2215",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2217",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2226",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2230",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2232",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2278",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2293",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2298",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2299",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2300",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2301",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2304",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2305",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2307",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N",
                    "type": "CVSS_V3"
                },
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        },
        {
            "id": "CVE-2021-2308",
            "severity": [
                {
                    "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ]
        }
    ]
}