{"api_version":"1","generated_at":"2026-04-22T23:31:42+00:00","cve":"CVE-2022-21831","urls":{"html":"https://cve.report/CVE-2022-21831","api":"https://cve.report/api/cve/CVE-2022-21831.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21831","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21831"},"summary":{"title":"CVE-2022-21831","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.","state":"PUBLIC","assigner":"support@hackerone.com","published_at":"2022-05-26 17:15:00","updated_at":"2023-03-14 08:15:00"},"problem_types":["CWE-94"],"metrics":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html","name":"[debian-lts-announce] 20220903 [SECURITY] [DLA 3093-1] rails security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3093-1] rails security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/advisories/GHSA-w749-p3v6-hccq","name":"https://github.com/advisories/GHSA-w749-p3v6-hccq","refsource":"MISC","tags":[],"title":"Possible code injection vulnerability in Rails / Active Storage · CVE-2022-21831 · GitHub Advisory Database · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2023/dsa-5372","name":"DSA-5372","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5372-1 rails","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.netapp.com/advisory/ntap-20221118-0001/","name":"https://security.netapp.com/advisory/ntap-20221118-0001/","refsource":"CONFIRM","tags":[],"title":"CVE-2022-21831 Ruby Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21831","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21831","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"21831","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21831","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rubyonrails","cpe5":"active_storage","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-21831","qid":"180989","title":"Debian Security Update for rails (DLA 3093-1)"},{"cve":"CVE-2022-21831","qid":"181676","title":"Debian Security Update for rails (DSA 5372-1)"},{"cve":"CVE-2022-21831","qid":"182959","title":"Debian Security Update for rails (CVE-2022-21831)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2022-21831","ASSIGNER":"support@hackerone.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"https://github.com/rails/rails","version":{"version_data":[{"version_value":"7.0.2.3, 6.1.4.7, 6.0.4.7, 5.2.6.3"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Code Injection (CWE-94)"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://github.com/advisories/GHSA-w749-p3v6-hccq","url":"https://github.com/advisories/GHSA-w749-p3v6-hccq"},{"refsource":"MLIST","name":"[debian-lts-announce] 20220903 [SECURITY] [DLA 3093-1] rails security update","url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20221118-0001/","url":"https://security.netapp.com/advisory/ntap-20221118-0001/"},{"refsource":"DEBIAN","name":"DSA-5372","url":"https://www.debian.org/security/2023/dsa-5372"}]},"description":{"description_data":[{"lang":"eng","value":"A code injection vulnerability exists in the Active Storage >= v5.2.0 that could allow an attacker to execute code via image_processing arguments."}]}},"nvd":{"publishedDate":"2022-05-26 17:15:00","lastModifiedDate":"2023-03-14 08:15:00","problem_types":["CWE-94"],"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:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"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:rubyonrails:active_storage:*:*:*:*:*:ruby:*:*","versionStartIncluding":"7.0.0","versionEndExcluding":"7.0.2.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:rubyonrails:active_storage:*:*:*:*:*:ruby:*:*","versionStartIncluding":"6.1.0","versionEndExcluding":"6.1.4.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:rubyonrails:active_storage:*:*:*:*:*:ruby:*:*","versionStartIncluding":"6.0.0","versionEndExcluding":"6.0.4.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:rubyonrails:active_storage:*:*:*:*:*:ruby:*:*","versionStartIncluding":"5.2.0","versionEndExcluding":"5.2.6.3","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"21831","Ordinal":"222679","Title":"CVE-2022-21831","CVE":"CVE-2022-21831","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"21831","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}