GHSA-qp49-3pvw-x4m5

Suggest an improvement
Source
https://github.com/advisories/GHSA-qp49-3pvw-x4m5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-qp49-3pvw-x4m5/GHSA-qp49-3pvw-x4m5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qp49-3pvw-x4m5
Aliases
Published
2022-05-03T00:00:43Z
Modified
2024-02-16T08:21:09.901986Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-05-02T05:15:00Z",
    "cwe_ids": [
        "CWE-22",
        "CWE-426"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-05-03T20:59:50Z"
}
References

Affected packages

RubyGems / sinatra

Package

Name
sinatra
Purl
pkg:gem/sinatra

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.0

Affected versions

0.*

0.1.0
0.1.5
0.1.6
0.1.7
0.2.0
0.2.1
0.2.2
0.3.0
0.3.1
0.3.2
0.3.3
0.9.0
0.9.0.1
0.9.0.2
0.9.0.3
0.9.0.4
0.9.0.5
0.9.1
0.9.1.1
0.9.2
0.9.4
0.9.5
0.9.6

1.*

1.0.a
1.0.b
1.0
1.1.a
1.1.b
1.1.0
1.1.2
1.1.3
1.1.4
1.2.0.a
1.2.0.c
1.2.0.d
1.2.0
1.2.1
1.2.2
1.2.3
1.2.6
1.2.7
1.2.8
1.2.9
1.3.0.a
1.3.0.b
1.3.0.c
1.3.0.d
1.3.0.e
1.3.0.f
1.3.0.g
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.3.6
1.4.0.a
1.4.0.b
1.4.0.c
1.4.0.d
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7
1.4.8

2.*

2.0.0.beta1
2.0.0.beta2
2.0.0.rc1
2.0.0.rc2
2.0.0.rc5
2.0.0.rc6
2.0.0
2.0.1.rc1
2.0.1
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.0.8
2.0.8.1
2.1.0