{"answers":{"affected":"4 open source packages ship an affected version, including org.http4s:http4s-async-http-client_2.12 and org.http4s:http4s-async-http-client_2.13.","exploited":"There is no known exploitation of GHSA-8hxh-r6f7-jf45 in the wild and no public exploit code.","fix":"Upgrade org.http4s:http4s-async-http-client_2.12 to 0.21.8 or later.","what":"GHSA-8hxh-r6f7-jf45 is a denial of service vulnerability in org.http4s:http4s-async-http-client_2.12, published on 16 Oct 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-8hxh-r6f7-jf45 and fix it if it is affected.\n\nWhat it is: GHSA-8hxh-r6f7-jf45 is a denial of service vulnerability in org.http4s:http4s-async-http-client_2.12, published on 16 Oct 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-8hxh-r6f7-jf45 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.http4s:http4s-async-http-client_2.12 (Maven): affected all versions; fixed in 0.21.8\n- org.http4s:http4s-async-http-client_2.12 (Maven): affected all versions; fixed in 0.21.8\n- org.http4s:http4s-async-http-client_2.13 (Maven): affected all versions; fixed in 0.21.8\n- org.http4s:http4s-async-http-client_2.13 (Maven): affected all versions; fixed in 0.21.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-8hxh-r6f7-jf45/ (Markdown: https://insights.sbomify.com/GHSA-8hxh-r6f7-jf45/index.md)","id":"GHSA-8hxh-r6f7-jf45","markdown":"https://insights.sbomify.com/GHSA-8hxh-r6f7-jf45/index.md","name":"GHSA-8hxh-r6f7-jf45","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Scala HTTP client library","requires_auth":"none","summary":"A malicious server can exhaust client memory via large compressed responses, causing denial of service in applications using this HTTP client library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\nA server we connect to with http4s-async-http-client could theoretically respond with a large or malicious compressed stream and exhaust memory in the client JVM.  It does not affect http4s servers, other client backends, or clients that speak only to trusted servers.  This is related to a transitive dependency on netty-codec-4.1.45.Final, which is affected by [CVE-2020-11612](https://app.snyk.io/vuln/SNYK-JAVA-IONETTY-564897).\n\n### Patches\nUpgrade to http4s-async-http-client \u003e= 0.21.8.  All 1.0 milestones are also safe.\n\n### Workarounds\nAdd an explicit runtime dependency on async-http-client's netty dependencies that evicts them to an unaffected version:\n\n```scala\nlibraryDependencies ++= Seq(\n  \"io.netty\" %  \"netty-codec\"         % \"4.1.53.Final\" % Runtime,\n  \"io.netty\" %  \"netty-codec-socks\"   % \"4.1.53.Final\" % Runtime,\n  \"io.netty\" %  \"netty-handler-proxy\" % \"4.1.53.Final\" % Runtime,\n  \"io.netty\" %  \"netty-common\"        % \"4.1.53.Final\" % Runtime,\n  \"io.netty\" %  \"netty-transport\"     % \"4.1.53.Final\" % Runtime,\n  \"io.netty\" %  \"netty-handler\"       % \"4.1.53.Final\" % Runtime,\n  \"io.netty\" %  \"netty-resolver-dns\"  % \"4.1.53.Final\" % Runtime\n)\n```\n\n### References\n* https://app.snyk.io/vuln/SNYK-JAVA-IONETTY-564897\n* https://github.com/http4s/http4s/issues/3681\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [http4s](https://github.com/http4s/http4s/issues/new)\n* Contact a maintainer privately per [http4s' security policy](https://github.com/http4s/http4s/blob/master/SECURITY.md#reporting-a-vulnerability)","ecosystems":["Maven"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Memory exhaustion in http4s-async-http-client with large or malicious compressed responses","id":"GHSA-8hxh-r6f7-jf45","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2020"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Maven","fixed":["0.21.8"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-async-http-client_2.12","purl":null,"source":"GHSA-8hxh-r6f7-jf45"},{"ecosystem":"Maven","fixed":["0.21.8"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-async-http-client_2.12","purl":"pkg:maven/org.http4s/http4s-async-http-client_2.12","source":"GHSA-8hxh-r6f7-jf45"},{"ecosystem":"Maven","fixed":["0.21.8"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-async-http-client_2.13","purl":null,"source":"GHSA-8hxh-r6f7-jf45"},{"ecosystem":"Maven","fixed":["0.21.8"],"introduced":["0"],"last_affected":[],"package":"org.http4s:http4s-async-http-client_2.13","purl":"pkg:maven/org.http4s/http4s-async-http-client_2.13","source":"GHSA-8hxh-r6f7-jf45"}],"products":null,"published":"2020-10-16","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A malicious server can exhaust client memory via large compressed responses, causing denial of service in applications using this HTTP client library.","url":"https://insights.sbomify.com/GHSA-8hxh-r6f7-jf45/"}