[ruby-core:117282] [Ruby master Bug#20386] Backport CVE-2024-27281