# CVE-2020-7221: mysqlinstalldb in MariaDB 10.4.7 through 10.4.11 allows privilege escalation from the mysql user account to root because chown and chmod ar…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-02-04T16:57:00.000Z
- Modified: 2026-09-08T08:48:23.979Z
- Also known as: BIT-MARIADB-2020-7221, BIT-MARIADB-MIN-2020-7221, BIT-MYSQL-CLIENT-2020-7221
- Weaknesses: CWE-59
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mariadb mariadb: from 10.4.7 up to 10.4.11
- mariadb (Bitnami): from 10.4.7 before 10.4.12
- mariadb-min (Bitnami): from 10.4.7 up to 10.4.11
- mysql-client (Bitnami): from 10.4.7 before 10.4.12

## Every score

- NVD: 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`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`
- Bitnami Vulnerability Database: rating High

## References

- <https://seclists.org/oss-sec/2020/q1/55> (exploit, advisory, mailing-list, third-party-advisory)
- <https://bugzilla.suse.com/show_bug.cgi?id=1160868> (exploit, advisory, issue-tracking, third-party-advisory)
- <https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7221> (web)

## Sources

- CVE List: [CVE-2020-7221](https://www.cve.org/CVERecord?id=CVE-2020-7221), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-7221](https://nvd.nist.gov/vuln/detail/CVE-2020-7221), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MARIADB-2020-7221](https://osv.dev/vulnerability/BIT-MARIADB-2020-7221), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-MARIADB-MIN-2020-7221](https://osv.dev/vulnerability/BIT-MARIADB-MIN-2020-7221), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-MYSQL-CLIENT-2020-7221](https://osv.dev/vulnerability/BIT-MYSQL-CLIENT-2020-7221), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-7221 · Whole record: https://cve.day/CVE-2020-7221.json · Rebuilt by cve.day 2026-11-25T22:57:50.744Z
