{"schemaVersion":3,"id":"CVE-2024-27280","aliases":["ALPINE-CVE-2024-27280","UBUNTU-CVE-2024-27280","USN-6853-1","DEBIAN-CVE-2024-27280","CGA-8ggx-m64x-xq36","CGA-q3f9-4567-256h","GHSA-v5h6-c2hv-hv3r"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2024-05-08T20:51:20.388Z","modified":"2025-11-04T17:17:47.556Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Rubygems","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Rubygems","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02364,"percentile":0.83545,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02364},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02364,"percentile":0.83545}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02364,"percentile":0.83545}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","description":"The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/120.html"}],"affected":[{"vendor":"alpine","product":"ruby","name":"ruby","label":"ruby","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/ruby","purlType":"apk","versions":[{"text":"< 3.1.5-r0","noFixRecorded":false,"fixedIn":null},{"text":"< 3.2.4-r0","noFixRecorded":false,"fixedIn":null},{"text":"< 3.3.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.5-r0 | < 3.2.4-r0 | < 3.3.1-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"ruby-3.1","name":"ruby-3.1","label":"ruby-3.1","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ruby-3.1","purlType":"apk","versions":[{"text":"< 3.1.4-r6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.4-r6","eol":null,"hubHref":null},{"vendor":"wolfi","product":"ruby-3.1","name":"ruby-3.1","label":"ruby-3.1","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/ruby-3.1","purlType":"apk","versions":[{"text":"< 3.1.4-r6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.4-r6","eol":null,"hubHref":null},{"vendor":"debian","product":"ruby3.1","name":"ruby3.1","label":"ruby3.1","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ruby3.1","purlType":"deb","versions":[{"text":"< 3.1.2-7+deb12u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.2-7+deb12u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby2.3","name":"ruby2.3","label":"ruby2.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby2.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby2.5","name":"ruby2.5","label":"ruby2.5","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby2.5","purlType":"deb","versions":[{"text":"< 2.5.1-1ubuntu1.16+esm5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.1-1ubuntu1.16+esm5","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby2.7","name":"ruby2.7","label":"ruby2.7","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby2.7","purlType":"deb","versions":[{"text":"< 2.7.0-5ubuntu1.14","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.0-5ubuntu1.14","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby3.0","name":"ruby3.0","label":"ruby3.0","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby3.0","purlType":"deb","versions":[{"text":"< 3.0.2-7ubuntu2.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.2-7ubuntu2.7","eol":null,"hubHref":null},{"vendor":"RubyGems","product":"stringio","name":"stringio","label":"stringio","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/stringio","purlType":"gem","versions":[{"text":"< 3.0.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.1.1","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://hackerone.com/reports/1399856","label":"hackerone.com/reports/1399856","hostname":"hackerone.com","tags":["WEB"]},{"url":"https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/","label":"www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/","hostname":"www.ruby-lang.org","tags":["REPORT"]},{"url":"https://security.netapp.com/advisory/ntap-20250502-0003/","label":"security.netapp.com/advisory/ntap-20250502-0003/","hostname":"security.netapp.com","tags":[]},{"url":"http://seclists.org/fulldisclosure/2025/Sep/55","label":"seclists.org/fulldisclosure/2025/Sep/55","hostname":"seclists.org","tags":["WEB"]},{"url":"http://seclists.org/fulldisclosure/2025/Sep/54","label":"seclists.org/fulldisclosure/2025/Sep/54","hostname":"seclists.org","tags":["WEB"]},{"url":"http://seclists.org/fulldisclosure/2025/Sep/53","label":"seclists.org/fulldisclosure/2025/Sep/53","hostname":"seclists.org","tags":["WEB"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html","label":"lists.debian.org/debian-lts-announce/2024/09/msg00000.html","hostname":"lists.debian.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XYDHPHEZI7OQXTQKTDZHGZNPIJH7ZV5N/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":[]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-27280","label":"security.alpinelinux.org/vuln/CVE-2024-27280","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-27280","label":"ubuntu.com/security/CVE-2024-27280","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-27280","label":"www.cve.org/CVERecord?id=CVE-2024-27280","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6853-1","label":"ubuntu.com/security/notices/USN-6853-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-7734-1","label":"ubuntu.com/security/notices/USN-7734-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-27280","label":"security-tracker.debian.org/tracker/CVE-2024-27280","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27280","label":"nvd.nist.gov/vuln/detail/CVE-2024-27280","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/ruby/stringio/commit/0e596524097706263d10900ca180898e4a8f5233","label":"github.com/ruby/stringio/commit/0e596524097706263d10900ca180898e4a8f5233","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/ruby/stringio/commit/c58c5f54f1eab99665ea6a161d29ff6a7490afc8","label":"github.com/ruby/stringio/commit/c58c5f54f1eab99665ea6a161d29ff6a7490afc8","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/ruby/stringio","label":"github.com/ruby/stringio","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/stringio/CVE-2024-27280.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/stringio/CVE-2024-27280.yml","hostname":"github.com","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XYDHPHEZI7OQXTQKTDZHGZNPIJH7ZV5N","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20250502-0003","label":"security.netapp.com/advisory/ntap-20250502-0003","hostname":"security.netapp.com","tags":["WEB"]},{"url":"https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280","label":"www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280","hostname":"www.ruby-lang.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DLA-3858-1","DSA-5677-1","MGASA-2024-0160","RHSA-2024:3500","RHSA-2024:3546","RHSA-2024:3668","RHSA-2024:3670","RHSA-2024:3671","RHSA-2024:3838","RHSA-2024:4499","USN-7734-1"],"duplicates":[],"related":["CGA-7FCJ-2H2Q-7WR5","CGA-G58Q-G5RJ-3HPG","CGA-R68J-H636-28FJ","USN-7734-1"]},"timeline":[{"kind":"published","date":"2024-05-08T20:51:20.388Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-04T17:17:47.556Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:19:39.325Z","stale":false,"partial":false}}