Improper Output Neutralization for Logs Affecting rack package, versions <2.2.12>=3.0.0.beta1, <3.0.13>=3.1.0, <3.1.11


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Output Neutralization for Logs vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-RACK-9058602
  • published5 Mar 2025
  • disclosed4 Mar 2025
  • creditMasamune

Introduced: 4 Mar 2025

NewCVE-2025-27111  (opens in a new tab)
CWE-117  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade rack to version 2.2.12, 3.0.13, 3.1.11 or higher.

Overview

rack is a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call.

Affected versions of this package are vulnerable to Improper Output Neutralization for Logs in the Rack::Sendfile middleware which logs values from the X-Sendfile-Type header. An attacker can inject messages into logs by including escape sequences such as newline characters in sent headers.

CVSS Base Scores

version 4.0
version 3.1