CVE-2022-28738

libruby3.0: A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2

CVE-2022-28738 is fixed in 30 products on 1 platform, first by libruby3.0 3.0.2-7ubuntu2.1, released May 9, 2022. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
9.8
Medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0314
87th percentile

A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2. If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations.

Where it's fixed

ProductFixed inFixReleased
Linux
libruby3.0 · Ubuntu 22.04.1 LTS (jammy) 3.0.2-7ubuntu2.1 libruby3.0 3.0.2-7ubuntu2.1 May 9, 2022
ruby · RHEL 8 0:3.0.4-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
ruby · RHEL 9 0:3.0.4-160.el9_0 RHSA-2022:6585 Sep 20, 2022
ruby · almalinux 8 3.0.4-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
ruby · almalinux 9 3.0.4-160.el9_0 ALSA-2022:6585 Sep 20, 2022
ruby · ol 8 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
ruby · ol 9 0:3.0.4-160.el9_0 ELSA-2022-6585 Sep 21, 2022
ruby · rocky 8 0:3.0.4-141.module+el8.6.0+1002+a7dba0ac RLSA-2022:6450 Sep 13, 2022
ruby · rocky 9 0:3.0.4-160.el9_0 RLSA-2022:6585 Sep 20, 2022
ruby-default-gems · RHEL 8 0:3.0.4-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
ruby-default-gems · RHEL 9 0:3.0.4-160.el9_0 RHSA-2022:6585 Sep 20, 2022
ruby-default-gems · almalinux 8 3.0.4-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
ruby-default-gems · almalinux 9 3.0.4-160.el9_0 ALSA-2022:6585 Sep 20, 2022
ruby-default-gems · ol 8 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
ruby-default-gems · ol 9 0:3.0.4-160.el9_0 ELSA-2022-6585 Sep 21, 2022
ruby-devel · RHEL 8 0:3.0.4-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
ruby-devel · RHEL 9 0:3.0.4-160.el9_0 RHSA-2022:6585 Sep 20, 2022
ruby-devel · almalinux 8 3.0.4-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
ruby-devel · almalinux 9 3.0.4-160.el9_0 ALSA-2022:6585 Sep 20, 2022
ruby-devel · ol 8 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
ruby-devel · ol 9 0:3.0.4-160.el9_0 ELSA-2022-6585 Sep 21, 2022
ruby-doc · RHEL 8 0:3.0.4-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
ruby-doc · RHEL 9 0:3.0.4-160.el9_0 RHSA-2022:6585 Sep 20, 2022
ruby-doc · almalinux 8 3.0.4-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
ruby-doc · almalinux 9 3.0.4-160.el9_0 ALSA-2022:6585 Sep 20, 2022
ruby-doc · ol 8 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
ruby-doc · ol 9 0:3.0.4-160.el9_0 ELSA-2022-6585 Sep 21, 2022
ruby-libs · RHEL 8 0:3.0.4-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
ruby-libs · RHEL 9 0:3.0.4-160.el9_0 RHSA-2022:6585 Sep 20, 2022
ruby-libs · almalinux 8 3.0.4-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
ruby-libs · almalinux 9 3.0.4-160.el9_0 ALSA-2022:6585 Sep 20, 2022
ruby-libs · ol 8 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
ruby-libs · ol 9 0:3.0.4-160.el9_0 ELSA-2022-6585 Sep 21, 2022
ruby3.0 · Ubuntu 22.04.1 LTS (jammy) 3.0.2-7ubuntu2.1 ruby3.0 3.0.2-7ubuntu2.1 May 9, 2022
rubygem-abrt · RHEL 8 0:0.4.0-1.module+el8.5.0+11580+845038eb RHSA-2022:6450 Sep 13, 2022
rubygem-abrt · almalinux 8 0.4.0-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450 Sep 13, 2022
rubygem-abrt · ol 8 0:0.4.0-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450 Sep 15, 2022
rubygem-abrt · rocky 8 0:0.4.0-1.module+el8.5.0+668+665814fa RLSA-2022:6450 Sep 13, 2022
rubygem-abrt-doc · RHEL 8 0:0.4.0-1.module+el8.5.0+11580+845038eb RHSA-2022:6450 Sep 13, 2022
rubygem-abrt-doc · almalinux 8 0.4.0-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450 Sep 13, 2022
rubygem-abrt-doc · ol 8 0:0.4.0-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450 Sep 15, 2022
rubygem-bigdecimal · RHEL 8 0:3.0.0-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-bigdecimal · RHEL 9 0:3.0.0-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-bigdecimal · almalinux 8 3.0.0-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-bigdecimal · almalinux 9 3.0.0-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-bigdecimal · ol 8 0:3.0.0-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-bigdecimal · ol 9 0:3.0.0-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-bundler · RHEL 8 0:2.2.33-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-bundler · RHEL 9 0:2.2.33-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-bundler · almalinux 8 2.2.33-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-bundler · almalinux 9 2.2.33-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-bundler · ol 8 0:2.2.33-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-bundler · ol 9 0:2.2.33-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-io-console · RHEL 8 0:0.5.7-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-io-console · RHEL 9 0:0.5.7-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-io-console · almalinux 8 0.5.7-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-io-console · almalinux 9 0.5.7-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-io-console · ol 8 0:0.5.7-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-io-console · ol 9 0:0.5.7-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-irb · RHEL 8 0:1.3.5-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-irb · RHEL 9 0:1.3.5-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-irb · almalinux 8 1.3.5-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-irb · almalinux 9 1.3.5-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-irb · ol 8 0:1.3.5-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-irb · ol 9 0:1.3.5-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-json · RHEL 8 0:2.5.1-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-json · RHEL 9 0:2.5.1-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-json · almalinux 8 2.5.1-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-json · almalinux 9 2.5.1-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-json · ol 8 0:2.5.1-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-json · ol 9 0:2.5.1-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-minitest · RHEL 8 0:5.14.2-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-minitest · RHEL 9 0:5.14.2-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-minitest · almalinux 8 5.14.2-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-minitest · almalinux 9 5.14.2-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-minitest · ol 8 0:5.14.2-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-minitest · ol 9 0:5.14.2-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-mysql2 · RHEL 8 0:0.5.3-1.module+el8.5.0+11580+845038eb RHSA-2022:6450 Sep 13, 2022
rubygem-mysql2 · almalinux 8 0.5.3-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450 Sep 13, 2022
rubygem-mysql2 · ol 8 0:0.5.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450 Sep 15, 2022
rubygem-mysql2 · rocky 8 0:0.5.3-1.module+el8.5.0+668+665814fa RLSA-2022:6450 Sep 13, 2022
rubygem-mysql2-doc · RHEL 8 0:0.5.3-1.module+el8.5.0+11580+845038eb RHSA-2022:6450 Sep 13, 2022
rubygem-mysql2-doc · almalinux 8 0.5.3-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450 Sep 13, 2022
rubygem-mysql2-doc · ol 8 0:0.5.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450 Sep 15, 2022
rubygem-pg · RHEL 8 0:1.2.3-1.module+el8.5.0+11580+845038eb RHSA-2022:6450 Sep 13, 2022
rubygem-pg · almalinux 8 1.2.3-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450 Sep 13, 2022
rubygem-pg · ol 8 0:1.2.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450 Sep 15, 2022
rubygem-pg · rocky 8 0:1.2.3-1.module+el8.5.0+668+665814fa RLSA-2022:6450 Sep 13, 2022
rubygem-pg-doc · RHEL 8 0:1.2.3-1.module+el8.5.0+11580+845038eb RHSA-2022:6450 Sep 13, 2022
rubygem-pg-doc · almalinux 8 1.2.3-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450 Sep 13, 2022
rubygem-pg-doc · ol 8 0:1.2.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450 Sep 15, 2022
rubygem-power_assert · RHEL 8 0:1.2.0-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-power_assert · RHEL 9 0:1.2.0-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-power_assert · almalinux 8 1.2.0-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-power_assert · almalinux 9 1.2.0-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-power_assert · ol 8 0:1.2.0-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-power_assert · ol 9 0:1.2.0-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-psych · RHEL 8 0:3.3.2-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-psych · RHEL 9 0:3.3.2-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-psych · almalinux 8 3.3.2-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-psych · almalinux 9 3.3.2-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-psych · ol 8 0:3.3.2-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-psych · ol 9 0:3.3.2-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-rake · RHEL 8 0:13.0.3-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-rake · RHEL 9 0:13.0.3-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-rake · almalinux 8 13.0.3-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-rake · almalinux 9 13.0.3-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-rake · ol 8 0:13.0.3-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-rake · ol 9 0:13.0.3-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-rbs · RHEL 8 0:1.4.0-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-rbs · RHEL 9 0:1.4.0-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-rbs · almalinux 8 1.4.0-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-rbs · almalinux 9 1.4.0-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-rbs · ol 8 0:1.4.0-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-rbs · ol 9 0:1.4.0-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-rdoc · RHEL 8 0:6.3.3-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-rdoc · RHEL 9 0:6.3.3-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-rdoc · almalinux 8 6.3.3-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-rdoc · almalinux 9 6.3.3-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-rdoc · ol 8 0:6.3.3-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-rdoc · ol 9 0:6.3.3-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-rexml · RHEL 8 0:3.2.5-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-rexml · RHEL 9 0:3.2.5-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-rexml · almalinux 8 3.2.5-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-rexml · almalinux 9 3.2.5-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-rexml · ol 8 0:3.2.5-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-rexml · ol 9 0:3.2.5-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-rss · RHEL 8 0:0.2.9-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-rss · RHEL 9 0:0.2.9-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-rss · almalinux 8 0.2.9-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-rss · almalinux 9 0.2.9-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-rss · ol 8 0:0.2.9-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-rss · ol 9 0:0.2.9-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-test-unit · RHEL 8 0:3.3.7-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-test-unit · RHEL 9 0:3.3.7-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-test-unit · almalinux 8 3.3.7-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-test-unit · almalinux 9 3.3.7-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-test-unit · ol 8 0:3.3.7-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-test-unit · ol 9 0:3.3.7-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygem-typeprof · RHEL 8 0:0.15.2-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygem-typeprof · RHEL 9 0:0.15.2-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygem-typeprof · almalinux 8 0.15.2-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygem-typeprof · almalinux 9 0.15.2-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygem-typeprof · ol 8 0:0.15.2-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygem-typeprof · ol 9 0:0.15.2-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygems · RHEL 8 0:3.2.33-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygems · RHEL 9 0:3.2.33-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygems · almalinux 8 3.2.33-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygems · almalinux 9 3.2.33-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygems · ol 8 0:3.2.33-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygems · ol 9 0:3.2.33-160.el9_0 ELSA-2022-6585 Sep 21, 2022
rubygems-devel · RHEL 8 0:3.2.33-141.module+el8.6.0+16311+3e5e17e9 RHSA-2022:6450 Sep 13, 2022
rubygems-devel · RHEL 9 0:3.2.33-160.el9_0 RHSA-2022:6585 Sep 20, 2022
rubygems-devel · almalinux 8 3.2.33-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450 Sep 13, 2022
rubygems-devel · almalinux 9 3.2.33-160.el9_0 ALSA-2022:6585 Sep 20, 2022
rubygems-devel · ol 8 0:3.2.33-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450 Sep 15, 2022
rubygems-devel · ol 9 0:3.2.33-160.el9_0 ELSA-2022-6585 Sep 21, 2022

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.