{"answers":{"affected":"4 open source packages ship an affected version, including io.netty:netty-codec and io.netty:netty-codec-compression. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58057 exists.","fix":"Upgrade io.netty:netty-codec to 4.1.125.Final or later.","what":"CVE-2025-58057 is a medium-severity denial of service vulnerability in Netty Netty, published on 3 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-58057 and fix it if it is affected.\n\nWhat it is: CVE-2025-58057 is a medium-severity denial of service vulnerability in Netty Netty, published on 3 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58057 exists.\n\nAffected packages and fixed versions:\n- io.netty:netty-codec (Maven): affected all versions; fixed in 4.1.125.Final\n- io.netty:netty-codec (Maven): affected all versions; fixed in 4.1.125.Final\n- io.netty:netty-codec-compression (Maven): affected from 4.2.0.Alpha1; fixed in 4.2.5.Final\n- io.netty:netty-codec-compression (Maven): affected from 4.2.0.Alpha1; fixed in 4.2.5.Final\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/CVE-2025-58057/ (Markdown: https://insights.sbomify.com/CVE-2025-58057/index.md)","id":"CVE-2025-58057","markdown":"https://insights.sbomify.com/CVE-2025-58057/index.md","name":"CVE-2025-58057","record":{"aliases":["CLEANSTART-2026-DD70897","CLEANSTART-2026-DW10612","CLEANSTART-2026-HA94391","CLEANSTART-2026-TU89159","CLEANSTART-2026-UI06484","CLSA-2026-1777336751","CLSA-2026-1777336753","DEBIAN-CVE-2025-58057","ECHO-5b70-97c8-c749","GHSA-3p8m-j85q-pgmj","MINI-2fmr-227r-3mmc","MINI-2m4f-c237-9w69","MINI-2xxj-j6rj-q5p5","MINI-3j6h-hc77-6pvq","MINI-3vq8-x5qr-4v2q","MINI-3w3f-59qq-cqwx","MINI-447q-pgg7-vj4p","MINI-4692-2g3q-x33c","MINI-4g66-vfhq-fpp8","MINI-4pch-p6jw-8v5v","MINI-5697-v92c-7vwr","MINI-5mx5-2m3m-vp42","MINI-6593-v7wp-cqh5","MINI-72vr-jq37-wmc7","MINI-77f2-6fw3-xv4w","MINI-784x-c479-q876","MINI-7m6q-548p-r52p","MINI-86hq-55rw-9w2m","MINI-89rm-24p5-r62g","MINI-8fwq-m7hh-9m2c","MINI-8jh2-gwfj-h3v5","MINI-9cpx-9f59-gx82","MINI-9prh-96rw-r73g","MINI-c52v-fjhh-q54r","MINI-cfrc-wjw9-v49x","MINI-cvxj-2j4h-gc6w","MINI-fc78-6h7v-v426","MINI-fj6v-r6jf-733c","MINI-frh2-w5v2-988x","MINI-h9qc-wmhg-pj95","MINI-hgxc-w7hm-8hh3","MINI-hhww-qhvf-xjhw","MINI-jc69-m2wc-5263","MINI-jx79-2f6p-r7mg","MINI-m2j8-wxgr-26rq","MINI-mm47-22gc-4mxx","MINI-mq4j-mw7j-r822","MINI-p85h-4cp2-rcxm","MINI-q4gv-5cwv-5p86","MINI-qc27-cwp9-7w53","MINI-qf7j-w86h-24v4","MINI-qjfm-942f-7hc5","MINI-r68f-9v6w-cmqq","MINI-r8mj-346r-hhv2","MINI-rvrx-cpv2-wwjr","MINI-w5p3-9xmh-694j","MINI-wf2g-j36r-m22g","MINI-wfwv-5937-pg28","MINI-x8gv-w9h3-p452","ROOT-APP-MAVEN-CVE-2025-58057"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Java network framework","requires_auth":"none","summary":"Attackers can cause denial of service in Netty applications by sending crafted input that triggers excessive memory allocation in the BrotliDecoder.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"netty","vendor":"netty"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"}],"description":"Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers \u0026 clients. In netty-codec-compression versions 4.1.124.Final and below, and netty-codec versions 4.2.4.Final and below, when supplied with specially crafted input, BrotliDecoder and certain other decompression decoders will allocate a large number of reachable byte buffers, which can lead to denial of service. BrotliDecoder.decompress has no limit in how often it calls pull, decompressing data 64K bytes at a time. The buffers are saved in the output list, and remain reachable until OOM is hit. This is fixed in versions 4.1.125.Final of netty-codec and 4.2.5.Final of netty-codec-compression.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Netty's BrotliDecoder is vulnerable to DoS via zip bomb style attack","id":"CVE-2025-58057","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"netty:netty","products":["netty:netty"],"type":"denial_of_service","year":"2025"},"n_packages":4,"n_references":2,"next":{"headline":"github.com/ulikunitz/xz leaks memory when decoding a corrupted multiple LZMA archives","id":"CVE-2025-58058"},"packages":[{"ecosystem":"Maven","fixed":["4.1.125.Final"],"introduced":["0"],"last_affected":[],"package":"io.netty:netty-codec","purl":null,"source":"GHSA-3p8m-j85q-pgmj"},{"ecosystem":"Maven","fixed":["4.1.125.Final"],"introduced":["0"],"last_affected":[],"package":"io.netty:netty-codec","purl":"pkg:maven/io.netty/netty-codec","source":"GHSA-3p8m-j85q-pgmj"},{"ecosystem":"Maven","fixed":["4.2.5.Final"],"introduced":["4.2.0.Alpha1"],"last_affected":[],"package":"io.netty:netty-codec-compression","purl":null,"source":"GHSA-3p8m-j85q-pgmj"},{"ecosystem":"Maven","fixed":["4.2.5.Final"],"introduced":["4.2.0.Alpha1"],"last_affected":[],"package":"io.netty:netty-codec-compression","purl":"pkg:maven/io.netty/netty-codec-compression","source":"GHSA-3p8m-j85q-pgmj"}],"prev":{"headline":"Netty is vulnerable to request smuggling due to incorrect parsing of chunk extensions","id":"CVE-2025-58056"},"products":["netty"],"published":"2025-09-03","related":[{"cvss_score":9.1,"headline":"Netty: SNI Routing Bypass via Fragmented TLS ClientHello Causing Fallback to Default SslContext","id":"CVE-2026-75595","kev_date_added":null,"published":"2026-08-19"},{"cvss_score":8.7,"headline":"Netty: Fragmented ClientHello records trigger quadratic pre-handshake reassembly in default SNI parsing","id":"CVE-2026-75596","kev_date_added":null,"published":"2026-08-19"},{"cvss_score":8.7,"headline":"Netty Bzip2Decoder: Infinite Loop in RLE State Machine Leads to Event-Loop Thread Hang","id":"CVE-2026-59901","kev_date_added":null,"published":"2026-07-29"},{"cvss_score":8.7,"headline":"Netty codec-haproxy: Signed-Byte Sentinel Collision in HAProxyMessageDecoder Leads to Unbounded Memory Exhaustion","id":"CVE-2026-55851","kev_date_added":null,"published":"2026-07-21"},{"cvss_score":8.7,"headline":"Netty SpdyHttpDecoder: ByteBuf Reference Leak on RST_STREAM Leads to Native Memory Exhaustion","id":"CVE-2026-56745","kev_date_added":null,"published":"2026-07-21"},{"cvss_score":8.7,"headline":"Netty Vulnerable to DNS Cache Poisoning via Missing Bailiwick Checks in CNAME Records","id":"CVE-2026-45674","kev_date_added":null,"published":"2026-06-12"},{"cvss_score":8.7,"headline":"Netty has Insufficient Bailiwick Validation for NS Records","id":"CVE-2026-47691","kev_date_added":null,"published":"2026-06-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-04","vendors":["netty"]},"summary":"Attackers can cause denial of service in Netty applications by sending crafted input that triggers excessive memory allocation in the BrotliDecoder.","url":"https://insights.sbomify.com/CVE-2025-58057/"}