Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-28738

published

Ruby: Double free in Regexp compilation

Title from Red Hat VEX

Published
09 May 2022, 00:00:00 UTC
Updated
03 Aug 2024, 06:03:52 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
n/a — n/an/a Affected Not stated mitre
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2RUBY3.0-2023-002 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 ruby Advisory build 3.0.4-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
Alpine Linux edge ruby Fixed 3.1.2-r0 Package fix record
Oracle Linux 8 rubyaarch64 · ruby · 3.0b Advisory build 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
AlmaLinux 8 ruby-default-gems Advisory build 3.0.4-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 ruby-devel Advisory build 3.0.4-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
Show 95 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 ruby-doc Advisory build 3.0.4-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 ruby-libs Advisory build 3.0.4-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-abrt Advisory build 0.4.0-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450
AlmaLinux 8 rubygem-abrt-doc Advisory build 0.4.0-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450
AlmaLinux 8 rubygem-bigdecimal Advisory build 3.0.0-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-bundler Advisory build 2.2.33-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-io-console Advisory build 0.5.7-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-irb Advisory build 1.3.5-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-json Advisory build 2.5.1-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-minitest Advisory build 5.14.2-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-mysql2 Advisory build 0.5.3-1.module_el8.5.0+118+1ab773e1 ALSA-2022:6450
AlmaLinux 8 rubygem-mysql2 Advisory build 0.5.3-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450
AlmaLinux 8 rubygem-mysql2 Advisory build 0.5.3-1.module_el8.6.0+3144+d138acf1 ALSA-2022:6450
AlmaLinux 8 rubygem-mysql2-doc Advisory build 0.5.3-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450
AlmaLinux 8 rubygem-pg Advisory build 1.2.3-1.module_el8.5.0+118+1ab773e1 ALSA-2022:6450
AlmaLinux 8 rubygem-pg Advisory build 1.2.3-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450
AlmaLinux 8 rubygem-pg Advisory build 1.2.3-1.module_el8.6.0+3144+d138acf1 ALSA-2022:6450
AlmaLinux 8 rubygem-pg-doc Advisory build 1.2.3-1.module_el8.5.0+2595+0c654ebc ALSA-2022:6450
AlmaLinux 8 rubygem-power_assert Advisory build 1.2.0-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-psych Advisory build 3.3.2-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-rake Advisory build 13.0.3-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-rbs Advisory build 1.4.0-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-rdoc Advisory build 6.3.3-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-rexml Advisory build 3.2.5-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-rss Advisory build 0.2.9-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-test-unit Advisory build 3.3.7-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygem-typeprof Advisory build 0.15.2-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygems Advisory build 3.2.33-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 8 rubygems-devel Advisory build 3.2.33-141.module_el8.6.0+3263+41cde0c0 ALSA-2022:6450
AlmaLinux 9 ruby Advisory build 3.0.4-160.el9_0 ALSA-2022:6585
AlmaLinux 9 ruby-default-gems Advisory build 3.0.4-160.el9_0 ALSA-2022:6585
AlmaLinux 9 ruby-devel Advisory build 3.0.4-160.el9_0 ALSA-2022:6585
AlmaLinux 9 ruby-doc Advisory build 3.0.4-160.el9_0 ALSA-2022:6585
AlmaLinux 9 ruby-libs Advisory build 3.0.4-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-bigdecimal Advisory build 3.0.0-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-bundler Advisory build 2.2.33-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-io-console Advisory build 0.5.7-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-irb Advisory build 1.3.5-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-json Advisory build 2.5.1-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-minitest Advisory build 5.14.2-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-power_assert Advisory build 1.2.0-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-psych Advisory build 3.3.2-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-rake Advisory build 13.0.3-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-rbs Advisory build 1.4.0-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-rdoc Advisory build 6.3.3-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-rexml Advisory build 3.2.5-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-rss Advisory build 0.2.9-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-test-unit Advisory build 3.3.7-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygem-typeprof Advisory build 0.15.2-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygems Advisory build 3.2.33-160.el9_0 ALSA-2022:6585
AlmaLinux 9 rubygems-devel Advisory build 3.2.33-160.el9_0 ALSA-2022:6585
Alpine Linux v3.15 ruby Fixed 3.0.4-r0 Package fix record
Alpine Linux v3.16 ruby Fixed 3.1.2-r0 Package fix record
Alpine Linux v3.17 ruby Fixed 3.1.2-r0 Package fix record
Alpine Linux v3.18 ruby Fixed 3.1.2-r0 Package fix record
Alpine Linux v3.19 ruby Fixed 3.1.2-r0 Package fix record
Alpine Linux v3.20 ruby Fixed 3.1.2-r0 Package fix record
Alpine Linux v3.21 ruby Fixed 3.1.2-r0 Package fix record
Alpine Linux v3.22 ruby Fixed 3.1.2-r0 Package fix record
Alpine Linux v3.23 ruby Fixed 3.1.2-r0 Package fix record
Alpine Linux v3.24 ruby Fixed 3.1.2-r0 Package fix record
Oracle Linux 8 rubyx86_64 · ruby · 3.0b Advisory build 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 ruby-default-gemsaarch64 · ruby · 3.0b Advisory build 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 ruby-default-gemsx86_64 · ruby · 3.0b Advisory build 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 ruby-develaarch64 · ruby · 3.0b Advisory build 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 ruby-develx86_64 · ruby · 3.0b Advisory build 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 ruby-docaarch64 · ruby · 3.0b Advisory build 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 ruby-docx86_64 · ruby · 3.0b Advisory build 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 ruby-libsaarch64 · ruby · 3.0b Advisory build 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 ruby-libsx86_64 · ruby · 3.0b Advisory build 0:3.0.4-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-abrtaarch64 · ruby · 3.0b Advisory build 0:0.4.0-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-abrtx86_64 · ruby · 3.0b Advisory build 0:0.4.0-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-abrt-docaarch64 · ruby · 3.0b Advisory build 0:0.4.0-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-abrt-docx86_64 · ruby · 3.0b Advisory build 0:0.4.0-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-bigdecimalaarch64 · ruby · 3.0b Advisory build 0:3.0.0-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-bigdecimalx86_64 · ruby · 3.0b Advisory build 0:3.0.0-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-bundleraarch64 · ruby · 3.0b Advisory build 0:2.2.33-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-bundlerx86_64 · ruby · 3.0b Advisory build 0:2.2.33-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-io-consoleaarch64 · ruby · 3.0b Advisory build 0:0.5.7-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-io-consolex86_64 · ruby · 3.0b Advisory build 0:0.5.7-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-irbaarch64 · ruby · 3.0b Advisory build 0:1.3.5-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-irbx86_64 · ruby · 3.0b Advisory build 0:1.3.5-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-jsonaarch64 · ruby · 3.0b Advisory build 0:2.5.1-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-jsonx86_64 · ruby · 3.0b Advisory build 0:2.5.1-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-minitestaarch64 · ruby · 3.0b Advisory build 0:5.14.2-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-minitestx86_64 · ruby · 3.0b Advisory build 0:5.14.2-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450
Oracle Linux 8 rubygem-mysql2aarch64 · ruby · 3.0b Advisory build 0:0.5.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-mysql2x86_64 · ruby · 3.0b Advisory build 0:0.5.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-mysql2-docaarch64 · ruby · 3.0b Advisory build 0:0.5.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-mysql2-docx86_64 · ruby · 3.0b Advisory build 0:0.5.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-pgaarch64 · ruby · 3.0b Advisory build 0:1.2.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-pgx86_64 · ruby · 3.0b Advisory build 0:1.2.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-pg-docaarch64 · ruby · 3.0b Advisory build 0:1.2.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-pg-docx86_64 · ruby · 3.0b Advisory build 0:1.2.3-1.module+el8.5.0+20321+0ba6c954 ELSA-2022-6450
Oracle Linux 8 rubygem-power_assertaarch64 · ruby · 3.0b Advisory build 0:1.2.0-141.module+el8.6.0+20741+4fdba061 ELSA-2022-6450

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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.

en · mitre · cna

Vendor advisories explicitly linked to this CVE.

27

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a n/a n/a (affected) mitre · cna

Weaknesses

1
  • n/a (mitre · cna)

References

5

Provider assertions

2

mitre · cna

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
fc0ace1dabed376bd617f5c5d3b445f24352ca30ccd1275de74025fe6808fc01
Ingested
23 Sep 2026, 07:59:37 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected