Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXBmOGYtdzI2Ny1tcTJo

The rack-cors rubygem may allow directory traveral

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.

Permalink: https://github.com/advisories/GHSA-pf8f-w267-mq2h
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXBmOGYtdzI2Ny1tcTJo
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 4 years ago
Updated: about 1 year ago


CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Identifiers: GHSA-pf8f-w267-mq2h, CVE-2019-18978
References: Repository: https://github.com/cyu/rack-cors
Blast Radius: 24.7

Affected Packages

rubygems:rack-cors
Dependent packages: 80
Dependent repositories: 44,919
Downloads: 163,375,146 total
Affected Version Ranges: < 1.0.4
Fixed in: 1.0.4
All affected versions: 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.0.0, 1.0.1, 1.0.2, 1.0.3
All unaffected versions: 1.0.5, 1.0.6, 1.1.0, 1.1.1, 2.0.0, 2.0.1, 2.0.2