<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T12:10:48.294460+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-34830</id>
    <title>CVE-2026-34830 — Rack: Rack::Sendfile regex injection via HTTP_X_ACCEL_MAPPING header allows arbitrary file reads through nginx</title>
    <updated>2026-09-29T12:10:48.707605+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> rack</p>
<p>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.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-34830"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-qv7j-4883-hwh7</id>
    <title>GHSA-qv7j-4883-hwh7 — Rack::Sendfile header-based X-Accel-Mapping regex injection enables unauthorized X-Accel-Redirect</title>
    <updated>2026-09-29T12:10:48.707705+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> RubyGems: rack</p>
<p>## Summary</p>
<p>`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.</p>
<p>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.</p>
<p>## Details</p>
<p>`Rack::Sendfile#map_accel_path` processes header-supplied mappings using logic equivalent to:</p>
<p>```ruby
mapping.split(',').map(&amp;:strip).each do |m|
  internal, external = m.split('=', 2).map(&amp;:strip)
  new_path = path.sub(/\A#{internal}/i, external)
  return new_path unless path == new_path
end
```</p>
<p>Here, `internal` comes from the `HTTP_X_ACCEL_MAPPING` request header and is inserted directly into a regular expression without escaping. This gives the header value regex semantics rather than treating it as a literal prefix.</p>
<p>As a result, an attacker can supply metacharacters such as `.*` or capture groups to alter how the path substitution is performed. For example, a mapping such as:</p>
<p>```http
X-Accel-Mapping: .*=/protected/secret.txt
```</p>
<p>causes the entire source path to match and rewrites the redirect target to a clean attacker-chosen internal path.</p>
<p>This differs from the documented behavior of the header-based mappin…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-qv7j-4883-hwh7"/>
  </entry>
</feed>
