Description
HttpClient based on the classic i/o model fails to correctly release the underlying connection back to the connection manager if it encounters an invalid or unsupported `Content-Encoding` header value in the response message. Please note this defect does not affect HttpClient based on the async i/o model.

This issue affects Apache HttpComponents Client: from 5.0-alpha1 through 5.6.2.
Published: 2026-07-31
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerable HttpClient releases an underlying network connection only when the response body is successfully decoded. If the server sends a response with an unknown or malformed Content‑Encoding header, the client fails to release that connection back to the manager. This resource leak can accumulate, eventually exhausting the pool of available connections and causing the client application to become unresponsive to new requests. The weakness is a classic resource‑management error (CWE‑772) and has no direct impact on data confidentiality or integrity, but it does degrade availability.

Affected Systems

Apache Software Foundation’s HttpComponents Client library, versions 5.0‑alpha1 through 5.6.2, when the classic blocking I/O mode is used. The documented defect is absent from the asynchronous I/O implementation of the library. Applications that embed these specific library versions and depend on the blocking client are therefore vulnerable.

Risk and Exploitability

The CVSS score of 5.3 classifies this as a moderate impact vulnerability. The EPSS score of less than 1% indicates a very low likelihood of exploitation in the wild. It is not listed in CISA’s KEV catalog, suggesting no known active exploitation campaigns. An attacker who controls or can influence an upstream HTTP server could send a malicious response containing an unsupported Content‑Encoding header to a client application that uses the vulnerable HttpClient library. Such an attacker would enable remote denial of service by exhausting the client's connection pool. Because the flaw exists only in the blocking I/O variant, applications that use the async version are naturally protected.

Generated by OpenCVE AI on August 2, 2026 at 04:17 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Apache HttpComponents Client to version 5.6.3 or later, which includes the patch for the connection‑leak flaw.
  • If upgrading the library is not feasible, replace the blocking HttpClient with the async variant or be sure to route HTTP traffic through a proxy that removes or corrects unsupported Content‑Encoding headers before they reach the application.
  • Reduce the maximum size of the connection pool and configure the connection manager to evict idle connections promptly, thereby limiting the window during which the resource leak can accumulate, even though it does not fully eliminate the underlying defect.

Generated by OpenCVE AI on August 2, 2026 at 04:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hjcp-jmpx-g3qm Apache HttpComponents Client: Connection Leak on Content-Encoding Decode Error Leads to Pool Exhaustion DoS
History

Thu, 13 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
References

Sun, 02 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache httpcomponents Client
Vendors & Products Apache
Apache httpcomponents Client

Fri, 31 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 31 Jul 2026 10:30:00 +0000

Type Values Removed Values Added
Description HttpClient based on the classic i/o model fails to correctly release the underlying connection back to the connection manager if it encounters an invalid or unsupported `Content-Encoding` header value in the response message. Please note this defect does not affect HttpClient based on the async i/o model. This issue affects Apache HttpComponents Client: from 5.0-alpha1 through 5.6.2.
Title Apache HttpComponents Client: Connection Leak on Content-Encoding Decode Error Leads to Pool Exhaustion DoS
Weaknesses CWE-772
References

Subscriptions

Apache Httpclient Httpcomponents Client
cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-08-13T16:18:20.395Z

Reserved: 2026-07-20T08:23:45.493Z

Link: CVE-2026-64607

cve-icon Vulnrichment

Updated: 2026-08-13T16:18:20.395Z

cve-icon NVD

Status : Modified

Published: 2026-07-31T11:17:11.710

Modified: 2026-08-13T17:17:33.733

Link: CVE-2026-64607

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T20:32:55Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime