VDB
CVE-2022-29970
CVE-2022-29970
PUBLISHED
CVSS 7.5 HIGH
sinatra does not validate expanded path matches
Reported by mitre · Published May 2, 2022
sinatra is fixed in 2.2.0 (RubyGems)
Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| sinatra | RubyGems | 2.2.0 |
Risk scores
CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| RubyGems | sinatra | 0 |
Timeline
- May 2, 2022 CVE Published
- May 2, 2022 EPSS Score (30 in total, the first dated here)
- May 2, 2022 PoC Published
- Nov 4, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (7 in total, the first dated here)
- Mar 17, 2026 Distribution Patch (6 in total, the first dated here)
- Jun 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-29970
vulnetix vdb fixes CVE-2022-29970
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-29970/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20221028 [SECURITY] [DLA 3166-1] ruby-sinatra security update mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2022-29970 advisory
- https://github.com/advisories/GHSA-qp49-3pvw-x4m5 advisory
- https://github.com/sinatra/sinatra/pull/1683 patch
- https://github.com/skylightio/skylight-ruby/pull/294 patch
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2022-29970.yml advisory
- https://github.com/sinatra/sinatra url
- https://lists.debian.org/debian-lts-announce/2024/09/msg00020.html url