Audit Linux privileges now to limit compromise, escalation, and system-wide damage. Review Linux Privileges×

Alerts This Week
Warning Icon 1 498
Alerts This Week
Warning Icon 1 498

Serious Remote Code Execution Flaws in Ruby Sinatra for Ubuntu 22.04

ubuntu
Calendar Grey July 22, 2025
Scroller Ubuntu
Upgraded Sinatra addresses significant vulnerabilities in Ubuntu impacting several editions; maintain system stability by applying this patch.
Several security issues were fixed in Sinatra.

Summary

Several security issues were fixed in Sinatra.

Software Description:

- ruby-sinatra: Ruby web-development dressed in a DSL

Details:

It was discovered that Sinatra incorrectly handled serving static files.

An attacker could possibly use this issue to perform local file inclusion,

obtaining sensitive information.

(CVE-2022-29970)

It was discovered that Sinatra incorrectly handled special characters in

the Content-Disposition HTTP header. An attacker could possibly use this

issue to perform a reflected file download attack, achieving remote code

execution. (CVE-2022-45442)

Update Instructions

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 22.04 LTS
  ruby-sinatra                    2.0.8.1-2+deb11u1build0.22.04.1

Ubuntu 20.04 LTS
  ruby-sinatra                    2.0.8.1-1ubuntu0.1~esm2
                                  Available with Ubuntu Pro

Ubuntu 18.04 LTS
  ruby-sinatra                    1.4.8-1ubuntu0.1~esm2
                                  Available with Ubuntu Pro

Ubuntu 16.04 LTS
  ruby-sinatra                    1.4.7-3ubuntu0.1~esm2
                                  Available with Ubuntu Pro

In general, a standard system update will make all the necessary changes.

References

https://ubuntu.com/security/notices/USN-7664-1

CVE-2022-29970, CVE-2022-45442

Severity
critical
Lowest
Low
Medium
High
Critical

Ubuntu Security Notice USN-7664-1

Package Information

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.