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