CVE-2020-7221
Last modified
CVE-2020-7221 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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.. EPSS estimates a 0.67% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Mariadb | Mariadb | >= 10.4.7, <= 10.4.11 |
References
- https://bugzilla.suse.com/show_bug.cgi?id=1160868Exploit, Issue Tracking, Third Party Advisory
- https://seclists.org/oss-sec/2020/q1/55Exploit, Mailing List, Third Party Advisory
- https://bugzilla.suse.com/show_bug.cgi?id=1160868Exploit, Issue Tracking, Third Party Advisory
- https://seclists.org/oss-sec/2020/q1/55Exploit, Mailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-7221?
How severe is CVE-2020-7221?
How do I fix CVE-2020-7221?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-7215An issue was discovered in Gallagher Command Centre 7.x befo…5.5
- CVE-2020-7216An ni_dhcp4_parse_response memory leak in openSUSE wicked 0.…7.5
- CVE-2020-7217An ni_dhcp4_fsm_process_dhcp4_packet memory leak in openSUSE…7.5
- CVE-2020-7218HashiCorp Nomad and Nonad Enterprise up to 0.10.2 HTTP/RPC s…7.5
- CVE-2020-7219HashiCorp Consul and Consul Enterprise up to 1.6.2 HTTP/RPC …7.5
- CVE-2020-7220HashiCorp Vault Enterprise 0.11.0 through 1.3.1 fails, in ce…7.5
- CVE-2020-7222An issue was discovered in Amcrest Web Server 2.520.AC00.18.…5.3
- CVE-2020-7224The Aviatrix OpenVPN client through 2.5.7 on Linux, macOS, a…9.8
- CVE-2020-7226CiphertextHeader.java in Cryptacular 1.2.3, as used in Apere…7.5
- CVE-2020-7227Westermo MRD-315 1.7.3 and 1.7.4 devices have an information…6.5
- CVE-2020-7228The Calculated Fields Form plugin through 1.0.353 for WordPr…5.4
- CVE-2020-7229An issue was discovered in Simplejobscript.com SJS before 1.…9.8
Are you affected by CVE-2020-7221?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
