1. CVE archive
  2. 2014
  3. CVE-2014-3522

CVE-2014-3522

4 Medium severity CVSS v2.0 · source NVD AV:N/AC:H/Au:N/C:P/I:P/A:N 4 – Medium

Description

The Serf RA layer in Apache Subversion 1.4.0 through 1.7.x before 1.7.18 and 1.8.x before 1.8.10 does not properly handle wildcards in the Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof servers via a crafted certificate.

Affected products

VendorProductVersionPlatform
apache subversion 1.7.4 –
apache subversion 1.7.5 –
apache subversion 1.7.6 –
apache subversion 1.7.7 –
apache subversion 1.7.8 –
apache subversion 1.7.9 –
apache subversion 1.7.10 –
apache subversion 1.7.11 –
apache subversion 1.7.12 –
apache subversion 1.7.13 –
apache subversion 1.7.14 –
apache subversion 1.7.15 –
apache subversion 1.7.16 –
apache subversion 1.7.17 –
apache subversion 1.8.0 –
apache subversion 1.8.1 –
apache subversion 1.8.2 –
apache subversion 1.8.3 –
apache subversion 1.8.4 –
apache subversion 1.8.5 –
apache subversion 1.8.6 –
apache subversion 1.8.7 –
apache subversion 1.8.8 –
apache subversion 1.8.9 –
apache subversion 1.4.0 –
apache subversion 1.4.1 –
apache subversion 1.4.2 –
apache subversion 1.4.3 –
apache subversion 1.4.4 –
apache subversion 1.4.5 –
apache subversion 1.4.6 –
apache subversion 1.5.0 –
apache subversion 1.5.1 –
apache subversion 1.5.2 –
apache subversion 1.5.3 –
apache subversion 1.5.4 –
apache subversion 1.5.5 –
apache subversion 1.5.6 –
apache subversion 1.5.7 –
apache subversion 1.5.8 –
apache subversion 1.6.0 –
apache subversion 1.6.1 –
apache subversion 1.6.2 –
apache subversion 1.6.3 –
apache subversion 1.6.4 –
apache subversion 1.6.5 –
apache subversion 1.6.6 –
apache subversion 1.6.7 –
apache subversion 1.6.8 –
apache subversion 1.6.9 –
apache subversion 1.6.10 –
apache subversion 1.6.11 –
apache subversion 1.6.12 –
apache subversion 1.6.13 –
apache subversion 1.6.14 –
apache subversion 1.6.15 –
apache subversion 1.6.16 –
apache subversion 1.6.17 –
apache subversion 1.6.18 –
apache subversion 1.6.19 –
apache subversion 1.6.20 –
apache subversion 1.6.21 –
apache subversion 1.6.23 –
apache subversion 1.7.0 –
apache subversion 1.7.1 –
apache subversion 1.7.2 –
apache subversion 1.7.3 –
apple xcode 6.1.1 –
canonical ubuntu linux 12.04 –
canonical ubuntu linux 14.04 –
opensuse opensuse 12.3 –
opensuse opensuse 13.1 –
All 47 Apache Subversion vulnerabilities

Vulnerability type

CWE-297 Improper Validation of Certificate with Host Mismatch

The product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host.

Impact on systems

ScopeImpact
Access Control Gain Privileges or Assume Identity
The data read from the system vouched for by the certificate may not be from the expected system.
Authentication, Other Other
Trust afforded to the system in question - based on the malicious certificate - may allow for spoofing or redirection attacks.
Access Control, Other Gain Privileges or Assume Identity, Other
If the certificate's host-specific data is not properly checked - such as the Common Name (CN) in the Subject or the Subject Alternative Name (SAN) extension of an X.509 certificate - it may be possible for a redirection or spoofing attack to allow a malicious host with a valid certificate to provide data, impersonating a trusted host.

How to prevent it

Architecture and Design In order to ensure data integrity, the certificate must be valid, and it must pertain to the site that is being accessed.Fully check the hostname of the certificate and provide the user with adequate information about the nature of the problem and how to proceed.
Implementation If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.
Implementation Be careful of other weaknesses in the code that checks the hostname, since it is still possible to incorrectly check the hostname. For example, attackers could create a certificate with a name that begins with a trusted name followed by a NUL byte, which could cause some string-based comparisons to only examine the portion that contains the trusted name.

All 72 CWE-297 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org