CVE-2015-5262: Httpclient Httpclient Vulnerability

MODERATE
Advisory Identifier: GHSA-fmj5-wv96-r2ch
Published
Advisory Summary

CVE-2015-5262 is a MODERATE httpclient vulnerability (General Security Weakness) affecting Httpclient libraries in the Maven ecosystem. The issue involves httpclient. Remediation is available by upgrading affected packages to version 4.3.6.

CVE-2015-5262 at a Glance

CVE Identifier CVE-2015-5262
GHSA Identifier GHSA-fmj5-wv96-r2ch
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Httpclient
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2015-5262

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

org.apache.httpcomponents:httpclient fixed: 4.3.6
<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpclient</artifactId>
    <version>4.3.6</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=org.apache.httpcomponents

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.httpcomponents

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

Note: The mvn dependency:tree -Dincludes=org.apache.httpcomponents 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 General Security Weakness. In Httpclient, 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

http/conn/ssl/SSLConnectionSocketFactory.java in Apache HttpComponents HttpClient before 4.3.6 ignores the http.socket.timeout configuration setting during an SSL handshake, which allows remote attackers to cause a denial of service (HTTPS call hang) via unspecified vectors.

CVE-2015-5262 Affected Httpclient Versions

1 component(s)
Fixed Versions:
4.3.6
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.httpcomponents:httpclient
Maven
< 4.3.6
4.3.6

References

NVD — CVE-2015-5262 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-5262
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1261538
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-fmj5-wv96-r2ch
issues.apache.org/jira/browse/httpcli... WEB
https://issues.apache.org/jira/browse/HTTPCLIENT-1478
Httpclient Security Information SECURITY
https://jenkins.io/security/advisory/2018-02-26
lists.apache.org/thread.html/519eb0f... WEB
https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/519eb0f... WEB
https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/b0656d3... WEB
https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/b0656d3... WEB
https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E
lists.apache.org/thread.html/f9bc3e5... WEB
https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E
lists.apache.org/thread.html/f9bc3e5... WEB
https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2015-October/167962.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2015-October/167999.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2015-October/168030.html
Httpclient Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00032.html
Httpclient Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00033.html
svn.apache.org/viewvc WEB
http://svn.apache.org/viewvc?view=revision&revision=1626784
Httpclient Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
Httpclient Security Information SECURITY
http://www.securitytracker.com/id/1033743
www.ubuntu.com/usn/usn-2769-1 WEB
http://www.ubuntu.com/usn/USN-2769-1

Frequently Asked Questions

What is CVE-2015-5262?
CVE-2015-5262 is a security vulnerability in Httpclient involving httpclient under General Security Weakness.
Which Httpclient versions are affected?
Affected versions include releases prior to 4.3.6 across affected packages: org.apache.httpcomponents:httpclient.
What version fixes CVE-2015-5262?
Upgrading to 4.3.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is httpclient affected?
Yes, org.apache.httpcomponents:httpclient is affected in releases prior to 4.3.6. Upgrade your dependency to 4.3.6 or later.
What CWE is associated with CVE-2015-5262?
CVE-2015-5262 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2015-5262?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.httpcomponents'. 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-fmj5-wv96-r2ch",
  "modified" : "2023-02-13T18:20:06Z",
  "published" : "2018-10-17T00:05:29Z",
  "aliases" : [ "CVE-2015-5262" ],
  "summary" : "Denial of service vulnerability in org.apache.httpcomponents:httpclient",
  "details" : "http/conn/ssl/SSLConnectionSocketFactory.java in Apache HttpComponents HttpClient before 4.3.6 ignores the http.socket.timeout configuration setting during an SSL handshake, which allows remote attackers to cause a denial of service (HTTPS call hang) via unspecified vectors.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.httpcomponents:httpclient"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.3.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-5262"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1261538"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-fmj5-wv96-r2ch"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/HTTPCLIENT-1478"
  }, {
    "type" : "WEB",
    "url" : "https://jenkins.io/security/advisory/2018-02-26"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-October/167962.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-October/167999.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-October/168030.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00032.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00033.html"
  }, {
    "type" : "WEB",
    "url" : "http://svn.apache.org/viewvc?view=revision&revision=1626784"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id/1033743"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2769-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:34:55Z",
    "nvd_published_at" : "2015-10-27T16:59:00Z"
  }
}