CVEvulnerability
CVE-2019-18978
5.3 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2019-11-14
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-22
Description
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.
Affected configurations
• rack-cors project rack-cors (< 1.0.4)
• debian debian linux 8.0
• debian debian linux 9.0
• debian debian linux 10.0
• canonical ubuntu linux 16.04
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d Patch, Third Party Advisory
- https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4 Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html Mailing List, Third Party Advisory
- https://usn.ubuntu.com/4571-1/ Third Party Advisory
- https://www.debian.org/security/2021/dsa-4918 Third Party Advisory
- https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d Patch, Third Party Advisory
- https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4 Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html Mailing List, Third Party Advisory
- https://usn.ubuntu.com/4571-1/ Third Party Advisory
- https://www.debian.org/security/2021/dsa-4918 Third Party Advisory