gsd-2022-45442
Vulnerability from gsd
Modified
2022-11-30 00:00
Details
An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4.
An application is vulnerable to a reflected file download (RFD) attack that
sets the Content-Disposition header of a response when the filename is
derived from user-supplied input.
Aliases
Aliases
{ "GSD": { "alias": "CVE-2022-45442", "description": "Sinatra is a domain-specific language for creating web applications in Ruby. An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input. Version 2.2.3 and 3.0.4 contain patches for this issue.", "id": "GSD-2022-45442", "references": [ "https://www.suse.com/security/cve/CVE-2022-45442.html", "https://advisories.mageia.org/CVE-2022-45442.html", "https://access.redhat.com/errata/RHSA-2023:0393", "https://access.redhat.com/errata/RHSA-2023:0427", "https://access.redhat.com/errata/RHSA-2023:0506", "https://access.redhat.com/errata/RHSA-2023:0527", "https://access.redhat.com/errata/RHSA-2023:0855", "https://access.redhat.com/errata/RHSA-2023:0857", "https://access.redhat.com/errata/RHSA-2023:0974" ] }, "gsd": { "metadata": { "exploitCode": "unknown", "remediation": "unknown", "reportConfidence": "confirmed", "type": "vulnerability" }, "osvSchema": { "affected": [ { "package": { "ecosystem": "RubyGems", "name": "sinatra", "purl": "pkg:gem/sinatra" } } ], "aliases": [ "CVE-2022-45442", "GHSA-2x8x-jmrp-phxw" ], "details": "An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4.\nAn application is vulnerable to a reflected file download (RFD) attack that\nsets the Content-Disposition header of a response when the filename is\nderived from user-supplied input.\n", "id": "GSD-2022-45442", "modified": "2022-11-30T00:00:00.000Z", "published": "2022-11-30T00:00:00.000Z", "references": [ { "type": "WEB", "url": "https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw" }, { "type": "WEB", "url": "https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf" }, { "type": "WEB", "url": "https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b" } ], "related": [ "GHSA-8x94-hmjh-97hq" ], "schema_version": "1.4.0", "severity": [ { "score": 8.8, "type": "CVSS_V3" } ], "summary": "Sinatra vulnerable to Reflected File Download attack" } }, "namespaces": { "cve.org": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2022-45442", "STATE": "PUBLIC", "TITLE": "Sinatra vulnerable to Reflected File Download attack" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "sinatra", "version": { "version_data": [ { "version_value": "\u003e= 3.0, \u003c 3.0.4" }, { "version_value": "\u003e= 2.0, \u003c 2.2.3" } ] } } ] }, "vendor_name": "sinatra" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "Sinatra is a domain-specific language for creating web applications in Ruby. An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input. Version 2.2.3 and 3.0.4 contain patches for this issue." } ] }, "impact": { "cvss": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 8.8, "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:H", "version": "3.1" } }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "CWE-494: Download of Code Without Integrity Check" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw", "refsource": "CONFIRM", "url": "https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw" }, { "name": "https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b", "refsource": "MISC", "url": "https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b" }, { "name": "https://github.com/advisories/GHSA-8x94-hmjh-97hq", "refsource": "MISC", "url": "https://github.com/advisories/GHSA-8x94-hmjh-97hq" }, { "name": "https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf", "refsource": "MISC", "url": "https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf" }, { "name": "[debian-lts-announce] 20230110 [SECURITY] [DLA 3264-1] ruby-sinatra security update", "refsource": "MLIST", "url": "https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html" } ] }, "source": { "advisory": "GHSA-2x8x-jmrp-phxw", "discovery": "UNKNOWN" } }, "github.com/rubysec/ruby-advisory-db": { "cve": "2022-45442", "cvss_v3": 8.8, "date": "2022-11-30", "description": "An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4.\nAn application is vulnerable to a reflected file download (RFD) attack that\nsets the Content-Disposition header of a response when the filename is\nderived from user-supplied input.\n", "gem": "sinatra", "ghsa": "2x8x-jmrp-phxw", "patched_versions": [ "~\u003e 2.2.3", "\u003e= 3.0.4" ], "related": { "ghsa": [ "8x94-hmjh-97hq" ], "url": [ "https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf", "https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b" ] }, "title": "Sinatra vulnerable to Reflected File Download attack", "url": "https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw" }, "gitlab.com": { "advisories": [ { "affected_range": "\u003e=2.0.0 \u003c2.2.3||\u003e=3.0.0 \u003c3.0.4", "affected_versions": "All versions starting from 2.0.0 before 2.2.3, all versions starting from 3.0.0 before 3.0.4", "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "cwe_ids": [ "CWE-1035", "CWE-494", "CWE-937" ], "date": "2023-02-01", "description": "Sinatra is a domain-specific language for creating web applications in Ruby. An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input. Version 2.2.3 and 3.0.4 contain patches for this issue.", "fixed_versions": [ "2.2.3", "3.0.4" ], "identifier": "CVE-2022-45442", "identifiers": [ "CVE-2022-45442", "GHSA-8x94-hmjh-97hq", "GHSA-2x8x-jmrp-phxw" ], "not_impacted": "All versions before 2.0.0, all versions starting from 2.2.3 before 3.0.0, all versions starting from 3.0.4", "package_slug": "gem/sinatra", "pubdate": "2022-11-28", "solution": "Upgrade to versions 2.2.3, 3.0.4 or above.", "title": "Download of Code Without Integrity Check", "urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2022-45442", "https://github.com/advisories/GHSA-8x94-hmjh-97hq", "https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b", "https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw", "https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf" ], "uuid": "2be289fb-782f-4a7d-89f9-86e9cdcd72b9" } ] }, "nvd.nist.gov": { "configurations": { "CVE_data_version": "4.0", "nodes": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndExcluding": "3.0.4", "versionStartIncluding": "3.0.0", "vulnerable": true }, { "cpe23Uri": "cpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:*", "cpe_name": [], "versionEndExcluding": "2.2.3", "versionStartIncluding": "2.0.0", "vulnerable": true } ], "operator": "OR" }, { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true } ], "operator": "OR" } ] }, "cve": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2022-45442" }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "en", "value": "Sinatra is a domain-specific language for creating web applications in Ruby. An issue was discovered in Sinatra 2.0 before 2.2.3 and 3.0 before 3.0.4. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a response when the filename is derived from user-supplied input. Version 2.2.3 and 3.0.4 contain patches for this issue." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "en", "value": "CWE-494" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/advisories/GHSA-8x94-hmjh-97hq", "refsource": "MISC", "tags": [ "Not Applicable" ], "url": "https://github.com/advisories/GHSA-8x94-hmjh-97hq" }, { "name": "https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b", "refsource": "MISC", "tags": [ "Patch", "Third Party Advisory" ], "url": "https://github.com/sinatra/sinatra/commit/ea8fc9495a350f7551b39e3025bfcd06f49f363b" }, { "name": "https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw", "refsource": "CONFIRM", "tags": [ "Third Party Advisory" ], "url": "https://github.com/sinatra/sinatra/security/advisories/GHSA-2x8x-jmrp-phxw" }, { "name": "https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf", "refsource": "MISC", "tags": [ "Exploit", "Third Party Advisory" ], "url": "https://www.blackhat.com/docs/eu-14/materials/eu-14-Hafif-Reflected-File-Download-A-New-Web-Attack-Vector.pdf" }, { "name": "[debian-lts-announce] 20230110 [SECURITY] [DLA 3264-1] ruby-sinatra security update", "refsource": "MLIST", "tags": [ "Mailing List", "Third Party Advisory" ], "url": "https://lists.debian.org/debian-lts-announce/2023/01/msg00005.html" } ] } }, "impact": { "baseMetricV3": { "cvssV3": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 8.8, "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:H", "version": "3.1" }, "exploitabilityScore": 2.8, "impactScore": 5.9 } }, "lastModifiedDate": "2023-02-01T15:47Z", "publishedDate": "2022-11-28T21:15Z" } } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.