CVE-2022-29970

NameCVE-2022-29970
DescriptionSinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3166-1, DLA-3877-1, ELA-638-1
Debian Bugs1014717

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-sinatra (PTS)jessie1.4.5-1vulnerable
stretch (lts), stretch1.4.7-5+deb9u2fixed
buster (security), buster, buster (lts)2.0.5-4+deb10u2fixed
bullseye2.0.8.1-2vulnerable
bullseye (security)2.0.8.1-2+deb11u1fixed
bookworm3.0.5-3fixed
sid, trixie3.2.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby-sinatrasourcejessie(unfixed)end-of-life
ruby-sinatrasourcestretch1.4.7-5+deb9u1ELA-638-1
ruby-sinatrasourcebuster2.0.5-4+deb10u1DLA-3166-1
ruby-sinatrasourcebullseye2.0.8.1-2+deb11u1DLA-3877-1
ruby-sinatrasource(unstable)2.2.2-11014717

Notes

https://github.com/sinatra/sinatra/commit/462c3ca1db53ed3cfc394cf5948e9c948ad1c10e (v2.2.0)

Search for package or bug name: Reporting problems