{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/51224?format=json","vulnerability_id":"VCID-x1v9-b8gs-nfc8","summary":"CVE-2026-46727 - Use-after-free in pthread-based getaddrinfo timeout handler\n## SUMMARY\n\nA race condition leading to a use-after-free in the pthread-based\ngetaddrinfo timeout handler (rb_getaddrinfo in ext/socket/raddrinfo.c)\nallows a remote attacker who can delay DNS responses near the\nuser-specified timeout to crash a Ruby process that calls\nAddrinfo.getaddrinfo(..., timeout:) or Socket.tcp(..., resolv_timeout:).\nMemory-corruption-based exploitation is theoretically possible. The\nattack could, for example, be carried out through a crafted\nauthoritative DNS server or recursive resolver.\n\nThis vulnerability has been assigned the CVE identifier CVE-2026-46727.\n\nThis issue has been fixed in Ruby 4.0.5. We recommend upgrading Ruby.","aliases":[{"alias":"CVE-2026-46727"}],"fixed_packages":[],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/75050?format=json","purl":"pkg:ruby/ruby@4.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-x1v9-b8gs-nfc8"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:ruby/ruby@4.0"}],"references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-46727","reference_id":"","reference_type":"","scores":[{"value":"0.00161","scoring_system":"epss","scoring_elements":"0.36825","published_at":"2026-06-06T12:55:00Z"},{"value":"0.00161","scoring_system":"epss","scoring_elements":"0.36753","published_at":"2026-06-08T12:55:00Z"},{"value":"0.00161","scoring_system":"epss","scoring_elements":"0.36818","published_at":"2026-06-05T12:55:00Z"},{"value":"0.00161","scoring_system":"epss","scoring_elements":"0.36791","published_at":"2026-06-07T12:55:00Z"},{"value":"0.00161","scoring_system":"epss","scoring_elements":"0.36765","published_at":"2026-06-09T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-46727"},{"reference_url":"https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml","reference_id":"","reference_type":"","scores":[{"value":"7","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H"}],"url":"https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46727","reference_id":"","reference_type":"","scores":[{"value":"8.1","scoring_system":"cvssv3","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46727"},{"reference_url":"https://hackerone.com/reports/3607434","reference_id":"3607434","reference_type":"","scores":[{"value":"8.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-05-22T18:41:24Z/"}],"url":"https://hackerone.com/reports/3607434"},{"reference_url":"https://www.ruby-lang.org/en/news/2026/05/20/getaddrinfo-cve-2026-46727/","reference_id":"getaddrinfo-cve-2026-46727","reference_type":"","scores":[{"value":"8.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-05-22T18:41:24Z/"}],"url":"https://www.ruby-lang.org/en/news/2026/05/20/getaddrinfo-cve-2026-46727/"}],"weaknesses":[{"cwe_id":362,"name":"Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","description":"The product contains a code sequence that can run concurrently with other code, and the code sequence requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence that is operating concurrently."}],"exploits":[],"severity_range_score":"7.0 - 8.1","exploitability":"0.5","weighted_severity":"7.3","risk_score":3.6,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-x1v9-b8gs-nfc8"}