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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-02T00:27:59.862Z

Reserved:

Link: CVE-2024-27280

cve-icon Vulnrichment

Updated: 2024-08-02T00:27:59.862Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-05-14T15:11:56.940

Modified: 2024-07-03T01:50:29.333

Link: CVE-2024-27280

cve-icon Redhat

Severity : Moderate

Publid Date: 2024-03-21T00:00:00Z

Links: CVE-2024-27280 - Bugzilla