CVE catalog

CVE-2026-34830

Rack is a modular Ruby web server interface. Prior to…

[CVE catalog]

Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Sendfile#map_accel_path interpolates the value of the X-Accel-Mapping request header directly into a regular expression when rewriting file paths for X-Accel-Redirect. Because the header value is not escaped, an attacker who can supply X-Accel-Mapping to the backend can inject regex metacharacters and control the generated X-Accel-Redirect response header. In deployments using Rack::Sendfile with x-accel-redirect, this can allow an attacker to cause nginx to serve unintended files from configured internal locations. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.

Severity
Medium · CVSS 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.23% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Version impact has not been established. The original provider fields are retained below.

Provider details and historical evidence
Original provider fields
{
  "package_releases": [
    {
      "name": "ruby-rack",
      "status": "fixed",
      "release": "sid",
      "version": "3.2.7-1"
    },
    {
      "name": "ruby-rack",
      "status": "fixed",
      "release": "forky",
      "version": "3.2.7-1"
    },
    {
      "name": "ruby-rack",
      "status": "vulnerable",
      "release": "trixie",
      "version": "3.1.20-0+deb13u1"
    },
    {
      "name": "ruby-rack",
      "status": "fixed",
      "release": "trixie-security",
      "version": "3.1.20-0+deb13u2"
    },
    {
      "name": "ruby-rack",
      "status": "vulnerable",
      "release": "bookworm",
      "version": "2.2.22-0+deb12u1"
    },
    {
      "name": "ruby-rack",
      "status": "fixed",
      "release": "bookworm-security",
      "version": "2.2.22-0+deb12u2"
    }
  ],
  "fixed_versions": [
    {
      "bug": null,
      "name": "ruby-rack",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "3.2.6-2"
    },
    {
      "bug": null,
      "name": "ruby-rack",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "3.2.6-2"
    },
    {
      "bug": null,
      "name": "ruby-rack",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "3.1.20-0+deb13u2"
    },
    {
      "bug": null,
      "name": "ruby-rack",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "2.2.22-0+deb12u2"
    }
  ],
  "distribution_packages": [
    {
      "name": "ruby-rack",
      "ecosystem": "cpe",
      "fixed_version": "2.2.7-1ubuntu0.7"
    },
    {
      "name": "ruby-rack",
      "ecosystem": "cpe",
      "fixed_version": "not yet fixed"
    },
    {
      "name": "rack",
      "ecosystem": "cpe",
      "fixed_version": "2.2.23"
    },
    {
      "name": "rack",
      "ecosystem": "cpe",
      "fixed_version": "3.1.21"
    },
    {
      "name": "rack",
      "ecosystem": "cpe",
      "fixed_version": "3.2.6"
    },
    {
      "name": "ruby-rack",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.1.4-5ubuntu1.2+esm3"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "2.1.4-3",
        "2.1.4-4",
        "2.1.4-5",
        "2.1.4-5ubuntu1",
        "2.1.4-5ubuntu1+esm2",
        "2.1.4-5ubuntu1+esm3",
        "2.1.4-5ubuntu1+esm4",
        "2.1.4-5ubuntu1+esm5",
        "2.1.4-5ubuntu1.1",
        "2.1.4-5ubuntu1.1+esm1",
        "2.1.4-5ubuntu1.1+esm2",
        "2.1.4-5ubuntu1.2",
        "2.1.4-5ubuntu1.2+esm1",
        "2.1.4-5ubuntu1.2+esm2"
      ],
      "ecosystem": "deb",
      "fixed_version": "2.1.4-5ubuntu1.2+esm3",
      "provider_record_id": "UBUNTU-CVE-2026-34830"
    },
    {
      "name": "ruby-rack",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.2.7-1ubuntu0.7"
            }
          ]
        }
      ],
      "release": "24.04",
      "versions": [
        "2.2.4-3",
        "2.2.7-1",
        "2.2.7-1ubuntu0.1",
        "2.2.7-1ubuntu0.2",
        "2.2.7-1ubuntu0.3",
        "2.2.7-1ubuntu0.4",
        "2.2.7-1ubuntu0.5",
        "2.2.7-1ubuntu0.6"
      ],
      "ecosystem": "deb",
      "fixed_version": "2.2.7-1ubuntu0.7",
      "provider_record_id": "UBUNTU-CVE-2026-34830"
    },
    {
      "name": "ruby-rack",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.1.16-0.1ubuntu0.3"
            }
          ]
        }
      ],
      "release": "25.10",
      "versions": [
        "2.2.7-1.1",
        "3.1.16-0.1",
        "3.1.16-0.1ubuntu0.1",
        "3.1.16-0.1ubuntu0.2"
      ],
      "ecosystem": "deb",
      "fixed_version": "3.1.16-0.1ubuntu0.3",
      "provider_record_id": "UBUNTU-CVE-2026-34830"
    },
    {
      "name": "ruby-rack",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "26.04",
      "versions": [
        "3.1.16-0.1",
        "3.1.18-1",
        "3.1.18-1build1",
        "3.2.4-1ubuntu1"
      ],
      "ecosystem": "deb",
      "fixed_version": "",
      "provider_record_id": "UBUNTU-CVE-2026-34830"
    }
  ]
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [ruby-rack]Unknown
    Details (4)
    • 2.2.22-0+deb12u1 · all · bookworm

      Affected · Fixed: 2.2.22-0+deb12u2

      nvd · ruby-rack · debian · bookworm; nvd · ruby-rack · debian · 12

    • 2.2.22-0+deb12u1 · all · bookworm

      Affected · Fixed: 2.2.22-0+deb12u2

      nvd · ruby-rack · debian · bookworm; nvd · ruby-rack · debian · 12

    • 2.2.22-0+deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.2.22-0+deb12u2

      nvd · ruby-rack · debian · bookworm; nvd · ruby-rack · debian · 12

    • 2.2.22-0+deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.2.22-0+deb12u2

      nvd · ruby-rack · debian · bookworm; nvd · ruby-rack · debian · 12

[Debian 13 (Trixie)]

  • [ruby-rack]Unknown
    Details (5)
    • 3.1.20-0+deb13u1 · all · trixie

      Affected · Fixed: 3.1.20-0+deb13u2

      nvd · ruby-rack · debian · 13

    • 3.1.20-0+deb13u1 · all · trixie

      Affected · Fixed: 3.1.20-0+deb13u2

      nvd · ruby-rack · debian · 13

    • 3.1.20-0+deb13u1 · all · trixie-security

      Affected · Fixed: 3.1.20-0+deb13u2

      nvd · ruby-rack · debian · 13

    • 3.1.20-0+deb13u1 · all · trixie-security · Historical version

      Affected · Fixed: 3.1.20-0+deb13u2

      nvd · ruby-rack · debian · 13

    • 3.1.20-0+deb13u2 · all · trixie-security

      Fixed · Fixed: 3.1.20-0+deb13u2

      nvd · ruby-rack · debian · 13

Observed:

References