Vulnerability in Mariadb
CVE-2020-7221
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.007, 52.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (SexyBeast233/SecBooks). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- seclists.org/oss-sec/2020/q1/55 (Exploit, Mailing List, Third Party Advisory)
- bugzilla.suse.com/show_bug.cgi (Exploit, Third Party Advisory, Issue Tracking)
- github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618 (Third Party Advisory)