🛡️ CVE-2020-7221 — mariadb
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.
Affected software
CVE-2020-7221 is recorded against 3 packages.
- mariadb
- mariadb-min
- mysql-client
Timeline and source
Published on 6 March 2024 and last revised on 10 June 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
bugzilla.suse.com (Web)
github.com (Web)
seclists.org (Web)
nvd.nist.gov (Web)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| mariadb | — | — |
| mariadb-min | — | — |
| mysql-client | — | — |
References
Similar Threats
- Unknown ALPINE-CVE-2022-21427
- Unknown ALPINE-CVE-2022-27376
- Unknown ALPINE-CVE-2022-27377
- Unknown ALPINE-CVE-2022-27378
- Unknown ALPINE-CVE-2022-27379
More CVE 2020 advisories
Browse all of CVE 2020 in the advisory index.
Site Security Check
Is mariadb part of your stack?
CVE-2020-7221 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.