{"answers":{"affected":"2 open source packages ship an affected version, including github.com/cloudflare/tableflip.","exploited":"There is no known exploitation of GHSA-gmq2-39ff-f5qg in the wild and no public exploit code.","fix":"Upgrade github.com/cloudflare/tableflip to 1.2.2 or later.","what":"GHSA-gmq2-39ff-f5qg is a denial of service vulnerability in github.com/cloudflare/tableflip, published on 21 May 2021."},"fix_prompt":"Check this codebase for GHSA-gmq2-39ff-f5qg and fix it if it is affected.\n\nWhat it is: GHSA-gmq2-39ff-f5qg is a denial of service vulnerability in github.com/cloudflare/tableflip, published on 21 May 2021. \nExploitation: There is no known exploitation of GHSA-gmq2-39ff-f5qg in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cloudflare/tableflip (Go): affected all versions; fixed in 1.2.2\n- github.com/cloudflare/tableflip (Go): affected all versions; fixed in 1.2.2\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-gmq2-39ff-f5qg/ (Markdown: https://insights.sbomify.com/GHSA-gmq2-39ff-f5qg/index.md)","id":"GHSA-gmq2-39ff-f5qg","markdown":"https://insights.sbomify.com/GHSA-gmq2-39ff-f5qg/index.md","name":"GHSA-gmq2-39ff-f5qg","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"unknown","non_default_config":false,"product_category":"Go tableflip library","requires_auth":"none","summary":"A failed upgrade in the tableflip library can cause hung goroutines in the parent process, leading to a denial of service.","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\nProcesses using tableflip may encounter hung goroutines in the parent process, after a failed upgrade.\n\nThe Go runtime has annoying behaviour around setting and clearing\nO_NONBLOCK: exec.Cmd.Start() ends up calling os.File.Fd() for any\nfile in exec.Cmd.ExtraFiles. os.File.Fd() disables both the use\nof the runtime poller for the file and clears O_NONBLOCK from\nthe underlying open file descriptor.\n\nThis can lead to goroutines hanging in a parent process, after at least\none failed upgrade. The bug manifests in goroutines which rely on\neither a deadline or interruption via Close() to be unblocked being stuck\nin read or accept like syscalls. As far as I can tell we've not experienced\nthis problem in production, so it's most likely quite rare.\n\n### Patches\nThe problem has been fixed in v1.2.2.\n\n### Workarounds\nNone.\n\n### References\n* https://github.com/cloudflare/tableflip/commit/cae714b289e199db5da5f08af861ea65be6232c0","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":"A failed upgrade may lead to hung goroutines","id":"GHSA-gmq2-39ff-f5qg","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.2.2"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudflare/tableflip","purl":null,"source":"GHSA-gmq2-39ff-f5qg"},{"ecosystem":"Go","fixed":["1.2.2"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudflare/tableflip","purl":"pkg:golang/github.com/cloudflare/tableflip","source":"GHSA-gmq2-39ff-f5qg"}],"products":null,"published":"2021-05-21","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 failed upgrade in the tableflip library can cause hung goroutines in the parent process, leading to a denial of service.","url":"https://insights.sbomify.com/GHSA-gmq2-39ff-f5qg/"}