CVEvulnerability
CVE-2022-29970
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-05-02
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/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
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Affected configurations
• sinatrarb sinatra (< 2.2.0)
• debian debian linux 10.0
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html Mailing List, Third Party Advisory
- https://github.com/sinatra/sinatra/pull/1683/commits/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/10/msg00034.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html lists.debian.org