VDB

CVE-2022-28738

CVE-2022-28738 PUBLISHED

Reported by mitre · Published May 9, 2022

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ruby-minBitnami3.1.2, 3.0.4
rubyAlpine3.1.2-r0, 3.0.4-r0
rubyArch Linux3.0.4-1
rubyBitnami3.1.2, 3.0.4
rubyruby-lang3.1.2, 3.0.4
ruby-minBitnami3.1.2, 3.0.4
rubyBitnami3.1.2, 3.0.4

Affected products

VendorProductVersions
n/an/an/a
alpineruby0, 0
archruby0
n/an/a*

Timeline

  • May 9, 2022 CVE Published
  • May 10, 2022 EPSS Score (30 in total, the first dated here)
  • May 28, 2022 PoC Published
  • Mar 10, 2026 Security Advisory (16 in total, the first dated here)
  • Jun 27, 2026 Coalition ESS Score
  • Oct 12, 2026 Distribution Patch (12 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-28738
vulnetix vdb fixes CVE-2022-28738

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-28738/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›