{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-21831","id":"CVE-2022-21831","title":"Possible code injection vulnerability in Rails / Active Storage","description":"A code injection vulnerability exists in the Active Storage >= v5.2.0 that could allow an attacker to execute code via image_processing arguments.","descriptionLong":"A code injection vulnerability exists in the Active Storage >= v5.2.0 that could allow an attacker to execute code via image_processing arguments.","published":"2022-05-26T00:00:00.000Z","updated":"2026-06-17T04:27:03.960Z","reserved":"2021-12-10T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"hackerone","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"critical","products":["https://github.com/rails/rails"],"affectedProducts":[{"vendor":"n/a","product":"https://github.com/rails/rails","defaultStatus":null,"versions":[{"version":"7.0.2.3, 6.1.4.7, 6.0.4.7, 5.2.6.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"activestorage","purl":"pkg:gem/activestorage","ranges":[">=5.2.0 <5.2.6.3",">=6.0.0 <6.0.4.7",">=6.1.0 <6.1.4.7",">=7.0.0 <7.0.2.3"],"fixed":["5.2.6.3","6.0.4.7","6.1.4.7","7.0.2.3"],"advisory":"GHSA-w749-p3v6-hccq"}],"cwes":["CWE-94"],"aliases":["GHSA-w749-p3v6-hccq"],"references":[{"url":"https://github.com/advisories/GHSA-w749-p3v6-hccq","tags":["x_transferred","Patch","Third Party Advisory","fix","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20221118-0001/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.debian.org/security/2023/dsa-5372","tags":["vendor-advisory","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21831","tags":["advisory"]},{"url":"https://github.com/rails/rails/commit/0a72f7d670e9aa77a0bb8584cb1411ddabb7546e","tags":["web"]},{"url":"https://github.com/rails/rails","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2022-21831.yml","tags":["web"]},{"url":"https://groups.google.com/g/rubyonrails-security/c/n-p-W1yxatI","tags":["web"]},{"url":"https://rubysec.com/advisories/CVE-2022-21831","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20221118-0001","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03098,"epssPercentile":0.88021,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-21831","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21831","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-21831","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w749-p3v6-hccq","ok":true,"note":"GHSA-w749-p3v6-hccq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-21831","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["ruby"],"critical":["CVSS 9.8 in a widely used technology"],"attention":null}