CVE-2020-7221
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql...
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used 7.8
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
- Record
CVE-2020-7221- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.2 High
AV:L/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-59
- Updated
- 2026-11-02
CVE ListNo score
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
- Record
CVE-2020-7221- Updated
- 2026-11-02
EUVDEUVD-2020-28350No score
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
- Record
EUVD-2020-28350- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-3xr8-q83f-2wqpNo score
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql...
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
- Record
GHSA-3xr8-q83f-2wqp- Weakness
- CWE-269
- Updated
- 2026-11-02
OSV 7.8
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
- Record
CVE-2020-7221- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-7221 7.8
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
- Record
UBUNTU-CVE-2020-7221- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-06
Show 6 moreShow less
OSVBIT-mariadb-2020-7221No score
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
- Record
BIT-mariadb-2020-7221- Updated
- 2026-11-02
OSVBIT-mariadb-min-2020-7221No score
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
- Record
BIT-mariadb-min-2020-7221- Updated
- 2026-11-02
OSVBIT-mysql-client-2020-7221No score
mysql_install_db in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod are performed unsafely, as demonstrated by a symlink attack on a chmod 04755 of auth_pam_tool_dir/auth_pam_tool. NOTE: this does not affect the Oracle MySQL product, which implements mysql_install_db differently.
- Record
BIT-mysql-client-2020-7221- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11038-1No score
libmariadbd-devel-10.6.4-2.1 on GA media
These are all security issues fixed in the libmariadbd-devel-10.6.4-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11038-1- Updated
- 2026-11-02
OSVSUSE-RU-2023:3956-1No score
Recommended update for mariadb104
This update for mariadb104 fixes the following issues:
- Implement version 10.4 of MariaDB (jsc#PED-2455):
- It is possible to use more than one authentication plugin for each user account.
- The root user account is being created with the ability to use two authentication plugins.
- All user accounts, passwords, and global privileges are now stored in the mysql.global_priv table.
- Is being supported for User Password Expiry, which is not active by default.
- Faster privilege checks for MariaDB setups with many user accounts or many database grants.
- Update mysql-systemd-helper to be aware of custom group (bsc#1200105)
- MariaDB is now support lz4 compression for 'INNODB'. (bsc#1186031)
- Add 'mysql-user.conf' file to enable systemd generating mysql user in containers. (bsc#1173028)
- Fixes an issue when MariaDB is ignoring the value of the parameter 'open_files_limit' in the global variables. (bsc#1180014)
- Record
SUSE-RU-2023:3956-1- Updated
- 2026-11-02
OSVSUSE-RU-2023:4991-1No score
Recommended update for mariadb104
This update for mariadb104 fixes the following issues:
- Implement version 10.4 of MariaDB (jsc#PED-2455):
- It is possible to use more than one authentication plugin for each user account.
- The root user account is being created with the ability to use two authentication plugins.
- All user accounts, passwords, and global privileges are now stored in the mysql.global_priv table.
- Is being supported for User Password Expiry, which is not active by default.
- Faster privilege checks for MariaDB setups with many user accounts or many database grants.
- Update mysql-systemd-helper to be aware of custom group (bsc#1200105)
- MariaDB is now support lz4 compression for 'INNODB'. (bsc#1186031)
- Add 'mysql-user.conf' file to enable systemd generating mysql user in containers. (bsc#1173028)
- Fixes an issue when MariaDB is ignoring the value of the parameter 'open_files_limit' in the global variables. (bsc#1180014)
- Record
SUSE-RU-2023:4991-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mariadbBitnami | 10.4.7 up to 10.4.12 | 10.4.12 |
mariadb-minBitnami | 10.4.7 to 10.4.11 | None known |
mysql-clientBitnami | 10.4.7 up to 10.4.12 | 10.4.12 |
mariadb104SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS From an advisory covering 221 CVEs | before 10.4.30-150100.3.5.10 | 10.4.30-150100.3.5.10 |
python-mysqlclientSUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS From an advisory covering 221 CVEs | before 1.4.6-150100.3.3.7 | 1.4.6-150100.3.3.7 |
mariadb104SUSE:Linux Enterprise Server 15 SP1-LTSS From an advisory covering 221 CVEs | before 10.4.30-150100.3.5.10 | 10.4.30-150100.3.5.10 |
python-mysqlclientSUSE:Linux Enterprise Server 15 SP1-LTSS From an advisory covering 221 CVEs | before 1.4.6-150100.3.3.7 | 1.4.6-150100.3.3.7 |
mariadb104SUSE:Linux Enterprise Server for SAP Applications 15 SP1 From an advisory covering 221 CVEs | before 10.4.30-150100.3.5.10 | 10.4.30-150100.3.5.10 |
python-mysqlclientSUSE:Linux Enterprise Server for SAP Applications 15 SP1 From an advisory covering 221 CVEs | before 1.4.6-150100.3.3.7 | 1.4.6-150100.3.3.7 |
lz4SUSE:Linux Enterprise Software Development Kit 12 SP5 From an advisory covering 221 CVEs | before 1.8.0-3.5.2 | 1.8.0-3.5.2 |
Show 13 moreShow less
| Package | Affected | Fixed |
|---|---|---|
mariadb-connector-cSUSE:Linux Enterprise Software Development Kit 12 SP5 From an advisory covering 221 CVEs | before 3.1.22-2.35.1 | 3.1.22-2.35.1 |
mariadb104SUSE:Linux Enterprise Software Development Kit 12 SP5 From an advisory covering 221 CVEs | before 10.4.30-8.5.46 | 10.4.30-8.5.46 |
python-mysqlclientSUSE:Linux Enterprise Software Development Kit 12 SP5 From an advisory covering 221 CVEs | before 1.3.14-8.9.2 | 1.3.14-8.9.2 |
lz4SUSE:Linux Enterprise Server 12 SP5 From an advisory covering 221 CVEs | before 1.8.0-3.5.2 | 1.8.0-3.5.2 |
mariadb-connector-cSUSE:Linux Enterprise Server 12 SP5 From an advisory covering 221 CVEs | before 3.1.22-2.35.1 | 3.1.22-2.35.1 |
mariadb104SUSE:Linux Enterprise Server 12 SP5 From an advisory covering 221 CVEs | before 10.4.30-8.5.46 | 10.4.30-8.5.46 |
python-mysqlclientSUSE:Linux Enterprise Server 12 SP5 From an advisory covering 221 CVEs | before 1.3.14-8.9.2 | 1.3.14-8.9.2 |
lz4SUSE:Linux Enterprise Server for SAP Applications 12 SP5 From an advisory covering 221 CVEs | before 1.8.0-3.5.2 | 1.8.0-3.5.2 |
mariadb-connector-cSUSE:Linux Enterprise Server for SAP Applications 12 SP5 From an advisory covering 221 CVEs | before 3.1.22-2.35.1 | 3.1.22-2.35.1 |
mariadb104SUSE:Linux Enterprise Server for SAP Applications 12 SP5 From an advisory covering 221 CVEs | before 10.4.30-8.5.46 | 10.4.30-8.5.46 |
python-mysqlclientSUSE:Linux Enterprise Server for SAP Applications 12 SP5 From an advisory covering 221 CVEs | before 1.3.14-8.9.2 | 1.3.14-8.9.2 |
mysql-5.5Ubuntu:14.04:LTS | All versions, plus listed versions 5.5.32-0ubuntu75.5.34-0ubuntu15.5.34-0ubuntu25.5.35-0ubuntu15.5.35+dfsg-1ubuntu1 Show 20 moreShow less5.5.37-0ubuntu0.14.04.15.5.38-0ubuntu0.14.04.15.5.40-0ubuntu0.14.04.15.5.41-0ubuntu0.14.04.15.5.43-0ubuntu0.14.04.15.5.44-0ubuntu0.14.04.15.5.46-0ubuntu0.14.04.25.5.47-0ubuntu0.14.04.15.5.49-0ubuntu0.14.04.15.5.50-0ubuntu0.14.04.15.5.52-0ubuntu0.14.04.15.5.53-0ubuntu0.14.04.15.5.54-0ubuntu0.14.04.15.5.55-0ubuntu0.14.04.15.5.57-0ubuntu0.14.04.15.5.58-0ubuntu0.14.04.15.5.59-0ubuntu0.14.04.15.5.60-0ubuntu0.14.04.15.5.61-0ubuntu0.14.04.15.5.62-0ubuntu0.14.04.1 | None known |
mariadbopenSUSE:Tumbleweed From an advisory covering 65 CVEs | before 10.6.4-2.1 | 10.6.4-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | OSV | |
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-7221 is a high vulnerability (CVSS 7.8) in Mariadb, published February 4, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.67%, the 52nd percentile. Fixed in mariadb 10.4.12.
References
seclists.org/oss-sec/2020/q1/55
bugzilla.suse.com/show_bug.cgi?id=1160868
github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618
nvd.nist.gov/vuln/detail/CVE-2020-7221
github.com/advisories/GHSA-3xr8-q83f-2wqp
suse.com/support/update/announcement/-2023-3956/suse-ru-20233956-1
Show 194 moreShow less
bugzilla.suse.com/1001367
bugzilla.suse.com/1005555
bugzilla.suse.com/1005558
bugzilla.suse.com/1005562
bugzilla.suse.com/1005564
bugzilla.suse.com/1005566
bugzilla.suse.com/1005569
bugzilla.suse.com/1005581
bugzilla.suse.com/1005582
bugzilla.suse.com/1006539
bugzilla.suse.com/1008253
bugzilla.suse.com/1012075
bugzilla.suse.com/1013882
bugzilla.suse.com/1019948
bugzilla.suse.com/1020873
bugzilla.suse.com/1020875
bugzilla.suse.com/1020877
bugzilla.suse.com/1020878
bugzilla.suse.com/1020882
bugzilla.suse.com/1020884
bugzilla.suse.com/1020885
bugzilla.suse.com/1020890
bugzilla.suse.com/1020891
bugzilla.suse.com/1020894
bugzilla.suse.com/1020896
bugzilla.suse.com/1020976
bugzilla.suse.com/1022428
bugzilla.suse.com/1038740
bugzilla.suse.com/1039034
bugzilla.suse.com/1041525
bugzilla.suse.com/1041891
bugzilla.suse.com/1042632
bugzilla.suse.com/1043328
bugzilla.suse.com/1047218
bugzilla.suse.com/1055165
bugzilla.suse.com/1055268
bugzilla.suse.com/1058374
bugzilla.suse.com/1058729
bugzilla.suse.com/1060110
bugzilla.suse.com/1062583
bugzilla.suse.com/1067443
bugzilla.suse.com/1068906
bugzilla.suse.com/1069401
bugzilla.suse.com/1080891
bugzilla.suse.com/1083087
bugzilla.suse.com/1088681
bugzilla.suse.com/1092544
bugzilla.suse.com/1098683
bugzilla.suse.com/1101676
bugzilla.suse.com/1101677
bugzilla.suse.com/1101678
bugzilla.suse.com/1103342
bugzilla.suse.com/1111858
bugzilla.suse.com/1111859
bugzilla.suse.com/1112368
bugzilla.suse.com/1112377
bugzilla.suse.com/1112384
bugzilla.suse.com/1112386
bugzilla.suse.com/1112391
bugzilla.suse.com/1112397
bugzilla.suse.com/1112404
bugzilla.suse.com/1112415
bugzilla.suse.com/1112417
bugzilla.suse.com/1112421
bugzilla.suse.com/1112432
bugzilla.suse.com/1112767
bugzilla.suse.com/1116686
bugzilla.suse.com/1118754
bugzilla.suse.com/1120041
bugzilla.suse.com/1122198
bugzilla.suse.com/1122475
bugzilla.suse.com/1127027
bugzilla.suse.com/1132666
bugzilla.suse.com/1136035
bugzilla.suse.com/1142909
bugzilla.suse.com/1143215
bugzilla.suse.com/1144314
bugzilla.suse.com/1156669
bugzilla.suse.com/1160285
bugzilla.suse.com/1160868
bugzilla.suse.com/1160878
bugzilla.suse.com/1160883
bugzilla.suse.com/1160895
bugzilla.suse.com/1160912
bugzilla.suse.com/1166781
bugzilla.suse.com/1168380
bugzilla.suse.com/1170204
bugzilla.suse.com/1173028
bugzilla.suse.com/1173516
bugzilla.suse.com/1174559
bugzilla.suse.com/1175596
bugzilla.suse.com/1177472
bugzilla.suse.com/1178428
bugzilla.suse.com/1180014
bugzilla.suse.com/1182218
bugzilla.suse.com/1182255
suse.com/security/cve/CVE-2006-0903
suse.com/security/cve/CVE-2006-4226
suse.com/security/cve/CVE-2006-4227
suse.com/security/cve/CVE-2007-5969
suse.com/security/cve/CVE-2007-5970
suse.com/security/cve/CVE-2007-6303
suse.com/security/cve/CVE-2007-6304
suse.com/security/cve/CVE-2008-2079
suse.com/security/cve/CVE-2008-7247
suse.com/security/cve/CVE-2009-4019
suse.com/security/cve/CVE-2009-4028
suse.com/security/cve/CVE-2009-4030
suse.com/security/cve/CVE-2012-4414
suse.com/security/cve/CVE-2012-5611
suse.com/security/cve/CVE-2012-5612
suse.com/security/cve/CVE-2012-5615
suse.com/security/cve/CVE-2012-5627
suse.com/security/cve/CVE-2013-1976
suse.com/security/cve/CVE-2015-4792
suse.com/security/cve/CVE-2015-4802
suse.com/security/cve/CVE-2015-4807
suse.com/security/cve/CVE-2015-4815
suse.com/security/cve/CVE-2015-4816
suse.com/security/cve/CVE-2015-4819
suse.com/security/cve/CVE-2015-4826
suse.com/security/cve/CVE-2015-4830
suse.com/security/cve/CVE-2015-4836
suse.com/security/cve/CVE-2015-4858
suse.com/security/cve/CVE-2015-4861
suse.com/security/cve/CVE-2015-4864
suse.com/security/cve/CVE-2015-4866
suse.com/security/cve/CVE-2015-4870
suse.com/security/cve/CVE-2015-4879
suse.com/security/cve/CVE-2015-4895
suse.com/security/cve/CVE-2015-4913
suse.com/security/cve/CVE-2015-5969
suse.com/security/cve/CVE-2015-7744
suse.com/security/cve/CVE-2016-0505
suse.com/security/cve/CVE-2016-0546
suse.com/security/cve/CVE-2016-0596
suse.com/security/cve/CVE-2016-0597
suse.com/security/cve/CVE-2016-0598
suse.com/security/cve/CVE-2016-0600
suse.com/security/cve/CVE-2016-0606
suse.com/security/cve/CVE-2016-0608
suse.com/security/cve/CVE-2016-0609
suse.com/security/cve/CVE-2016-0610
suse.com/security/cve/CVE-2016-0616
suse.com/security/cve/CVE-2016-0640
suse.com/security/cve/CVE-2016-0641
suse.com/security/cve/CVE-2016-0642
suse.com/security/cve/CVE-2016-0644
suse.com/security/cve/CVE-2016-0646
suse.com/security/cve/CVE-2016-0649
suse.com/security/cve/CVE-2016-0650
suse.com/security/cve/CVE-2016-0651
suse.com/security/cve/CVE-2016-0668
suse.com/security/cve/CVE-2016-2047
suse.com/security/cve/CVE-2016-3477
suse.com/security/cve/CVE-2016-3492
suse.com/security/cve/CVE-2016-3521
suse.com/security/cve/CVE-2016-3615
suse.com/security/cve/CVE-2016-5440
suse.com/security/cve/CVE-2016-5584
suse.com/security/cve/CVE-2016-5616
suse.com/security/cve/CVE-2016-5624
suse.com/security/cve/CVE-2016-5626
suse.com/security/cve/CVE-2016-5629
suse.com/security/cve/CVE-2016-6662
suse.com/security/cve/CVE-2016-6663
suse.com/security/cve/CVE-2016-6664
suse.com/security/cve/CVE-2016-7440
suse.com/security/cve/CVE-2016-8283
suse.com/security/cve/CVE-2016-9843
suse.com/security/cve/CVE-2017-10268
suse.com/security/cve/CVE-2017-10286
suse.com/security/cve/CVE-2017-10320
suse.com/security/cve/CVE-2017-10365
suse.com/security/cve/CVE-2017-10378
suse.com/security/cve/CVE-2017-10379
suse.com/security/cve/CVE-2017-10384
suse.com/security/cve/CVE-2017-15365
suse.com/security/cve/CVE-2017-3238
suse.com/security/cve/CVE-2017-3243
suse.com/security/cve/CVE-2017-3244
suse.com/security/cve/CVE-2017-3257
suse.com/security/cve/CVE-2017-3258
suse.com/security/cve/CVE-2017-3265
suse.com/security/cve/CVE-2017-3291
suse.com/security/cve/CVE-2017-3302
suse.com/security/cve/CVE-2017-3308
suse.com/security/cve/CVE-2017-3309
suse.com/security/cve/CVE-2017-3312
suse.com/security/cve/CVE-2017-3313
suse.com/security/cve/CVE-2017-3317
suse.com/security/cve/CVE-2017-3318
ubuntu.com/security/CVE-2020-7221
cve.org/CVERecord?id=CVE-2020-7221
Left out here: 228 references. The JSON record has them.