<?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-10-09T23:17:28.395007+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/ghsa-8v2v-wjwg-vx6r</id>
    <title>GHSA-8v2v-wjwg-vx6r — actix-files has a possible exposure of information vulnerability</title>
    <updated>2026-10-09T23:17:28.397431+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> crates.io: actix-files</p>
<p>### Summary</p>
<p>When passing a non-existing folder to the `actix_files::Files::new()` method causes the actix server to expose unexpected files.</p>
<p>### Details</p>
<p>The `actix-files` library exposes a [`Files` struct](https://github.com/actix/actix-web/blob/fba766b4beb92278665d58815c94d336015225c5/actix-files/src/files.rs#L38) that configures an actix `service` to serve the files in a folder as static assets. Below you can find the [signature of the `Files::new` method](https://github.com/actix/actix-web/blob/fba766b4beb92278665d58815c94d336015225c5/actix-files/src/files.rs#L98):</p>
<p>```rust
pub fn new&lt;T: Into&lt;PathBuf&gt;&gt;(mount_path: &amp;str, serve_from: T) -&gt; Files
```</p>
<p>When the `mount_path` you pass to `Files` doesn't exist, [it defaults to an empty path](https://github.com/actix/actix-web/blob/fba766b4beb92278665d58815c94d336015225c5/actix-files/src/files.rs#L104) (`Path::new()`). When the service receives a HTTP request, it [joins the request information with the empty path](https://github.com/actix/actix-web/blob/fba766b4beb92278665d58815c94d336015225c5/actix-files/src/service.rs#L136) and calls `canonicalize`. Rust resolves this path as relative and returns any file that matches it.</p>
<p>This behavior causes the library to expose unexpected files when the folder is not present.</p>
<p>### PoC</p>
<p>_There is a working PoC on https://github.com/Angelmmiguel/actix-files-vuln, although the next steps can be followed to reproduce the issue_</p>
<p>1. Clone the https://github.com/actix/examples repository.
2. C…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-8v2v-wjwg-vx6r"/>
  </entry>
</feed>
