CVE-2019-18978

medium

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.

References

https://www.debian.org/security/2021/dsa-4918

https://usn.ubuntu.com/4571-1/

https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html

https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html

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

https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d

Details

Source: Mitre, NVD

Published: 2019-11-14

Updated: 2021-05-21

Risk Information

CVSS v2

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

Severity: Medium

CVSS v3

Base Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Severity: Medium