{"id":"CVE-2020-15230","published":"2020-10-02T18:55:14Z","modified":"2024-08-04T13:08:22Z","title":"Arbitrary file read un Vapor","vendor":"vapor","product":"vapor","tier":"tail","description":{"text":"Vapor is a web framework for Swift. In Vapor before version 4.29.4, Attackers can access data at arbitrary filesystem paths on the same host as an application. Only applications using FileMiddleware are affected. This is fixed in version 4.29.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0153,"percentile":0.75368,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/vapor/vapor/security/advisories/GHSA-vcvg-xgr8-p5gq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vapor/vapor/pull/2500","tags":["x_refsource_MISC"]},{"url":"https://github.com/vapor/vapor/commit/cf1651f7ff76515593f4d8ca6e6e15d2247fe255","tags":["x_refsource_MISC"]}],"priority":{"score":21.0,"factors":[{"name":"EPSS percentile","points":15.07},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"vapor","affectedVersions":[{"vendor":"vapor","product":"vapor","versions":["< 4.29.4"]}],"affected":[{"ecosystem":"SwiftURL","package":"github.com/vapor/vapor","vulnerableRanges":[">=4.0.0-rc.2.5, <4.29.4"],"patched":["4.29.4"],"from":["GHSA-vcvg-xgr8-p5gq"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary file read in Vapor, a Swift web framework, affecting the FileMiddleware component in versions before 4.29.4. It stems from improper limitation of pathnames to a restricted directory, which allows access to data at arbitrary filesystem paths on the host running the application. An attacker with network access and low-privilege credentials could read files on the same host as an affected application that uses FileMiddleware, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:08:10Z"},"euvd":{"id":"EUVD-2023-1889","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-15230","published":"2020-10-02","fixed":"4.29.4","kev":false},{"cve":"CVE-2021-21328","published":"2021-02-26","fixed":"4.40.1","kev":false,"link":{"from":"CVE-2020-15230","to":"CVE-2021-21328","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"SwiftURL:github.com/vapor/vapor","fromFixed":"4.29.4","toFixed":"4.40.1","daysApart":147}]}},{"cve":"CVE-2021-32742","published":"2021-07-09","fixed":"4.47.2","kev":false},{"cve":"CVE-2022-31005","published":"2022-05-31","fixed":"4.60.3","kev":false}],"package":"SwiftURL:github.com/vapor/vapor"}}