VYPR
Critical severity9.8NVD Advisory· Published Oct 30, 2017· Updated May 13, 2026

CVE-2013-4366

CVE-2013-4366

Description

http/impl/client/HttpClientBuilder.java in Apache HttpClient 4.3.x before 4.3.1 does not ensure that X509HostnameVerifier is not null, which allows attackers to have unspecified impact via vectors involving hostname verification.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
org.apache.httpcomponents:httpclientMaven
>= 4.3, < 4.3.14.3.1

Affected products

4
  • Apache/Httpclient4 versions
    cpe:2.3:a:apache:httpclient:4.3:*:*:*:*:*:*:*+ 3 more
    • cpe:2.3:a:apache:httpclient:4.3:*:*:*:*:*:*:*
    • cpe:2.3:a:apache:httpclient:4.3:alpha1:*:*:*:*:*:*
    • cpe:2.3:a:apache:httpclient:4.3:beta1:*:*:*:*:*:*
    • cpe:2.3:a:apache:httpclient:4.3:beta2:*:*:*:*:*:*

Patches

1
08140864e3e4

Ensure X509HostnameVerifier is never null

https://github.com/apache/httpcomponents-clientOleg KalnichevskiOct 2, 2013via ghsa
2 files changed · +7 0
  • httpclient/src/main/java/org/apache/http/impl/client/HttpClientBuilder.java+4 0 modified
    @@ -699,6 +699,10 @@ public CloseableHttpClient build() {
             if (connManager == null) {
                 LayeredConnectionSocketFactory sslSocketFactory = this.sslSocketFactory;
                 if (sslSocketFactory == null) {
    +                X509HostnameVerifier hostnameVerifier = this.hostnameVerifier;
    +                if (hostnameVerifier == null) {
    +                    hostnameVerifier = SSLConnectionSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER;
    +                }
                     if (sslcontext != null) {
                         sslSocketFactory = new SSLConnectionSocketFactory(sslcontext, hostnameVerifier);
                     } else {
    
  • RELEASE_NOTES.txt+3 0 modified
    @@ -1,6 +1,9 @@
     Changes since 4.3
     -------------------
     
    +* Ensure X509HostnameVerifier is never null.
    +  Contributed by Oleg Kalnichevski <olegk at apache.org>
    +
     * [HTTPCLIENT-1405] CONNECT HTTP/1.1 requests lack mandatory 'Host' header.
       Contributed by Oleg Kalnichevski <olegk at apache.org>
     
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

5

News mentions

0

No linked articles in our index yet.