{"id":"UBUNTU-CVE-2012-6087","details":"repository/s3/S3.php in the Amazon S3 library in Moodle through 2.2.11, 2.3.x before 2.3.9, 2.4.x before 2.4.6, and 2.5.x before 2.5.2 does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate, related to an incorrect CURLOPT_SSL_VERIFYHOST value.","modified":"2025-07-16T07:31:03.999519Z","published":"2013-09-16T13:02:00Z","withdrawn":"2025-07-18T16:42:48Z","upstream":["CVE-2012-6087"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2012-6087"},{"type":"REPORT","url":"https://github.com/tpyo/amazon-s3-php-class/pull/36"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2012-6087"}],"affected":[{"package":{"name":"moodle","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/moodle@2.5.4-1ubuntu1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.4-1ubuntu1"}]}],"versions":["2.5.2-1","2.5.3-1","2.5.3-2","2.5.3-3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"moodle","binary_version":"2.5.4-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2012/UBUNTU-CVE-2012-6087.json"}}],"schema_version":"1.7.3","severity":[{"type":"Ubuntu","score":"medium"}]}