Skip to content

Commit 9e940c6

Browse files
committed
Revised
1 parent cff8934 commit 9e940c6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

en/news/_posts/2024-03-21-buffer-overread-cve-2024-27280.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,33 @@ tags: security
88
lang: en
99
---
1010

11-
We have released the stringio gem version 3.0.1.1 and 3.0.1.2 that have a security fix for a buffer overread vulnerability.
11+
We have released the StringIO gem version 3.0.1.1 and 3.0.1.2 that have a security fix for a buffer overread vulnerability.
1212
This vulnerability has been assigned the CVE identifier [CVE-2024-27280](https://www.cve.org/CVERecord?id=CVE-2024-27280).
1313

1414
## Details
1515

1616
An 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.
1717

18-
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.
18+
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.
1919

20-
This vulnerability is not affected by Ruby 3.2.x and later.
20+
This vulnerability is not affected StringIO 3.0.3 and later, and Ruby 3.2.x and later.
2121

2222
## Recommended action
2323

24-
We recommend to update the stringio gem to version 3.0.1.2 or later. In order to ensure compatibility with bundled version in older Ruby series, you may update as follows instead:
24+
We recommend to update the StringIO gem to version 3.0.3 or later. In order to ensure compatibility with bundled version in older Ruby series, you may update as follows instead:
2525

2626
* For Ruby 3.0 users: Update to `stringio` 3.0.1.1
27+
* For Ruby 3.1 users: Update to `stringio` 3.0.1.2
2728

28-
StringIO-3.0.1.2 contained bugfix for [[Bug #19389]][https://github.com/ruby/ruby/commit/1d24a931c458c93463da1d5885f33edef3677cc2]. This fix has been backported to Ruby 3.1.4. But we didn't change stringio version from 3.0.1. Therefore, we released 3.0.1.2 to include the vulnerability fix.
29+
StringIO 3.0.1.2 contained bugfix for [[Bug #19389]][https://github.com/ruby/ruby/commit/1d24a931c458c93463da1d5885f33edef3677cc2]. This fix has been backported to Ruby 3.1.4. But we didn't change stringio version from 3.0.1. Therefore, we released 3.0.1.2 to include the vulnerability fix.
2930

3031
You can use `gem update stringio` to update it. If you are using bundler, please add `gem "stringio", ">= 3.0.1.2"` to your `Gemfile`.
3132

3233
## Affected versions
3334

3435
* Ruby 3.0.6 or lower
3536
* Ruby 3.1.4 or lower
36-
* StringIO gem 3.0.1 or lower
37+
* StringIO gem 3.0.2 or lower
3738

3839
## Credits
3940

0 commit comments

Comments
 (0)