CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2024-27280

Critical
Published: Translated: NVD NIST

Summary

W wersji StringIO 3.0.1, dystrybuowanej w Ruby 3.0.x do 3.0.6 oraz 3.1.x do 3.1.4, odkryto problem z nadmiernym odczytem bufora. Metody ungetbyte i ungetc mogą odczytywać dane poza końcem łańcucha, co może prowadzić do zwrócenia wartości pamięci przez metodę StringIO.gets.

Risk Assessment

Organizacje mogą być narażone na wycieki danych, ponieważ nieautoryzowane odczyty pamięci mogą ujawniać wrażliwe informacje. To może prowadzić do poważnych naruszeń bezpieczeństwa.

Recommendation

Zaleca się aktualizację do wersji 3.0.3 dla użytkowników Ruby 3.0 oraz do wersji 3.0.1.2 dla użytkowników Ruby 3.1, aby usunąć tę podatność.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS