Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29970.json",
"cna_assigner": "mitre"
}{
"source": [
"DESCRIPTION",
"CPE_RANGE"
],
"cpe": "cpe:2.3:a:sinatrarb:sinatra:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "2.2.0"
},
{
"introduced": "0"
},
{
"fixed": "2.2.0"
}
]
}