{"api_version":"1","generated_at":"2026-04-22T21:27:08+00:00","cve":"CVE-2022-28738","urls":{"html":"https://cve.report/CVE-2022-28738","api":"https://cve.report/api/cve/CVE-2022-28738.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-28738","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-28738"},"summary":{"title":"CVE-2022-28738","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2022-05-09 18:15:00","updated_at":"2024-01-24 05:15:00"},"problem_types":["CWE-415"],"metrics":[],"references":[{"url":"https://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/","name":"https://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/","refsource":"CONFIRM","tags":[],"title":"CVE-2022-28738: Double free in Regexp compilation","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-28738","name":"https://security-tracker.debian.org/tracker/CVE-2022-28738","refsource":"MISC","tags":[],"title":"CVE-2022-28738","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202401-27","name":"GLSA-202401-27","refsource":"","tags":[],"title":"Ruby: Multiple vulnerabilities (GLSA 202401-27) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20220624-0002/","name":"https://security.netapp.com/advisory/ntap-20220624-0002/","refsource":"CONFIRM","tags":[],"title":"May 2022 Ruby Vulnerabilities in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://hackerone.com/reports/1220911","name":"https://hackerone.com/reports/1220911","refsource":"MISC","tags":[],"title":"HackerOne","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-28738","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-28738","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"28738","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ruby-lang","cpe5":"ruby","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-28738","qid":"160095","title":"Oracle Enterprise Linux Security Update for ruby:3.0 (ELSA-2022-6450)"},{"cve":"CVE-2022-28738","qid":"160103","title":"Oracle Enterprise Linux Security Update for ruby (ELSA-2022-6585)"},{"cve":"CVE-2022-28738","qid":"198817","title":"Ubuntu Security Notification for Ruby Vulnerabilities (USN-5462-1)"},{"cve":"CVE-2022-28738","qid":"240659","title":"Red Hat Update for ruby:3.0 security (RHSA-2022:6450)"},{"cve":"CVE-2022-28738","qid":"240681","title":"Red Hat Update for ruby security (RHSA-2022:6585)"},{"cve":"CVE-2022-28738","qid":"240723","title":"Red Hat Update for rh-ruby30-ruby security (RHSA-2022:6855)"},{"cve":"CVE-2022-28738","qid":"282660","title":"Fedora Security Update for ruby (FEDORA-2022-82a9edac27)"},{"cve":"CVE-2022-28738","qid":"282661","title":"Fedora Security Update for ruby (FEDORA-2022-8cf0124add)"},{"cve":"CVE-2022-28738","qid":"356174","title":"Amazon Linux Security Advisory for ruby : ALASRUBY3.0-2023-002"},{"cve":"CVE-2022-28738","qid":"356495","title":"Amazon Linux Security Advisory for ruby : ALAS2RUBY3.0-2023-002"},{"cve":"CVE-2022-28738","qid":"502025","title":"Alpine Linux Security Update for ruby"},{"cve":"CVE-2022-28738","qid":"502236","title":"Alpine Linux Security Update for ruby"},{"cve":"CVE-2022-28738","qid":"504378","title":"Alpine Linux Security Update for ruby"},{"cve":"CVE-2022-28738","qid":"690840","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for ruby (f22144d7-bad1-11ec-9cfe-0800270512f4)"},{"cve":"CVE-2022-28738","qid":"710844","title":"Gentoo Linux Ruby Multiple Vulnerabilities (GLSA 202401-27)"},{"cve":"CVE-2022-28738","qid":"940691","title":"AlmaLinux Security Update for ruby (ALSA-2022:6585)"},{"cve":"CVE-2022-28738","qid":"940849","title":"AlmaLinux Security Update for ruby:3.0 (ALSA-2022:6450)"},{"cve":"CVE-2022-28738","qid":"960234","title":"Rocky Linux Security Update for ruby:3.0 (RLSA-2022:6450)"},{"cve":"CVE-2022-28738","qid":"960532","title":"Rocky Linux Security Update for ruby (RLSA-2022:6585)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2022-28738","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://hackerone.com/reports/1220911","refsource":"MISC","name":"https://hackerone.com/reports/1220911"},{"refsource":"CONFIRM","name":"https://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/","url":"https://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/"},{"refsource":"MISC","name":"https://security-tracker.debian.org/tracker/CVE-2022-28738","url":"https://security-tracker.debian.org/tracker/CVE-2022-28738"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20220624-0002/","url":"https://security.netapp.com/advisory/ntap-20220624-0002/"}]}},"nvd":{"publishedDate":"2022-05-09 18:15:00","lastModifiedDate":"2024-01-24 05:15:00","problem_types":["CWE-415"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1.0","versionEndExcluding":"3.1.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.0.4","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}