Dynamic runtime library for Ruby
Provides
Requires
License
BSD-2-Clause OR Ruby
Changelog
* Thu Nov 19 2026 adrian.glaubitz@suse.com
- Update to 3.4.13
- GHSA-34m4-m9fh-gqp5: Heap buffer overflow in case conversion of
strings Ruby has a one-byte heap-based buffer overflow in the
case conversion of strings. Changing the case of a crafted
string may allow remote code execution. We are aware of PoCs
that prove this flaw can be used to trigger RCE in some
scenarios. (bsc#1290919, CVE-2026-132825)
- GHSA-7x2q-68qv-6p8x: Double free in regular expression
compilation Ruby has a double free in its regular expression
engine. Compiling a crafted regular expression pattern may
allow remote code execution in applications that compile
attacker-controlled patterns. We are aware of PoCs that prove
this flaw can be used to trigger RCE in some scenarios.
(bsc#1290920)
- GHSA-87fm-7w84-j2px: Integer overflow in case conversion of
strings Ruby has an integer overflow in the case conversion of
strings, which causes a heap-based buffer overflow. Changing
the case of a crafted string may allow remote code execution.
We are aware of PoCs that prove this flaw can be used to
trigger RCE in some scenarios. (bsc#1290921)
- GHSA-wpqw-5qxg-m68r: Out-of-bounds read in case-insensitive
regular expression matching Ruby has an out-of-bounds read in
its regular expression engine. Matching against a crafted
regular expression pattern may allow remote code execution in
applications that use attacker-controlled patterns. We are
aware of PoCs that prove this flaw can lead to memory
corruption in an attacker-controlled way. (bsc#1290923)
- GHSA-3p8q-wmhx-vm2w: Heap buffer overflow in regular expression
compilation Ruby has an integer overflow in its regular
expression engine, which causes a heap-based buffer overflow.
Compiling a crafted regular expression pattern may allow remote
code execution in applications that compile attacker-controlled
patterns. We are aware of PoCs that prove this flaw can be used
to trigger RCE in some scenarios. (bsc#1290924)
- GHSA-7whj-cfh7-xgm4: Heap buffer overflow in Regexp#to_s Ruby
has a heap-based buffer overflow in Regexp#to_s. Converting a
crafted regular expression to a string may allow information
disclosure or remote code execution in applications that
compile attacker-controlled patterns. We are aware of PoCs that
prove this flaw can be used to trigger RCE in some scenarios.
(bsc#1290925)
- GHSA-pvgc-g7gj-pv6h: Out-of-bounds read in case-insensitive
backreference matching Ruby has an out-of-bounds read in its
regular expression engine. Matching a crafted string may
disclose memory contents or crash the process. (bsc#1290926)
- Bug #22477: rb_ec_clear_vm_stack() can still clear the VM stack before
ec->cfp = NULL on aarch64
- Bug #22479: File.realdirpath returns a wrong path when GC runs while it
resolves a relative symlink
- Bug #22476: rb_profile_frames() called from a signal handler segfaults
while vm_make_env_each() is escaping a chain of frames
- Bug #22416: Respect timezone abbreviation encodings in Time#strftime
- Bug #22436: Array#zip with a method_missing-based argument leaks a stale
block handler (segfault when the next C-called method yields)
- Bug #22449: Out-of-bounds in Array#sample when array modified
- Bug #22450: Jump value attaches block in incorrect place under parse.y
- Bug #22456: IO#close hangs forever when another thread is writing to the IO
from a trap handler (please backport ba68343d3a to 3.4)
- JIT: Reject --{y,z}jit-exec-mem-size values that overflow the u32
reservation size by st0012 · Pull Request #19720
- Bug #22451: Coderange may be set incorrectly when concatenating a string into itself
- Bug #20655: Calling continuation triggers ensure function of rb_ensure
- Bug #22458: Time#strftime out-of-bound access
- Bug #22461: Use-after-free in String formatting with wide character encodings
- Bug #22471: Thread#name= on a terminated thread may dump core
- Bug #22467: IO#readpartial can raise EFAULT during GC.compact in another thread
- Bug #22480: Ruby's release tarballs are not POSIX compliant since 2018
- Bug #22491: The number of captures may change depending on the encoding
of the target string
- Bug #22389: Hang on GC.compact
- Feature #22238: String#tr to take a Hash for multi-character replacements
- Bug #22382: IO#write of a shareable String from multiple Ractors causes
use-after-free
- Bug #22535: Release mode segfault due to half-initialized error in singleton_method
- Bug #22504: Empty keyword hash mishandled when calling a Method proc through the C API
- Bug #22512: Overflow in st_init_existing_table_with_size / Hash.new(capacity:)
- Bug #22495: UTF-32 strings with a byte 0x80 or more in the most significant
position are reported as valid
- Bug #22518: String#unpack("m") computes the buffer size with an overflowing multiplication
- Bug #22517: Some String methods return a UTF-16/32 string without room for its terminator
- Bug #21142: Lazy enumerator .each_with_index ignores .take(0) before it
- Bug #22496: Lazy enumerator .each_with_index no longer executes block
- Bug #22540: Process.spawn leaves the env, umask, and redirections applied
in the parent on Windows when chdir: fails
- Bug #22492: String#rindex misses a match with a leading .* in multiline mode
- Bug #22494: Regexp search misses a match when an assertion precedes a leading .*
- Bug #22537: IO#gets(nil, limit) stops right after a 0xFF byte
- Fix memoization for the /(...){0}/ case by makenowjust · Pull Request #13169
- Bug #21304: heap-use-after-free of Array#hash via mutating hash method
- Ensure safe handling of hexdump width. by ioquatix · Pull Request #16593
- Bug #21974: Cannot inspect RubyVM::AST for CDECL
- Bug #22333: Assertion Failed: ary_resize_capa:RARRAY_LEN(ary) <= capacity
- Bug #22410: IO#external_encoding / IO#internal_encoding segfault on an uninitialized IO
- Bug #22409: ASan UAF and Assertion Failed: gc_validate_pc:CFP_PC(cfp) >= iseq_encoded:
PC not set when allocating, breaking tracing
- Bug #22543: Segmentation fault when compiling CONST ||= value, CONST &&= value
or CONST += value under # shareable_constant_value: literal (Prism compiler)
- Skip whitespace in rb_memory_view_parse_item_format fill pass by fuzzyrichie · Pull Request #19807
- Bug #22557: parse.y segmentation fault parsing malformed nested case
- Check the result of compile_length_tree() at every call site by mame · Pull Request #19505
- Bug #22597: Regexp named capture names with invalid source encoding
- Bug #22599: parse.y rejects valid retry after a class / class << self
definition inside rescue (Invalid retry after ensure)
- Bug #22433: IO#sysread and IO#pread are inconsistent for length 0 and negative numbers
- from version 3.4.12
- Bug #22342: IO#gets can ignore the limit argument in some edge cases
- Bug #22284: Passing an object with to_int to curry as its arity causes problems with LLP64.
- Bug #22387: str_shared_replace incorrectly recalculates termlen
- Bug #22391: Fix propagation of errno in rb_io_maybe_wait.
- Bug #22388: Use-after-free when an Enumerable retains its each block
- Bug #22326: heap buffer overflow in array.values_at()
- Bug #22423: String#initialize(encoding:) stores an inflated capacity and
writes past the malloc'd buffer on append (rb_str_init termlen double-adjust)
- Prevent double free for too big repetition quantifiers by makenowjust · Pull Request #13332
- Bug #22415: Thread.handle_interrupt needs to preserve errinfo
- Bug #22406: Process.fork can leave the child unable to resolve hostnames: getaddrinfo
helper threads take glibc's resolver lock after releasing the fork lock
- Bug #22445: On macOS, a child of Kernel#fork can abort with
"[BUG] pthread_rwlock_destroy: Resource busy (EBUSY)"
- Reject overflowed repeat/null-check IDs in huge regexps by makenowjust · Pull Request #16801
- Bug #22384: Regexp compile error in the 2nd+ branch of a top-level
alternation leaks the parse tree (regression from #13332, Ruby 4.0)
- from version 3.4.11
- Bug #22196: Heap-use-after-free in fiber_switch with transfer-terminated async tasks on 3.4.10
- Guard fiber target across fiber_store. by samuel-williams-shopify · Pull Request #17951
- Bug #21842: Encoding of rb_interned_str
- Bug #22126: Stack underflow for partial DCE and loops
- Bug #22124: void value missed in parse.y
- Bug #22183: parse.y interpolation inside lambda literal
- Bug #22099: Keyword-only method silently accepts a positional argument
- Bug #22133: Ruby's default SIGINT handling ignores Thread.handle_interrupt masking.
- Bug #22189: Enumerator::Lazy#to_enum does not accept method names as strings
- Bug #22191: Signal.trap(:EXIT) exception only shown if at_exit also raises
- Bug #22198: win32: heap overflow in Kernel#system
- Bug #20958: fix ENV.keys encoding on windows
- Bug #11438: native_thread_init_stack() get machine.stack_start unequal to thread's
stack start address, x86 win32
- Bug #22218: Line TracePoint misses executed loop condition after a guard
- Bug #22223: Socket.tcp with connect_timeout returns a phantom "connected" socket
for a refused connection on macOS 27 (kernel answers EISCONN on connect retry;
SO_ERROR never consulted)
- Bug #22290: Adding instance variables to anonymous object may bloat all future classes
- Bug #22269: Coverage.line_stub clobbers already-collected coverage data
- Bug #22257: Prepending a module to an already-included module leaves stale super caches
- Handle spurious wakeups in Thread#join. by samuel-williams-shopify · Pull Request #13532
- Bug #22311: Build crashes on macOS 26 with the macOS 27 SDK because pipe2() and dup3()
are unavailable
- Bug #22259: Arrays sharding a buffer segfault when concatenating with each other
- Bug #22264: Warning missing from parse.y hash literals
- Bug #22303: EncodingError from interpolating symbol crashes whole process
- Bug #22315: heap-use-after-free in String unpack with a block that mutates the receiver
- Bug #22318: heap uaf triggered in array.flatten
- Bug #22319: heap buffer overflow triggered by array's zip function
- Bug #22322: AddressSanitizer: use-after-poison in econv_description
/ruby-src/build/../transcode.c
- Bug #22321: Assertion Failed: rb_vm_search_method_slowpath:RB_TYPE_2_P(klass,
RUBY_T_CLASS, RUBY_T_ICLASS): klass: T_MODULE
- Bug #22334: Assertion Failed: VM_ENV_FLAGS:FIXNUM_P(flags)
- Bug #22336: IO:Buffer Heap uaf
- Bug #9932: Permutation - Segment fault
- Bug #22330: heap uaf from string.encode()
- Bug #22340: Win32: File.stat succeeds on symbolic-link loops on Windows
- Bug #22335: Stack corruption with >31 keyword args and refined Integer#==
- Bug #22338: [Backport] win32: create directory symlinks for relative directory targets
* Wed Jul 01 2026 steven.baker@suse.com
- Update to 3.4.10
This release updates the bundled net-imap gem to 0.5.15, which
contains security fixes:
* CVE-2026-47240: command injection via non-synchronizing literals
in the "raw" argument (boo#1268337)
* CVE-2026-47242: command injection through unvalidated ID and
ENABLE arguments (boo#1268339)
* CVE-2026-47241: denial of service via incomplete "raw" argument
validation (boo#1268338)
- Drop 9d017be4e375cdd058650ce528ee6adfead20cac.patch:
ERB CVE-2026-41316 fix (boo#1262441) included upstream in 3.4.10
- No longer install the ChangeLog doc file; upstream stopped
shipping it in 3.4.10
* Mon Jun 15 2026 mrueckert@suse.de
- Fix %pre*/%post scriptlets for u-a mode
* Mon May 11 2026 mrueckert@suse.de
- replace update-alternatives with alts
(ref: https://en.opensuse.org/openSUSE:Migrating_to_libalternatives_with_alts)
* Tue Apr 21 2026 mrueckert@suse.de
- Add 9d017be4e375cdd058650ce528ee6adfead20cac.patch (boo#1262441)
ERB @_init deserialization guard bypass via def_module /
def_method / def_class CVE-2026-41316.
* Sun Apr 12 2026 mrueckert@suse.de
- Adapt the valgrind conditional for SLFO
* Wed Mar 11 2026 mrueckert@suse.de
- Update to 3.4.9 (boo#1259239)
This release includes an update to the zlib gem addressing
CVE-2026-27820, along with other bug fixes.
- Bug #21715: Miscompilation on x86-64-v2 due to undefined
behavior in search_nonascii in string.c - Ruby - Ruby Issue
Tracking System
- Bug #21787: IO::Buffer Integer Overflow in Range Validation
Leads to Out-of-Bounds Memory Access - Ruby - Ruby Issue
Tracking System
- Bug #21757: Splatted args array is mutated when passing
unexpected kwargs - Ruby - Ruby Issue Tracking System
- Bug #21326: Instruction generation differences between parse.y
and prism for def a(x, ...); b(...); end - Ruby - Ruby Issue
Tracking System
- Bug #21814: 0.pow(2,-9999999999999999990) should be zero - Ruby
- Ruby Issue Tracking System
- Bug #21819: A Data object should be frozen even if it has no
members - Ruby - Ruby Issue Tracking System
- Bug #21811: Fix underflow in Array#pack - Ruby - Ruby Issue
Tracking System
- Bug #21838: Rails seeing degradation (20% slowdown) related to
Revision 079ef92b "Implement global allocatable slots and empty
pages" (from Sep 5 2024) - Ruby - Ruby Issue Tracking System
- Bug #21931: GC Crash in String#% (backport
726205b354d1068147719fb42e1de743f1838ef1) - Ruby - Ruby Issue
Tracking System
- Bug #21860: Process.fork: the child may deadlock on
th->interrupt_lock in threadptr_interrupt_exec_cleanup - Ruby -
Ruby Issue Tracking System
- Bug #21873: UnboundMethod#== returns false for methods from
included/extended modules - Ruby - Ruby Issue Tracking System
* Thu Dec 25 2025 mrueckert@suse.de
- drop unneeded ruby32 provides
* Wed Dec 17 2025 mrueckert@suse.de
- Update to 3.4.8
- Bug #21629: Ruby-3.4.7 prints -Wdefault-const-init-field-unsafe
warnings on clang / llvm 21 - Ruby - Ruby Issue Tracking System
- Bug #21626: Backport WASI setjmp handler memory leak fixes -
Ruby - Ruby Issue Tracking System
- Bug #21631: Backport openssl gem bugfix releases - Ruby - Ruby
Issue Tracking System
- Bug #21632: Backport REXML CVE-2025-58767 fix - Ruby - Ruby
Issue Tracking System
- Bug #21644: Stack cons