Skip to main content

Java CVE-2026-40490

| EUVDEUVD-2026-23638 MEDIUM
Information Exposure (CWE-200)
2026-04-18 GitHub_M GHSA-cmxv-58fp-fm3g
6.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker identifies AHC client with redirects enabled
  2. Delivery
    Attacker establishes control of redirect destination (open redirect or DNS rebinding)
  3. Exploit
    Application makes authenticated request to legitimate endpoint
  4. Install
    Legitimate endpoint responds with redirect to attacker server
  5. C2
    AHC automatically follows redirect and forwards Authorization headers
  6. Execute
    Attacker captures credentials in server logs
  7. Impact
    Attacker uses stolen credentials for unauthorized access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the AHC application has followRedirect(true) explicitly enabled (or relies on a default configuration that enables redirect following) and uses some form of authentication header (Authorization, Proxy-Authorization, or Realm-based credentials like Basic/Digest). The attacker must also be able to control or influence the redirect target, achieved through one of three vectors: (1) an open redirect vulnerability in a site that the application trusts, allowing the attacker to inject a malicious redirect URL, (2) DNS rebinding or similar network-level attack to redirect the application's request to attacker-controlled infrastructure, or (3) a MITM position on unencrypted (HTTP) traffic, allowing the attacker to inject a redirect response. The vulnerability does NOT require authentication to the AHC application itself (PR:N), does NOT require user interaction at the AHC-using application level (UI:N), and can be triggered remotely (AV:N). However, the practical exploitation window is limited to scenarios where the attacker can establish control over or visibility into the redirect target, which is the source of AC:H. Without any of these preconditions, the vulnerability cannot be exploited; conversely, if any one of them is satisfied (open redirect exists, DNS rebinding is possible, or MITM is feasible), remote unauthenticated credential theft becomes practical.

Impact

CVSS 6.8 with AV:N/AC:H/PR:N/UI:N/S:C/C:H indicates network-accessible credential disclosure with medium-to-high exploitation complexity, affecting confidentiality across scope boundaries. The AC:H score reflects that while the attack is unauthenticated and remotely triggerable, the attacker must either control a redirect destination (open redirect vulnerability in the target site), execute a DNS rebinding attack, or perform a MITM on HTTP traffic - these are non-trivial but feasible preconditions. The S:C (Changed Scope) rating correctly captures that credentials intended for one service can be captured by an attacker-controlled external service. EPSS score is not provided, limiting probabilistic exploitation assessment. However, the vulnerability's real-world risk is elevated because: (1) redirect following is often enabled by default or implicitly in HTTP clients, (2) many Java applications use AHC without explicit credential-handling review, (3) exploitation requires no authentication or user interaction, and (4) leaked credentials (Bearer tokens, API keys) can immediately enable account compromise or lateral movement. The severity is tempered by AC:H, which correctly reflects that exploitability depends on the attacker's ability to influence the redirect target, a prerequisite that may not exist against all AHC deployments. No public exploit code or CISA KEV confirmation reduces immediate threat profile, but the simplicity of triggering redirects and capturing headers makes exploitation highly likely once a suitable redirect vector is identified. Defenders should treat this as high-priority where redirect following is enabled and sensitive credentials are in use.

Exploit ScenarioDerived

An attacker identifies a Java application using AsyncHttpClient with followRedirect(true) enabled to call an authenticated API endpoint (e.g., https://api.example.com/data). The attacker creates an attacker-controlled server or exploits an open redirect vulnerability on a redirector site, then makes the AHC application request a URL that redirects to the attacker's domain. When AsyncHttpClient follows the redirect, it automatically forwards the Authorization header and Realm credentials to the attacker's server, where they are logged in plain text. The attacker then uses the captured Bearer token or Basic auth credentials to impersonate the legitimate user against api.example.com. No user interaction is required beyond the normal operation of the application, and AC:H complexity reflects only the attacker's need to establish control over the redirect target (e.g., via an open redirect, DNS rebinding of an attacker-controlled domain, or MITM on HTTP). Public exploit code is not confirmed at analysis time, though the exploitation mechanics are straightforward HTTP manipulation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 18, 2026

AsyncHttpClient (AHC) library prior to versions 3.0.9 and 2.14.5 leaks Authorization, Proxy-Authorization headers, and plaintext Realm credentials to arbitrary redirect targets when followRedirect(true) is enabled, affecting all Java applications using vulnerable versions. This occurs across domain, scheme, and port changes including HTTPS-to-HTTP downgrades. An attacker controlling a redirect destination via open redirect, DNS rebinding, or MITM can capture Bearer tokens, Basic auth credentials, or any Authorization header value. No public exploit code or active exploitation has been confirmed at analysis time, though the vulnerability is exploitable with high-confidence conditions when redirect following is enabled (CVSS 6.8, network vector, no authentication required).

RemediationAI

Primary remediation is to upgrade AsyncHttpClient to version 2.14.5 or later for 2.x users, or version 3.0.9 or later for 3.x users. These patched versions automatically strip Authorization and Proxy-Authorization headers and clear Realm credentials whenever a redirect crosses origin boundaries (different scheme, host, or port) or downgrades from HTTPS to HTTP. For users unable to immediately upgrade, set stripAuthorizationOnRedirect(true) in the client configuration and avoid using Realm-based authentication (Basic/Digest) with redirect following enabled, understanding that this workaround is incomplete on pre-3.0.9/2.14.5 versions because Realm objects are still propagated. The most robust interim mitigation is to disable redirect following (followRedirect(false)) and implement manual redirect handling with explicit origin validation before following any redirect, ensuring that only same-origin redirects are honored. This manual approach requires code changes but provides complete protection without patching. Users should audit their AsyncHttpClient configurations to identify where followRedirect(true) is used, particularly in applications handling sensitive credentials (API keys, Bearer tokens, Basic auth), and prioritize patching those deployments first. The GitHub security advisory at https://github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-cmxv-58fp-fm3g provides additional implementation guidance.

Affected VersionsENISA

async-http-client < 2.14.5
async-http-client 3.0.0.Beta1, < 3.0.9

Affected Packages

maven org.asynchttpclient:async-http-client fix: 2.14.5, 3.0.9
euvd async_http_client fix: 2.14.5
euvd async_http_client_3_0_0_beta1 fix: 3.0.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

AsyncHttpClient is a popular asynchronous HTTP client library for Java that handles HTTP requests, responses, and redirects. The vulnerability stems from improper handling of HTTP redirects (3xx status codes) in the redirect-following mechanism. When a redirect occurs, the library's NettyRequestFactory and redirect processing logic fail to validate whether the redirect target is in the same origin (same scheme, host, and port). The CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) root cause reflects the uncontrolled propagation of sensitive HTTP headers and authentication objects across origin boundaries. The Realm object in AsyncHttpClient is an authentication credential container used for Basic and Digest authentication schemes; even when stripAuthorizationOnRedirect(true) is configured, the Realm object is still passed to redirect requests, allowing NettyRequestFactory to re-generate Authorization headers using cached credentials. This affects all applications using AsyncHttpClient versions prior to 2.14.5 (2.x series) or 3.0.9 (3.x series) with followRedirect(true) enabled, as identified in GitHub commits and security advisories.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 6.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Red Hat 6.8 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch released
Apr 18, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 18, 2026 - 01:31 nvd
MEDIUM 6.8

DescriptionGitHub Advisory

The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. When redirect following is enabled (followRedirect(true)), versions of AsyncHttpClient prior to 3.0.9 and 2.14.5 forward Authorization and Proxy-Authorization headers along with Realm credentials to arbitrary redirect targets regardless of domain, scheme, or port changes. This leaks credentials on cross-domain redirects and HTTPS-to-HTTP downgrades. Additionally, even when stripAuthorizationOnRedirect is set to true, the Realm object containing plaintext credentials is still propagated to the redirect request, causing credential re-generation for Basic and Digest authentication schemes via NettyRequestFactory. An attacker who controls a redirect target (via open redirect, DNS rebinding, or MITM on HTTP) can capture Bearer tokens, Basic auth credentials, or any other Authorization header value. The fix in versions 3.0.9 and 2.14.5 automatically strips Authorization and Proxy-Authorization headers and clears Realm credentials whenever a redirect crosses origin boundaries (different scheme, host, or port) or downgrades from HTTPS to HTTP. For users unable to upgrade, set (stripAuthorizationOnRedirect(true)) in the client config and avoid using Realm-based authentication with redirect following enabled. Note that (stripAuthorizationOnRedirect(true)) alone is insufficient on versions prior to 3.0.9 and 2.14.5 because the Realm bypass still re-generates credentials. Alternatively, disable redirect following (followRedirect(false)) and handle redirects manually with origin validation.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 5 maven packages depend on org.asynchttpclient:async-http-client (1 direct, 4 indirect)

Ecosystem-wide dependent count for version 3.0.0.Beta1.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy