CVE-2014-3604: Not yet commons ssl Improper Validation Of Certificate With Vulnerability

MODERATE
Advisory Identifier: GHSA-cmxj-wx9v-52qr
CWE-297
Published
Advisory Summary

CVE-2014-3604 is a MODERATE improper validation of certificate with vulnerability (CWE-297: Improper Validation of Certificate with Host Mismatch) affecting Not yet commons ssl libraries in the Maven ecosystem. The issue involves improper validation of certificate with host mismatch in not yet commons ssl. Remediation is available by upgrading affected packages to version 0.3.15.

CVE-2014-3604 at a Glance

CVE Identifier CVE-2014-3604
GHSA Identifier GHSA-cmxj-wx9v-52qr
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-297: Improper Validation of Certificate with Host Mismatch
Affected Product Not yet commons ssl
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2014-3604

To remediate this vulnerability, upgrade all affected Not yet commons ssl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ca.juliusdavies:not-yet-commons-ssl fixed: 0.3.15
<dependency>
    <groupId>ca.juliusdavies</groupId>
    <artifactId>not-yet-commons-ssl</artifactId>
    <version>0.3.15</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=ca.juliusdavies

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2014-3604, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=ca.juliusdavies

Analyze the terminal output to locate any version of Not yet commons ssl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.15), your application is affected.

Note: The mvn dependency:tree -Dincludes=ca.juliusdavies command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-297: Improper Validation of Certificate with Host Mismatch, where 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. In Not yet commons ssl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Certificates.java in Not Yet Commons SSL before 0.3.15 does not properly verify that the server hostname matches a domain name in the subject's Common Name (CN) field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.

CVE-2014-3604 Affected Not yet commons ssl Versions

1 component(s)
Fixed Versions:
0.3.15
Product / Package Ecosystem Affected Versions Fixed Version
ca.juliusdavies:not-yet-commons-ssl
Maven
< 0.3.15
0.3.15

References

Frequently Asked Questions

What is CVE-2014-3604?
CVE-2014-3604 is a security vulnerability in Not yet commons ssl involving Improper Validation of Certificate with Host Mismatch in Not Yet Commons SSL under CWE-297: Improper Validation of Certificate with Host Mismatch.
Which Not yet commons ssl versions are affected?
Affected versions include releases prior to 0.3.15 across affected packages: ca.juliusdavies:not-yet-commons-ssl.
What version fixes CVE-2014-3604?
Upgrading to 0.3.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is not-yet-commons-ssl affected?
Yes, ca.juliusdavies:not-yet-commons-ssl is affected in releases prior to 0.3.15. Upgrade your dependency to 0.3.15 or later.
What CWE is associated with CVE-2014-3604?
CVE-2014-3604 is classified under 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.).
How can I check Maven dependencies for CVE-2014-3604?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=ca.juliusdavies'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cmxj-wx9v-52qr",
  "modified" : "2022-07-07T22:38:20Z",
  "published" : "2022-05-14T03:59:54Z",
  "aliases" : [ "CVE-2014-3604" ],
  "summary" : "Improper Validation of Certificate with Host Mismatch in Not Yet Commons SSL",
  "details" : "Certificates.java in Not Yet Commons SSL before 0.3.15 does not properly verify that the server hostname matches a domain name in the subject's Common Name (CN) field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ca.juliusdavies:not-yet-commons-ssl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-3604"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1131803"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/97659"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/victims/victims-cve-db/blob/master/database/java/2014/3604.yaml"
  }, {
    "type" : "WEB",
    "url" : "http://juliusdavies.ca/svn/viewvc.cgi/not-yet-commons-ssl?view=rev&revision=172"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1888.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-297" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-07T22:38:20Z",
    "nvd_published_at" : "2014-10-25T00:55:00Z"
  }
}