CVE-2020-7221

mariadb: mysql_install_db allows privilege escalation due to unsafe chown and chmod operations

Published Feb 4, 2020 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2020-28350 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.
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 9:25 AM
Reserved
Jan 17, 2020, 12:00 AM
Status
Modified
Published
Feb 4, 2020, 5:15 PM
Modified
Jun 17, 2026, 3:24 AM
Severity
Moderate
Public date
Feb 4, 2020, 12:00 AM