CVE-2020-7221

CVSS V2 High 7.2 CVSS V3 High 7.8
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.
Overview
  • CVE ID
  • CVE-2020-7221
  • Assigner
  • cve@mitre.org
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2020-02-04T17:15:13
  • Last Modified Date
  • 2021-07-21T11:39:23
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:mariadb:mariadb:*:*:*:*:*:*:*:* 1 OR 10.4.7 10.4.11
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:L/AC:L/Au:N/C:C/I:C/A:C
  • Access Vector
  • LOCAL
  • Access Compatibility
  • LOW
  • Authentication
  • NONE
  • Confidentiality Impact
  • COMPLETE
  • Integrity Impact
  • COMPLETE
  • Availability Impact
  • COMPLETE
  • Base Score
  • 7.2
  • Severity
  • HIGH
  • Exploitability Score
  • 3.9
  • Impact Score
  • 10
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Attack Vector
  • LOCAL
  • Attack Compatibility
  • LOW
  • Privileges Required
  • LOW
  • User Interaction
  • NONE
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • HIGH
  • Availability Impact
  • HIGH
  • Base Score
  • 7.8
  • Base Severity
  • HIGH
  • Exploitability Score
  • 1.8
  • Impact Score
  • 5.9
References
Reference URL Reference Tags
https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618 Third Party Advisory
https://bugzilla.suse.com/show_bug.cgi?id=1160868 Exploit Issue Tracking Third Party Advisory
https://seclists.org/oss-sec/2020/q1/55 Exploit Mailing List Third Party Advisory
History
Created Old Value New Value Data Type Notes
2022-05-10 07:05:35 Added to TrackCVE
2022-12-04 10:36:58 2020-02-04T17:15Z 2020-02-04T17:15:13 CVE Published Date updated
2022-12-04 10:36:58 2021-07-21T11:39:23 CVE Modified Date updated
2022-12-04 10:36:58 Analyzed Vulnerability Status updated