{"api_version":"1","generated_at":"2026-07-23T10:54:53+00:00","cve":"CVE-2019-18978","urls":{"html":"https://cve.report/CVE-2019-18978","api":"https://cve.report/api/cve/CVE-2019-18978.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-18978","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-18978"},"summary":{"title":"CVE-2019-18978","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2019-11-14 21:15:00","updated_at":"2021-05-21 16:47:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://usn.ubuntu.com/4571-1/","name":"USN-4571-1","refsource":"UBUNTU","tags":[],"title":"USN-4571-1: rack-cors vulnerability | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d","name":"https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d","refsource":"MISC","tags":["Patch"],"title":"Unescape and resolve paths before resource checks · cyu/rack-cors@e4d4fc3 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html","name":"[debian-lts-announce] 20200206 [SECURITY] [DLA 2096-1] ruby-rack-cors security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2096-1] ruby-rack-cors security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4","name":"https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4","refsource":"MISC","tags":["Patch"],"title":"Comparing v1.0.3...v1.0.4 · cyu/rack-cors · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html","name":"[debian-lts-announce] 20201001 [SECURITY] [DLA 2389-1] ruby-rack-cors security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2389-1] ruby-rack-cors security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2021/dsa-4918","name":"DSA-4918","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-4918-1 ruby-rack-cors","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-18978","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-18978","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"18978","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"esm","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"18978","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"18978","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"18978","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"18978","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rack-cors_project","cpe5":"rack-cors","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"18978","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rack-cors_project","cpe5":"rack-cors","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2019-18978","qid":"178604","title":"Debian Security Update for ruby-rack-cors (DSA 4918-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2019-18978","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d","refsource":"MISC","name":"https://github.com/cyu/rack-cors/commit/e4d4fc362a4315808927011cbe5afcfe5486f17d"},{"url":"https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4","refsource":"MISC","name":"https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.4"},{"refsource":"MLIST","name":"[debian-lts-announce] 20200206 [SECURITY] [DLA 2096-1] ruby-rack-cors security update","url":"https://lists.debian.org/debian-lts-announce/2020/02/msg00004.html"},{"refsource":"MLIST","name":"[debian-lts-announce] 20201001 [SECURITY] [DLA 2389-1] ruby-rack-cors security update","url":"https://lists.debian.org/debian-lts-announce/2020/10/msg00000.html"},{"refsource":"UBUNTU","name":"USN-4571-1","url":"https://usn.ubuntu.com/4571-1/"},{"refsource":"DEBIAN","name":"DSA-4918","url":"https://www.debian.org/security/2021/dsa-4918"}]}},"nvd":{"publishedDate":"2019-11-14 21:15:00","lastModifiedDate":"2021-05-21 16:47:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":1.4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:rack-cors_project:rack-cors:*:*:*:*:*:ruby:*:*","versionEndExcluding":"1.0.4","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"18978","Ordinal":"160544","Title":"CVE-2019-18978","CVE":"CVE-2019-18978","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"18978","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2019","CveId":"18978","Ordinal":"2","NoteData":"2019-11-14","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"18978","Ordinal":"3","NoteData":"2021-05-18","Type":"Other","Title":"Modified"}]}}}