{"answers":{"affected":"3 open source packages ship an affected version, including github.com/mostynb/go-grpc-compression.","exploited":"There is no known exploitation of GHSA-87m9-rv8p-rgmg in the wild and no public exploit code.","fix":"Upgrade github.com/mostynb/go-grpc-compression to 1.2.3 or later.","what":"GHSA-87m9-rv8p-rgmg is a denial of service vulnerability in github.com/mostynb/go-grpc-compression, published on 10 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-87m9-rv8p-rgmg and fix it if it is affected.\n\nWhat it is: GHSA-87m9-rv8p-rgmg is a denial of service vulnerability in github.com/mostynb/go-grpc-compression, published on 10 Jun 2024. 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-87m9-rv8p-rgmg in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/mostynb/go-grpc-compression (Go): affected from 1.1.4; fixed in 1.2.3\n- github.com/mostynb/go-grpc-compression (Go): affected from 1.1.4; fixed in 1.2.3\n- github.com/mostynb/go-grpc-compression (Go): affected from 1.1.4; fixed in 1.2.3\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-87m9-rv8p-rgmg/ (Markdown: https://insights.sbomify.com/GHSA-87m9-rv8p-rgmg/index.md)","id":"GHSA-87m9-rv8p-rgmg","markdown":"https://insights.sbomify.com/GHSA-87m9-rv8p-rgmg/index.md","name":"GHSA-87m9-rv8p-rgmg","record":{"aliases":["GO-2024-2911"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go gRPC compression library","requires_auth":"none","summary":"A malicious user can cause denial of service via crafted gRPC requests due to unbounded zstd decompression, requiring library upgrades.","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\n\nA malicious user could cause a denial of service (DoS) when using a specially crafted gRPC request. The decompression mechanism for zstd did not respect the limits imposed by gRPC, allowing rapid memory usage increases.\n\nVersions v1.1.4 through to v1.2.2 made use of the Decoder.DecodeAll function in github.com/klauspost/compress/zstd to decompress data provided by the peer. The vulnerability is exploitable only by attackers who can send gRPC payloads to users of github.com/mostynb/go-grpc-compression/zstd or github.com/mostynb/go-grpc-compression/nonclobbering/zstd.\n\n### Patches\n\nVersion v1.2.3  of github.com/mostynb/go-grpc-compression avoids the issue by not using the Decoder.DecodeAll function in github.com/klauspost/compress/zstd.\n\nAll users of github.com/mostynb/go-grpc-compression/zstd or github.com/mostynb/go-grpc-compression/nonclobbering/zstd in the affected versions should update to v1.2.3.\n\n### Workarounds\n\nOther compression formats were not affected, users may consider switching from zstd to another format without upgrading to a newer release.\n\n### References\n\nThis issue was uncovered during a security audit performed by [Miroslav Stampar](https://github.com/stamparm/) of [7ASecurity](https://7asecurity.com/), facilitated by [OSTIF](https://ostif.org/), for the OpenTelemetry project.\n\nhttps://opentelemetry.io/blog/2024/cve-2024-36129\nhttps://github.com/open-telemetry/opentelemetry-collector/security/advisories/GHSA-c74f-6mfw-mm4v","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"go-grpc-compression has a zstd decompression bombing vulnerability","id":"GHSA-87m9-rv8p-rgmg","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.2.3"],"introduced":["1.1.4"],"last_affected":[],"package":"github.com/mostynb/go-grpc-compression","purl":null,"source":"GHSA-87m9-rv8p-rgmg"},{"ecosystem":"Go","fixed":["1.2.3"],"introduced":["1.1.4"],"last_affected":[],"package":"github.com/mostynb/go-grpc-compression","purl":"pkg:golang/github.com/mostynb/go-grpc-compression","source":"GHSA-87m9-rv8p-rgmg"},{"ecosystem":"Go","fixed":["1.2.3"],"introduced":["1.1.4"],"last_affected":[],"package":"github.com/mostynb/go-grpc-compression","purl":"pkg:golang/github.com/mostynb/go-grpc-compression","source":"GO-2024-2911"}],"products":null,"published":"2024-06-10","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A malicious user can cause denial of service via crafted gRPC requests due to unbounded zstd decompression, requiring library upgrades.","url":"https://insights.sbomify.com/GHSA-87m9-rv8p-rgmg/"}