{"id":"CVE-2020-7221","state":"PUBLISHED","title":"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 b","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.","publishedAt":"2020-02-04T16:57:00.000Z","updatedAt":"2024-08-04T09:25:48.582Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://seclists.org/oss-sec/2020/q1/55","https://bugzilla.suse.com/show_bug.cgi?id=1160868","https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618"],"weaknesses":[],"ingestedAt":"2026-10-29T19:47:41.446Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/7xxx/CVE-2020-7221.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-7221","state":"PUBLISHED","datePublished":"2020-02-04T16:57:00.000Z","dateUpdated":"2024-08-04T09:25:48.582Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2020-01-17T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://seclists.org/oss-sec/2020/q1/55","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1160868","tags":["x_refsource_MISC"]},{"url":"https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618","tags":["x_refsource_CONFIRM"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2020-02-04T16:57:00.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2020-01-28T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2020-7221","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://seclists.org/oss-sec/2020/q1/55","refsource":"MISC","url":"https://seclists.org/oss-sec/2020/q1/55"},{"name":"https://bugzilla.suse.com/show_bug.cgi?id=1160868","refsource":"MISC","url":"https://bugzilla.suse.com/show_bug.cgi?id=1160868"},{"name":"https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618","refsource":"CONFIRM","url":"https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://seclists.org/oss-sec/2020/q1/55","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1160868","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/MariaDB/server/commit/9d18b6246755472c8324bf3e20e234e08ac45618","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T09:25:48.582Z"}}]}}}