Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚨 [security] [ruby] Update stringio 3.0.1 → 3.0.9 (patch) #785

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

depfu[bot]
Copy link

@depfu depfu bot commented Mar 25, 2024


🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

↗️ stringio (indirect, 3.0.1 → 3.0.9) · Repo · Changelog

Security Advisories 🚨

🚨 Buffer overread vulnerability in StringIO

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.

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.

This vulnerability is not affected StringIO 3.0.3 and later, and Ruby 3.2.x
and later.

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:

  • For Ruby 3.0 users: Update to stringio 3.0.1.1
  • For Ruby 3.1 users: Update to stringio 3.0.1.2

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.

Release Notes

3.0.9

stringio 3.0.9 - 2023-11-08

Improvements

  • JRuby: Aligned StringIO#gets behavior with the C implementation.

    GH-61

Fixes

  • CRuby: Fixed StringIO#pread with the length 0.

    Patch by Jean byroot Boussier.

    GH-67

  • CRuby: Fixed a bug that StringIO#gets with non ASCII compatible
    encoding such as UTF-16 doesn't detect correct new line characters.

    Reported by IWAMOTO Kouichi.

    GH-68

Thanks

  • Jean byroot Boussier

  • IWAMOTO Kouichi

3.0.8

stringio 3.0.8 - 2023-08-10

Improvements

  • Added StringIO#pread.

    Patch by Jean byroot Boussier.

    GH-56

  • JRuby: Added StringIO::VERSION.

    GH-57 GH-59

Thanks

  • Jean byroot Boussier

3.0.7

stringio 3.0.7 - 2023-06-02

  • CRuby: Avoid direct struct usage. This change is for supporting
    Ruby 3.3.

    GH-54

3.0.6

stringio 3.0.6 - 2023-04-14

Improvements

  • CRuby: Added support for write barrier.

  • JRuby: Added missing arty-checking.

    GH-48

  • JRuby: Added support for StringIO.new(encoding:).

    GH-45

3.0.5 (from changelog)

Improvements

Fixes

  • Fixed a bug that StringIO#gets("2+ character", chomp: true) did not remove the separator at the end. [Bug #19389]

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
0 participants