CVE-2019-18978: Path Traversal

Published Nov 14, 2019
·
Updated

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 Software

6 affected componentsFixes available
Rack-cors Project Rack-cors Ruby<1.0.4
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Canonical Ubuntu Linux=16.04
debian/ruby-rack-cors
1.1.1-12.0.2-13.0.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/ruby-rack-cors to a version that resolves this vulnerability.

    Fixed in 1.1.1-1Fixed in 2.0.2-1Fixed in 3.0.0-1
  2. Upgrade

    Upgrade rack-cors to a version that resolves this vulnerability.

    Fixed in 1.0.4

Event History

Nov 14, 2019
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·08:21 PM
Data Sourced
via MITRE·08:21 PM
Description
Data Sourced
09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 21, 2024
Updated
via NVD·04:33 AM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2019-18978?

CVE-2019-18978 is classified as a medium severity vulnerability that allows directory traversal to access private resources.

2

How do I fix CVE-2019-18978?

To fix CVE-2019-18978, upgrade the rack-cors gem to version 1.0.4 or later.

3

What versions of rack-cors are affected by CVE-2019-18978?

CVE-2019-18978 affects rack-cors versions prior to 1.0.4.

4

In which software environments is CVE-2019-18978 present?

CVE-2019-18978 is present in Ruby applications using the rack-cors gem in specific versions on Debian and Ubuntu.

5

What can happen if CVE-2019-18978 is exploited?

If exploited, CVE-2019-18978 can allow an attacker to access sensitive private resources through directory traversal.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203