{"url":"http://public2.vulnerablecode.io/api/packages/383619?format=json","purl":"pkg:golang/github.com/cloudflare/tableflip@1.2.2","type":"golang","namespace":"github.com/cloudflare","name":"tableflip","version":"1.2.2","qualifiers":{},"subpath":"","is_vulnerable":false,"next_non_vulnerable_version":"1.2.2","latest_non_vulnerable_version":"1.2.2","affected_by_vulnerabilities":[],"fixing_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/361300?format=json","vulnerability_id":"VCID-p1uj-4sbs-ruh4","summary":"A failed upgrade may lead to hung goroutines\n### 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","references":[{"reference_url":"https://github.com/cloudflare/tableflip/commit/cae714b289e199db5da5f08af861ea65be6232c0","reference_id":"","reference_type":"","scores":[{"value":"LOW","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/cloudflare/tableflip/commit/cae714b289e199db5da5f08af861ea65be6232c0"},{"reference_url":"https://github.com/cloudflare/tableflip/security/advisories/GHSA-gmq2-39ff-f5qg","reference_id":"","reference_type":"","scores":[{"value":"LOW","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/cloudflare/tableflip/security/advisories/GHSA-gmq2-39ff-f5qg"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/383619?format=json","purl":"pkg:golang/github.com/cloudflare/tableflip@1.2.2","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:golang/github.com/cloudflare/tableflip@1.2.2"}],"aliases":["GHSA-gmq2-39ff-f5qg"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-p1uj-4sbs-ruh4"}],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:golang/github.com/cloudflare/tableflip@1.2.2"}