GSD-2022-45442

Vulnerability from gsd - Updated: 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

{
  "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"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…