Bug 1775111 (CVE-2019-18978) - CVE-2019-18978 rubygem-rack-cors: allows ../ directory traversal to access private resources
Summary: CVE-2019-18978 rubygem-rack-cors: allows ../ directory traversal to access pr...
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2019-18978
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1775112 1775114
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-21 12:18 UTC by Dhananjay Arunesh
Modified: 2019-11-21 13:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-21 13:05:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Dhananjay Arunesh 2019-11-21 12:18:39 UTC
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.

Reference:
https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d
https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4

Comment 1 Dhananjay Arunesh 2019-11-21 12:19:04 UTC
Created rubygem-rack-cors tracking bugs for this issue:

Affects: epel-all [bug 1775114]
Affects: fedora-all [bug 1775112]

Comment 2 Product Security DevOps Team 2019-11-21 13:05:00 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.