{"vuid":"VU#567764","idnumber":"567764","name":"MySQL for Windows is vulnerable to privilege escalation due to OPENSSLDIR location","keywords":null,"overview":"### Overview\r\n\r\nMySQL for Windows contains a privilege escalation vulnerability due to the use of an `OPENSSLDIR` variable that specifies a location where an unprivileged Windows user can create files.\r\n\r\n### Description\r\n\r\n**CVE-2021-2307**\r\n\r\nMySQL includes an OpenSSL component that specifies an `OPENSSLDIR` variable as a subdirectory of `/build_area/`. On the Windows platform, this path is interpreted as `C:\\build_area`. MySQL contains a privileged service that uses this OpenSSL component. Because unprivileged Windows users can create subdirectories off of the system root, a user can create the appropriate path to a specially-crafted `openssl.cnf` file to achieve arbitrary code execution with SYSTEM privileges.\r\n\r\n### Impact\r\nBy placing a specially-crafted `openssl.cnf` in a `C:\\build_area` subdirectory, an unprivileged user may be able to execute arbitrary code with SYSTEM privileges on a Windows system with the vulnerable MySQL software installed.\r\n\r\n### Solution\r\n\r\n#### Apply an update\r\nThis vulnerability is [addressed](https://www.oracle.com/security-alerts/cpuapr2021.html) in the MySQL Windows installer version 8.0.24 and 5.7.34.\r\n\r\n#### Create a C:\\build_area directory\r\nIn cases where an update cannot be installed, this vulnerability can be mitigated by creating a `C:\\build_area` directory and restricting ACLs to prevent unprivileged users from being able to write to this location.\r\n\r\n### Acknowledgements\r\nThis vulnerability was reported by Will Dormann of the CERT/CC.\r\n\r\nThis document was written by Will Dormann.","clean_desc":null,"impact":null,"resolution":null,"workarounds":null,"sysaffected":null,"thanks":null,"author":null,"public":["https://www.oracle.com/security-alerts/cpuapr2021.html"],"cveids":["CVE-2021-2307"],"certadvisory":null,"uscerttechnicalalert":null,"datecreated":"2021-04-20T22:14:05.217608Z","publicdate":"2021-04-20T00:00:00Z","datefirstpublished":"2021-04-20T22:14:05.229266Z","dateupdated":"2021-04-22T12:08:07.215541Z","revision":2,"vrda_d1_directreport":null,"vrda_d1_population":null,"vrda_d1_impact":null,"cam_widelyknown":null,"cam_exploitation":null,"cam_internetinfrastructure":null,"cam_population":null,"cam_impact":null,"cam_easeofexploitation":null,"cam_attackeraccessrequired":null,"cam_scorecurrent":null,"cam_scorecurrentwidelyknown":null,"cam_scorecurrentwidelyknownexploited":null,"ipprotocol":null,"cvss_accessvector":null,"cvss_accesscomplexity":null,"cvss_authentication":null,"cvss_confidentialityimpact":null,"cvss_integrityimpact":null,"cvss_availabilityimpact":null,"cvss_exploitablity":null,"cvss_remediationlevel":null,"cvss_reportconfidence":null,"cvss_collateraldamagepotential":null,"cvss_targetdistribution":null,"cvss_securityrequirementscr":null,"cvss_securityrequirementsir":null,"cvss_securityrequirementsar":null,"cvss_basescore":null,"cvss_basevector":null,"cvss_temporalscore":null,"cvss_environmentalscore":null,"cvss_environmentalvector":null,"metric":null,"vulnote":43}