From 43519ab1b08aebc62a94471b441a6e104e551af1 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Thu, 4 Jan 2024 21:55:25 +0000 Subject: [PATCH] Publish Advisories GHSA-8fx9-5hx8-crhm GHSA-wf2x-8w6j-qw37 --- .../GHSA-8fx9-5hx8-crhm.json | 28 +++++--- .../GHSA-wf2x-8w6j-qw37.json | 69 +++++++++++++++++++ 2 files changed, 87 insertions(+), 10 deletions(-) create mode 100644 advisories/github-reviewed/2024/01/GHSA-wf2x-8w6j-qw37/GHSA-wf2x-8w6j-qw37.json diff --git a/advisories/github-reviewed/2018/10/GHSA-8fx9-5hx8-crhm/GHSA-8fx9-5hx8-crhm.json b/advisories/github-reviewed/2018/10/GHSA-8fx9-5hx8-crhm/GHSA-8fx9-5hx8-crhm.json index 294e186ce11..3129b883c06 100644 --- a/advisories/github-reviewed/2018/10/GHSA-8fx9-5hx8-crhm/GHSA-8fx9-5hx8-crhm.json +++ b/advisories/github-reviewed/2018/10/GHSA-8fx9-5hx8-crhm/GHSA-8fx9-5hx8-crhm.json @@ -1,13 +1,13 @@ { "schema_version": "1.4.0", "id": "GHSA-8fx9-5hx8-crhm", - "modified": "2022-04-26T18:59:36Z", + "modified": "2024-01-04T21:54:05Z", "published": "2018-10-16T19:35:40Z", "aliases": [ "CVE-2017-12611" ], "summary": "Apache Struts 2.0.1 uses an unintentional expression in a Freemarker tag instead of string literal", - "details": "In Apache Struts 2.0.1 through 2.3.33 and 2.5 through 2.5.10, using an unintentional expression in a Freemarker tag instead of string literals can lead to a RCE attack.", + "details": "In Apache Struts 2.0.1 through 2.3.33 and 2.5 through 2.5.10.1, using an unintentional expression in a Freemarker tag instead of string literals can lead to a RCE attack.", "severity": [ { "type": "CVSS_V3", @@ -50,13 +50,13 @@ "introduced": "2.5.0" }, { - "fixed": "2.5.12" + "fixed": "2.5.11" } ] } ], "database_specific": { - "last_known_affected_version_range": "<= 2.5.10" + "last_known_affected_version_range": "<= 2.5.10.1" } } ], @@ -66,8 +66,16 @@ "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-12611" }, { - "type": "ADVISORY", - "url": "https://github.com/advisories/GHSA-8fx9-5hx8-crhm" + "type": "WEB", + "url": "https://github.com/apache/struts/commit/2306f5f7fad7f0157f216f34331238feb0539fa" + }, + { + "type": "WEB", + "url": "https://github.com/apache/struts/commit/637ad1c3707266c33daabb18d7754e795e6681f" + }, + { + "type": "PACKAGE", + "url": "https://github.com/apache/struts" }, { "type": "WEB", @@ -77,6 +85,10 @@ "type": "WEB", "url": "https://struts.apache.org/docs/s2-053.html" }, + { + "type": "WEB", + "url": "https://web.archive.org/web/20170923161654/http://www.securityfocus.com/bid/100829" + }, { "type": "WEB", "url": "http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2017-003.txt" @@ -84,10 +96,6 @@ { "type": "WEB", "url": "http://www.oracle.com/technetwork/security-advisory/alert-cve-2017-9805-3889403.html" - }, - { - "type": "WEB", - "url": "http://www.securityfocus.com/bid/100829" } ], "database_specific": { diff --git a/advisories/github-reviewed/2024/01/GHSA-wf2x-8w6j-qw37/GHSA-wf2x-8w6j-qw37.json b/advisories/github-reviewed/2024/01/GHSA-wf2x-8w6j-qw37/GHSA-wf2x-8w6j-qw37.json new file mode 100644 index 00000000000..aa81ea0ee4a --- /dev/null +++ b/advisories/github-reviewed/2024/01/GHSA-wf2x-8w6j-qw37/GHSA-wf2x-8w6j-qw37.json @@ -0,0 +1,69 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-wf2x-8w6j-qw37", + "modified": "2024-01-04T21:54:34Z", + "published": "2024-01-04T21:54:34Z", + "aliases": [ + "CVE-2024-21636" + ], + "summary": "view_component Cross-site Scripting vulnerability", + "details": "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nThis is an XSS vulnerability that has the potential to impact anyone rendering a component directly from a controller with the view_component gem. Note that only components that define a [`#call` method](https://viewcomponent.org/guide/templates.html#call) (i.e. instead of using a sidecar template) are affected. The return value of the `#call` method is not sanitized and can include user-defined content.\n\nIn addition, the return value of the [`#output_postamble` method](https://viewcomponent.org/api.html#output_postamble--string) is not sanitized, which can also lead to XSS issues.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nVersions 3.9.0 has been released and fully mitigates both the `#call` and the `#output_postamble` vulnerabilities.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nSanitize the return value of `#call`, eg:\n\n```ruby\nclass MyComponent < ApplicationComponent\n def call\n html_escape(\"