GSD-2022-29970

Vulnerability from gsd - Updated: 2022-05-03 00:00
Details
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Aliases

{
  "GSD": {
    "alias": "CVE-2022-29970",
    "description": "Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.",
    "id": "GSD-2022-29970",
    "references": [
      "https://linux.oracle.com/cve/CVE-2022-29970.html",
      "https://access.redhat.com/errata/RHSA-2022:2253",
      "https://access.redhat.com/errata/RHSA-2022:2255",
      "https://access.redhat.com/errata/RHSA-2022:2256",
      "https://access.redhat.com/errata/RHSA-2022:4587",
      "https://access.redhat.com/errata/RHSA-2022:4661",
      "https://www.suse.com/security/cve/CVE-2022-29970.html",
      "https://advisories.mageia.org/CVE-2022-29970.html",
      "https://access.redhat.com/errata/RHSA-2022:8506"
    ]
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "sinatra",
            "purl": "pkg:gem/sinatra"
          }
        }
      ],
      "aliases": [
        "CVE-2022-29970",
        "GHSA-qp49-3pvw-x4m5"
      ],
      "details": "Sinatra before 2.2.0 does not validate that the expanded path matches\npublic_dir when serving static files.\n",
      "id": "GSD-2022-29970",
      "modified": "2022-05-03T00:00:00.000Z",
      "published": "2022-05-03T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/sinatra/sinatra/pull/1683"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 5.0,
          "type": "CVSS_V2"
        },
        {
          "score": 7.5,
          "type": "CVSS_V3"
        }
      ],
      "summary": "sinatra does not validate expanded path matches"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2022-29970",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "n/a",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "n/a"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "n/a"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e",
            "refsource": "MISC",
            "url": "https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e"
          },
          {
            "name": "[debian-lts-announce] 20221028 [SECURITY] [DLA 3166-1] ruby-sinatra security update",
            "refsource": "MLIST",
            "url": "https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2022-29970",
      "cvss_v2": 5.0,
      "cvss_v3": 7.5,
      "date": "2022-05-03",
      "description": "Sinatra before 2.2.0 does not validate that the expanded path matches\npublic_dir when serving static files.\n",
      "gem": "sinatra",
      "ghsa": "qp49-3pvw-x4m5",
      "patched_versions": [
        "\u003e= 2.2.0"
      ],
      "title": "sinatra does not validate expanded path matches",
      "url": "https://github.com/sinatra/sinatra/pull/1683"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c2.2.0",
          "affected_versions": "All versions before 2.2.0",
          "cvss_v2": "AV:N/AC:L/Au:N/C:P/I:N/A:N",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
          "cwe_ids": [
            "CWE-1035",
            "CWE-22",
            "CWE-937"
          ],
          "date": "2022-11-16",
          "description": "Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.",
          "fixed_versions": [
            "2.2.0"
          ],
          "identifier": "CVE-2022-29970",
          "identifiers": [
            "CVE-2022-29970",
            "GHSA-qp49-3pvw-x4m5"
          ],
          "not_impacted": "All versions starting from 2.2.0",
          "package_slug": "gem/sinatra",
          "pubdate": "2022-05-02",
          "solution": "Upgrade to version 2.2.0 or above.",
          "title": "sinatra does not validate expanded path matches",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-29970",
            "https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e",
            "https://github.com/skylightio/skylight-ruby/pull/294",
            "https://github.com/advisories/GHSA-qp49-3pvw-x4m5"
          ],
          "uuid": "44c29136-e66b-454c-b8db-bc7a61b61ef1"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:*",
                "cpe_name": [],
                "versionEndExcluding": "2.2.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": "cve@mitre.org",
          "ID": "CVE-2022-29970"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-22"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e"
            },
            {
              "name": "[debian-lts-announce] 20221028 [SECURITY] [DLA 3166-1] ruby-sinatra security update",
              "refsource": "MLIST",
              "tags": [
                "Mailing List",
                "Third Party Advisory"
              ],
              "url": "https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "LOW",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "NONE",
            "baseScore": 5.0,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "NONE",
            "vectorString": "AV:N/AC:L/Au:N/C:P/I:N/A:N",
            "version": "2.0"
          },
          "exploitabilityScore": 10.0,
          "impactScore": 2.9,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": false
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
            "version": "3.1"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 3.6
        }
      },
      "lastModifiedDate": "2022-11-16T17:12Z",
      "publishedDate": "2022-05-02T05: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…