← Vulnerability feed

Vulnerability record · CVE-2020-7221 · published 4 February 2020

CVE-2020-7221: Mariadb link following vulnerability

Mariadb · Mariadb

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.

7.8 CVSS 3.1 High EPSS 0.67% · top 47.3% CWE-59 · Link following
7.8CVSS 3.1 base score, v2 7.2
0.67%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References, 4 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2020-7221 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2012-2750Oracle mysql vulnerabilityUnspecified vulnerability in MySQL 5.5.x before 5.5.23 has unknown impact and attack vectors related to a "Security Fix", aka Bug #59533. NOTE: this …EPSS 3.6%9.0CVE-2012-3163Oracle mysql vulnerabilityUnspecified vulnerability in the MySQL Server component in Oracle MySQL 5.1.64 and earlier, and 5.5.26 and earlier, allows remote authenticated users…EPSS 5.1%7.5CVE-2012-3158Oracle mysql vulnerabilityUnspecified vulnerability in the MySQL Server component in Oracle MySQL 5.1.64 and earlier, and 5.5.26 and earlier, allows remote attackers to affect…EPSS 4.5%7.5CVE-2009-4484MySQL yaSSL CertDecoder::GetName stack buffer overflowTaoCrypt in yaSSL before 1.9.9, as used by mysqld in MySQL 5.0.x before 5.0.90, 5.1.x before 5.1.43 and 5.5.x through 5.5.0-m2, has multiple stack-ba…EPSS 70%analysed6.8CVE-2013-0384Oracle mysql vulnerabilityUnspecified vulnerability in the Server component in Oracle MySQL 5.1.66 and earlier, and 5.5.28 and earlier, allows remote authenticated users to af…EPSS 3.0%6.8CVE-2013-0386Oracle mysql vulnerabilityUnspecified vulnerability in the Server component in Oracle MySQL 5.5.28 and earlier allows remote authenticated users to affect availability via unk…EPSS 3.0%6.8CVE-2013-0389Oracle mysql vulnerabilityUnspecified vulnerability in the Server component in Oracle MySQL 5.1.66 and earlier, and 5.5.28 and earlier, allows remote authenticated users to af…EPSS 2.8%6.8CVE-2012-5060Oracle mysql vulnerabilityUnspecified vulnerability in the Server component in Oracle MySQL 5.1.65 and earlier and 5.5.27 and earlier allows remote authenticated users to affe…EPSS 2.5%

Source: NIST National Vulnerability Database (record CVE-2020-7221), CISA KEV, FIRST EPSS (scores of 2026-11-24). This page is refreshed as NVD updates the record.