GHSA-pf8f-w267-mq2h

Suggest an improvement
Source
https://github.com/advisories/GHSA-pf8f-w267-mq2h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/11/GHSA-pf8f-w267-mq2h/GHSA-pf8f-w267-mq2h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pf8f-w267-mq2h
Aliases
Published
2019-11-15T20:26:59Z
Modified
2024-02-16T08:21:36.004949Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
The rack-cors rubygem may allow directory traveral
Details

An issue was discovered in the rack-cors (aka Rack CORS Middleware) gem before 1.0.4 for Ruby. It allows ../ directory traversal to access private resources because resource matching does not ensure that pathnames are in a canonical format.

Database specific
{
    "nvd_published_at": "2019-11-14T21:15:00Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2019-11-15T20:26:35Z"
}
References

Affected packages

RubyGems / rack-cors

Package

Name
rack-cors
Purl
pkg:gem/rack-cors

Affected ranges

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

Affected versions

0.*

0.1.0
0.1.1
0.2.0
0.2.2
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9
0.3.0
0.3.1
0.4.0
0.4.1

1.*

1.0.0
1.0.1
1.0.2
1.0.3