7.8
CWE
59
Advisory Published
Updated

CVE-2020-7221

First published: Tue Feb 04 2020(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
MariaDB Server>=10.4.7<=10.4.11

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2020-7221?

    CVE-2020-7221 is classified as a high severity vulnerability due to its potential for privilege escalation.

  • How can I mitigate CVE-2020-7221?

    To mitigate CVE-2020-7221, upgrade to MariaDB version 10.4.12 or later, where the vulnerability has been addressed.

  • Who is affected by CVE-2020-7221?

    CVE-2020-7221 affects users of MariaDB versions 10.4.7 through 10.4.11 on systems utilizing the mysql_install_db script.

  • What type of attack does CVE-2020-7221 facilitate?

    CVE-2020-7221 facilitates a symlink attack that allows privilege escalation from the mysql user to root.

  • Is CVE-2020-7221 specific to MariaDB or does it affect Oracle MySQL?

    CVE-2020-7221 specifically affects certain versions of MariaDB and does not impact Oracle MySQL.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203