ghsa-qp49-3pvw-x4m5
Vulnerability from github
Published
2022-05-03 00:00
Modified
2022-05-10 14:09
Summary
sinatra does not validate expanded path matches
Details

Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "RubyGems",
        "name": "sinatra"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.2.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2022-29970"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22",
      "CWE-426"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2022-05-03T20:59:50Z",
    "nvd_published_at": "2022-05-02T05:15:00Z",
    "severity": "HIGH"
  },
  "details": "Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.",
  "id": "GHSA-qp49-3pvw-x4m5",
  "modified": "2022-05-10T14:09:41Z",
  "published": "2022-05-03T00:00:43Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-29970"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sinatra/sinatra/pull/1683"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e"
    },
    {
      "type": "WEB",
      "url": "https://github.com/skylightio/skylight-ruby/pull/294"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-29970.yml"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sinatra/sinatra"
    },
    {
      "type": "WEB",
      "url": "https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "sinatra does not validate expanded path matches"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

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.