{"id":"CVE-2022-28738","aliases":["CVE-2022-28738","BIT-RUBY-2022-28738","BIT-RUBY-MIN-2022-28738"],"related":[],"kind":"vulnerability","state":"published","title":"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.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se ha encontrado una  doble liberación en el compilador de Regexp en Ruby versiones 3.x anteriores a 3.0.4 y versiones 3.1.x anteriores a 3.1.2. Si una víctima intenta crear un Regexp a partir de una entrada de usuario no confiable, un atacante puede ser capaz de escribir en ubicaciones de memoria no esperadas","source":"nvd"}],"published":"2022-05-09T00:00:00.000Z","modified":"2026-09-08T08:48:19.416Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.0.0","fixed":"3.0.4"},{"status":"affected","introduced":"3.1.0","fixed":"3.1.2"}],"vendor":"ruby-lang","product":"ruby","cpe":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.4"},{"type":"semver","introduced":"3.1.0","status":"affected","fixed":"3.1.2"}],"ecosystem":"Bitnami","package":"ruby","purl":"pkg:bitnami/ruby","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.4"},{"type":"semver","introduced":"3.1.0","status":"affected","fixed":"3.1.2"}],"ecosystem":"Bitnami","package":"ruby-min","purl":"pkg:bitnami/ruby-min","source":"bitnami"}],"references":[{"url":"https://hackerone.com/reports/1220911","tags":["advisory","permissions-required","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/","tags":["advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-28738","tags":["advisory","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20220624-0002/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202401-27","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-28738","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-28738","url":"https://www.cve.org/CVERecord?id=CVE-2022-28738","licence":"CVE Terms of Use","modified":"2024-08-03T06:03:52.623Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-28738","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-28738","licence":"Public domain","modified":"2026-06-17T04:38:56.777Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RUBY-2022-28738","url":"https://osv.dev/vulnerability/BIT-RUBY-2022-28738","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.416Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RUBY-MIN-2022-28738","url":"https://osv.dev/vulnerability/BIT-RUBY-MIN-2022-28738","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.278Z"}],"updatedAt":"2026-11-25T22:58:11.518Z","epss":{"score":0.03138,"percentile":0.88244,"date":"2026-12-01T12:00:22.000Z"}}