Debian DLA-3166-1 : ruby-sinatra - LTS security update

high Nessus Plugin ID 166676

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 10 host has packages installed that are affected by a vulnerability as referenced in the dla-3166 advisory.

- Sinatra before 2.2.0 does not validate that the expanded path matches public_dir when serving static files. (CVE-2022-29970)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the ruby-sinatra packages.

For Debian 10 buster, this problem has been fixed in version 2.0.5-4+deb10u1.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014717

http://www.nessus.org/u?5d91863f

https://www.debian.org/lts/security/2022/dla-3166

https://security-tracker.debian.org/tracker/CVE-2022-29970

https://packages.debian.org/source/buster/ruby-sinatra

Plugin Details

Severity: High

ID: 166676

File Name: debian_DLA-3166.nasl

Version: 1.2

Type: local

Agent: unix

Published: 10/28/2022

Updated: 10/28/2022

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS Score Source: CVE-2022-29970

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:ruby-rack-protection, p-cpe:/a:debian:debian_linux:ruby-sinatra, p-cpe:/a:debian:debian_linux:ruby-sinatra-contrib, cpe:/o:debian:debian_linux:10.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 10/28/2022

Vulnerability Publication Date: 5/2/2022

Reference Information

CVE: CVE-2022-29970