<?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://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T20:33:51.326251+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" 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://db.gcve.eu/vuln/cve-2026-142593</id>
    <title>CVE-2026-142593 — Rack: `Rack::Directory` lists directories outside the root when `..` follows a symbolic link.</title>
    <updated>2026-12-04T20:33:51.328124+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. From 2.2.0 until 2.2.26, 3.1.24, and 3.2.9, Rack::Directory#get checks a path containing dot-dot segments with File.expand_path but then passes the original unnormalized path to File.stat and Dir.foreach instead of first applying Utils.clean_path_info. Earlier Rack versions reject every path containing dot-dot and are not affected. When a directory beneath the served root is a symbolic link followed by .., the operating system resolves the link before applying the dot-dot segment, allowing an unauthenticated request to list the target's parent or siblings outside the root. The disclosure is limited to directory entry names, sizes, and modification times because Rack::Files normalizes paths before serving file contents. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-142593"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-mhj6-xc86-54m8</id>
    <title>GHSA-mhj6-xc86-54m8 — Rack: `Rack::Directory` lists directories outside the root when `..` follows a symbolic link</title>
    <updated>2026-12-04T20:33:51.328219+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::Directory#get` decides whether a request path containing `..` stays inside the root by expanding it lexically with `File.expand_path`, but then joins the original, unnormalized path onto the root and passes it to `File.stat` and `Dir.foreach`. The operating system resolves a symbolic link before applying a `..` that follows it, so when a directory under the root is a symlink, a request such as `/system/../` passes the check while the filesystem lists the parent of the link's target, and `/system/../config/` lists a sibling of the target. Both are outside the root. This results in disclosure of file and directory names, sizes and modification times outside the served tree.</p>
<p>## Details</p>
<p>The check and the filesystem access use different paths:</p>
<p>```ruby
def get(env)
  path_info = Utils.unescape_path(env[PATH_INFO])
  if client_error_response = check_bad_request(path_info) || check_forbidden(path_info)
    client_error_response
  else
    path = ::File.join(@root, path_info)         # unnormalized
    list_path(env, path, path_info, script_name) # File.stat, Dir.foreach
  end
end</p>
<p>def check_forbidden(path_info)
  return unless path_info.include? ".."
  expanded_path = ::File.expand_path(::File.join(@root, path_info))  # lexical
  return if expanded_path == @root || expanded_path.start_with?(@root_with_separator)
  # 403
end
```</p>
<p>With `public/system` linked to `shared/system`, `File.expand_path("public/system/../")` is `public`, so the request is allowed, but `D…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-mhj6-xc86-54m8"/>
  </entry>
</feed>
