Skip to content
Heist/ feed
Back to feed
MediumFix available

ruby-rack — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2025-61780

Rack is a modular Ruby web server interface. Prior to versions 2.2.20, 3.1.18, and 3.2.3, a possible information disclosure vulnerability existed in `Rack::Sendfile` when running behind a proxy that supports `x-sendfile` headers (such as Nginx). Specially crafted headers could cause `Rack::Sendfile` to miscommunicate with the proxy and trigger unintended internal requests, potentially bypassing proxy-level access restrictions. When `Rack::Sendfile` received untrusted `x-sendfile-type` or `x-accel-mapping` headers from a client, it would interpret them as proxy configuration directives. This could cause the middleware to send a "redirect" response to the proxy, prompting it to reissue a new internal request that was not subject to the proxy's access controls. An attacker could exploit this by setting a crafted `x-sendfile-type: x-accel-redirect` header, setting a crafted `x-accel-mapping` header, and requesting a path that qualifies for proxy-based acceleration. Attackers could bypass proxy-enforced restrictions and access internal endpoints intended to be protected (such as administrative pages). The vulnerability did not allow arbitrary file reads but could expose sensitive application routes. This issue only affected systems meeting all of the following conditions: The application used `Rack::Sendfile` with a proxy that supports `x-accel-redirect` (e.g., Nginx); the proxy did **not** always set or remove the `x-sendfile-type` and `x-accel-mapping` headers; and the applicati

Products
ruby-rack
Affected versions
2.2.13-1~deb12u1, 2.2.6.4-1, 2.2.6.4-1+deb12u1, 2.2.7-1, 2.2.7-1.1, 3.1.16-0.1, 3.1.18-1~deb13u1
Fixed versions
2.2.20-0+deb12u1, 3.1.18-1, 3.1.18-1~deb13u1
CVEs
CVE-2025-61780
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 22:43 UTC · Revision 1

Source evidence

DEBIAN-CVE-2025-61780

core-osv · Original source

Published 10 Oct 2025, 17:15 UTC

Rack is a modular Ruby web server interface. Prior to versions 2.2.20, 3.1.18, and 3.2.3, a possible information disclosure vulnerability existed in `Rack::Sendfile` when running behind a proxy that supports `x-sendfile` headers (such as Nginx). Specially crafted headers could cause `Rack::Sendfile` to miscommunicate with the proxy and trigger unintended internal requests, potentially bypassing proxy-level access restrictions. When `Rack::Sendfile` received untrusted `x-sendfile-type` or `x-accel-mapping` headers from a client, it would interpret them as proxy configuration directives. This could cause the middleware to send a "redirect" response to the proxy, prompting it to reissue a new internal request that was not subject to the proxy's access controls. An attacker could exploit this by setting a crafted `x-sendfile-type: x-accel-redirect` header, setting a crafted `x-accel-mapping` header, and requesting a path that qualifies for proxy-based acceleration. Attackers could bypass proxy-enforced restrictions and access internal endpoints intended to be protected (such as administrative pages). The vulnerability did not allow arbitrary file reads but could expose sensitive application routes. This issue only affected systems meeting all of the following conditions: The application used `Rack::Sendfile` with a proxy that supports `x-accel-redirect` (e.g., Nginx); the proxy did **not** always set or remove the `x-sendfile-type` and `x-accel-mapping` headers; and the applicati

osv:DEBIAN-CVE-2025-61780

ruby-rack

Fixed versions: 2.2.20-0+deb12u1

ruby-rack

Fixed versions: 3.1.18-1~deb13u1

ruby-rack

Fixed versions: 3.1.18-1

Complete source record
{
  "id": "169a884e64eb8765aa7ea35afe41104cd7b6caee7bed2ef75024dbcb70c94ac8",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2025-61780",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2025-61780",
    "summary": "Rack is a modular Ruby web server interface. Prior to versions 2.2.20, 3.1.18, and 3.2.3, a possible information disclosure vulnerability existed in `Rack::Sendfile` when running behind a proxy that supports `x-sendfile` headers (such as Nginx). Specially crafted headers could cause `Rack::Sendfile` to miscommunicate with the proxy and trigger unintended internal requests, potentially bypassing proxy-level access restrictions. When `Rack::Sendfile` received untrusted `x-sendfile-type` or `x-accel-mapping` headers from a client, it would interpret them as proxy configuration directives. This could cause the middleware to send a \"redirect\" response to the proxy, prompting it to reissue a new internal request that was not subject to the proxy's access controls. An attacker could exploit this by setting a crafted `x-sendfile-type: x-accel-redirect` header, setting a crafted `x-accel-mapping` header, and requesting a path that qualifies for proxy-based acceleration. Attackers could bypass proxy-enforced restrictions and access internal endpoints intended to be protected (such as administrative pages). The vulnerability did not allow arbitrary file reads but could expose sensitive application routes. This issue only affected systems meeting all of the following conditions: The application used `Rack::Sendfile` with a proxy that supports `x-accel-redirect` (e.g., Nginx); the proxy did **not** always set or remove the `x-sendfile-type` and `x-accel-mapping` headers; and the applicati",
    "evidence": "osv:DEBIAN-CVE-2025-61780",
    "products": [
      {
        "name": {
          "value": "ruby-rack",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.2.20-0+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.2.13-1~deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.2.6.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.2.6.4-1+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.2.7-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.2.7-1.1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-rack",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.1.18-1~deb13u1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.1.16-0.1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-rack",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.1.18-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "3.1.16-0.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.1.18-1~deb13u1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2025-61780",
      "aliases": [
        "DEBIAN-CVE-2025-61780"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.2.20-0+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-rack",
            "purl": "pkg:deb/debian/ruby-rack?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "2.2.13-1~deb12u1",
            "2.2.6.4-1",
            "2.2.6.4-1+deb12u1",
            "2.2.7-1",
            "2.2.7-1.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-61780.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.1.18-1~deb13u1"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-rack",
            "purl": "pkg:deb/debian/ruby-rack?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "3.1.16-0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-61780.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.1.18-1"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-rack",
            "purl": "pkg:deb/debian/ruby-rack?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "3.1.16-0.1",
            "3.1.18-1~deb13u1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-61780.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T17:47:28.929076088Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-61780"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2025-61780"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-61780",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 417163,
  "published_at": "2025-10-10T17:15:39.557+00:00"
}