gsd-2022-29970
Vulnerability from gsd
Modified
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
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"
}
}
}
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.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- 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.
Loading…
Loading…