[ruby-core:117280] [Ruby master Bug#20385] Backport CVE-2024-27280