All vulnerabilities

Servers and applications

CVE-2012-6087

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…

Severity
Medium 5.8
Published
16 Sept 2013
Last changed
16 Jun 2026
Added to UpHeron
1 Nov 2026
Exploit chance
0.6% in the next 30 daysHigher than 49% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Improper input validation (CWE-20)
Attack
Over the network · No login needed
Attacker can
Read some data · Change some data
CVSS vector
AV:N/AC:M/Au:N/C:P/I:P/A:N
Sources
NVD

Description

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.

From NVD.

Affected software

SoftwareAffected versions
MoodleServers and applications · cpe:a:moodle:moodle
  • Version 2.5.1
  • Version 2.5.0
  • Version 2.4.5
  • Version 2.4.4
All 29 release lines
  • Every version up to 2.2.11
  • Version 2.2.0
  • Version 2.2.1
  • Version 2.2.2
  • Version 2.2.3
  • Version 2.2.4
  • Version 2.2.5
  • Version 2.2.6
  • Version 2.2.7
  • Version 2.2.8
  • Version 2.2.9
  • Version 2.2.10
  • Version 2.3.0
  • Version 2.3.1
  • Version 2.3.2
  • Version 2.3.3
  • Version 2.3.4
  • Version 2.3.5
  • Version 2.3.6
  • Version 2.3.7
  • Version 2.3.8
  • Version 2.4.0
  • Version 2.4.1
  • Version 2.4.2
  • Version 2.4.3
  • Version 2.4.4
  • Version 2.4.5
  • Version 2.5.0
  • Version 2.5.1

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2012-6087
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2012-6087