From aaa192f020bb01e6715bec8c5b817b215a1abab0 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Wed, 2 Mar 2022 22:38:27 +0000 Subject: [PATCH] Add CVE-2022-24722 for GHSA-cm9w-c4rj-r2cf Add CVE-2022-24722 for GHSA-cm9w-c4rj-r2cf --- 2022/24xxx/CVE-2022-24722.json | 95 +++++++++++++++++++++++++++++++--- 1 file changed, 89 insertions(+), 6 deletions(-) diff --git a/2022/24xxx/CVE-2022-24722.json b/2022/24xxx/CVE-2022-24722.json index dbe83b05c1a..a895cb85f08 100644 --- a/2022/24xxx/CVE-2022-24722.json +++ b/2022/24xxx/CVE-2022-24722.json @@ -1,18 +1,101 @@ { - "data_type": "CVE", - "data_format": "MITRE", - "data_version": "4.0", "CVE_data_meta": { + "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2022-24722", - "ASSIGNER": "cve@mitre.org", - "STATE": "RESERVED" + "STATE": "PUBLIC", + "TITLE": "Cross-site Scripting in view_component" }, + "affects": { + "vendor": { + "vendor_data": [ + { + "product": { + "product_data": [ + { + "product_name": "view_component", + "version": { + "version_data": [ + { + "version_value": ">= 2.31.0, < 2.31.2" + }, + { + "version_value": ">= 2.32.0, < 2.49.1" + } + ] + } + } + ] + }, + "vendor_name": "github" + } + ] + } + }, + "data_format": "MITRE", + "data_type": "CVE", + "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", - "value": "** 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." + "value": "VIewComponent is a framework for building view components in Ruby on Rails. Versions prior to 2.31.2 and 2.49.1 contain a cross-site scripting vulnerability that has the potential to impact anyone using translations with the view_component gem. Data received via user input and passed as an interpolation argument to the `translate` method is not properly sanitized before display. Versions 2.31.2 and 2.49.1 have been released and fully mitigate the vulnerability. As a workaround, avoid passing user input to the `translate` function, or sanitize the inputs before passing them." } ] + }, + "impact": { + "cvss": { + "attackComplexity": "LOW", + "attackVector": "NETWORK", + "availabilityImpact": "NONE", + "baseScore": 8.1, + "baseSeverity": "HIGH", + "confidentialityImpact": "HIGH", + "integrityImpact": "HIGH", + "privilegesRequired": "NONE", + "scope": "UNCHANGED", + "userInteraction": "REQUIRED", + "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N", + "version": "3.1" + } + }, + "problemtype": { + "problemtype_data": [ + { + "description": [ + { + "lang": "eng", + "value": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')" + } + ] + } + ] + }, + "references": { + "reference_data": [ + { + "name": "https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf", + "refsource": "CONFIRM", + "url": "https://github.com/github/view_component/security/advisories/GHSA-cm9w-c4rj-r2cf" + }, + { + "name": "https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9", + "refsource": "MISC", + "url": "https://github.com/github/view_component/commit/3f82a6e62578ff6f361aba24a1feb2caccf83ff9" + }, + { + "name": "https://github.com/github/view_component/releases/tag/v2.31.2", + "refsource": "MISC", + "url": "https://github.com/github/view_component/releases/tag/v2.31.2" + }, + { + "name": "https://github.com/github/view_component/releases/tag/v2.49.1", + "refsource": "MISC", + "url": "https://github.com/github/view_component/releases/tag/v2.49.1" + } + ] + }, + "source": { + "advisory": "GHSA-cm9w-c4rj-r2cf", + "discovery": "UNKNOWN" } } \ No newline at end of file