{"id":"CVE-2024-27280","published":"2024-05-08T20:51:20Z","modified":"2025-11-04T17:17:47Z","title":"A buffer-overread issue was discovered in StringIO 3.0.1, as distributed in Ruby 3.0.x through 3.0.6 and 3.1.x through…","vendor":null,"product":null,"tier":"tail","description":{"text":"A buffer-overread issue was discovered in StringIO 3.0.1, as distributed in Ruby 3.0.x through 3.0.6 and 3.1.x through 3.1.4. The ungetbyte and ungetc methods on a StringIO can read past the end of a string, and a subsequent call to StringIO.gets may return the memory value. 3.0.3 is the main fixed version; however, for Ruby 3.0 users, a fixed version is stringio 3.0.1.1, and for Ruby 3.1 users, a fixed version is stringio 3.0.1.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02364,"percentile":0.84196,"provenance":"source"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"references":[{"url":"https://hackerone.com/reports/1399856","tags":[]},{"url":"https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20250502-0003/","tags":[]},{"url":"http://seclists.org/fulldisclosure/2025/Sep/55","tags":[]},{"url":"http://seclists.org/fulldisclosure/2025/Sep/54","tags":[]},{"url":"http://seclists.org/fulldisclosure/2025/Sep/53","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XYDHPHEZI7OQXTQKTDZHGZNPIJH7ZV5N/","tags":[]}],"priority":{"score":23.7,"factors":[{"name":"EPSS percentile","points":16.84},{"name":"CVSS severity","points":6.86}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-05-09T18:08:05.682025Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"stringio","vulnerableRanges":["<3.0.1.1"],"patched":["3.0.1.1"],"from":["GHSA-v5h6-c2hv-hv3r"],"provenance":"source"}],"summary":{"text":"The flaw is a buffer over-read in the StringIO library (version 3.0.1) as distributed with Ruby 3.0.x through 3.0.6 and 3.1.x through 3.1.4, where the ungetbyte and ungetc methods can read past the end of a string. An attacker can cause a subsequent call to StringIO.gets to return memory contents beyond the string's bounds.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:37:33Z"},"euvd":{"id":"EUVD-2024-1008","exploited":false,"provenance":"source"}}