# CVE-2024-27280

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-05-08 · Modified: 2025-11-04
- 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
- Record: https://cvemate.com/vulnerability/CVE-2024-27280 · JSON: https://cvemate.com/vulnerability/CVE-2024-27280/json

## 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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.364%, percentile 84.337%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine ruby (Alpine Linux): \< 3.1.5-r0 \| \< 3.2.4-r0 \| \< 3.3.1-r0
- chainguard ruby-3.1 (Chainguard): \< 3.1.4-r6
- wolfi ruby-3.1 (Wolfi): \< 3.1.4-r6
- debian ruby3.1 (Debian): \< 3.1.2-7+deb12u1
- ubuntu ruby2.3 (Ubuntu): All versions (No fix recorded)
- ubuntu ruby2.5 (Ubuntu): \< 2.5.1-1ubuntu1.16+esm5
- ubuntu ruby2.7 (Ubuntu): \< 2.7.0-5ubuntu1.14
- ubuntu ruby3.0 (Ubuntu): \< 3.0.2-7ubuntu2.7
- RubyGems stringio (RubyGems): \< 3.0.1.1

## References (first 20 of 24)

- <https://hackerone.com/reports/1399856>
- <https://www.ruby-lang.org/en/news/2024/03/21/buffer-overread-cve-2024-27280/>
- <https://security.netapp.com/advisory/ntap-20250502-0003/>
- <http://seclists.org/fulldisclosure/2025/Sep/55>
- <http://seclists.org/fulldisclosure/2025/Sep/54>
- <http://seclists.org/fulldisclosure/2025/Sep/53>
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XYDHPHEZI7OQXTQKTDZHGZNPIJH7ZV5N/>
- <https://security.alpinelinux.org/vuln/CVE-2024-27280>
- <https://ubuntu.com/security/CVE-2024-27280>
- <https://www.cve.org/CVERecord?id=CVE-2024-27280>
- <https://ubuntu.com/security/notices/USN-6853-1>
- <https://ubuntu.com/security/notices/USN-7734-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-27280>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27280>
- <https://github.com/ruby/stringio/commit/0e596524097706263d10900ca180898e4a8f5233>
- <https://github.com/ruby/stringio/commit/c58c5f54f1eab99665ea6a161d29ff6a7490afc8>
- <https://github.com/ruby/stringio>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/stringio/CVE-2024-27280.yml>

---

Data as of 2026-12-05T04:50:52.622Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
