Description
The actix-files crate (actix_files) before version 0.6.10 contains an information exposure vulnerability. When a non-existing folder is passed as the serve_from argument to Files::new(), the mount path defaults to an empty path; the service then joins the request path with this empty path and canonicalizes it, causing Rust to resolve it as a relative path. As a result, an attacker can request paths that resolve relative to the application's working directory and access unintended files.
Published: 2026-08-14
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The actix-files component of actix-web does not correctly handle an absent directory passed to Files::new(). When the serve_from path does not exist the mount path defaults to an empty string, causing the framework to join the request URL with that empty path and then canonicalize the resulting path. The canonicalization resolves the path relative to the process’s working directory, allowing an attacker to reference files outside the intended static file directory. The flaw enables unintended file reads, which can expose sensitive application data. This weakness corresponds to CWE‑22.

Affected Systems

The vulnerability affects the actix-web library from the Actix project. Any version of actix-web that incorporates actix-files before release 0.6.10 is impacted. Applications dependent on actix-web 0.6.9 or earlier, or any project that uses actix-files <0.6.10, are at risk when an attacker can send crafted HTTP requests to the file-serving endpoint.

Risk and Exploitability

With a CVSS score of 6.3 the flaw presents moderate severity. No EPSS score is available, and the issue is not listed in the CISA KEV catalog, suggesting limited observed exploitation. Nevertheless, the weakness can be triggered by any external client that can send requests to the file-serving route, making remote attackers capable of disclosure. Based on the description, it is inferred that the attack vector is external over the network. Given the lack of defensive barriers in the vulnerable code, realizing the disclosure requires only normal HTTP access to the server.

Generated by OpenCVE AI on August 14, 2026 at 13:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade actix-web to 0.6.10 or newer to apply the official fix.
  • Verify that the serve_from argument passed to Files::new() points to an existing directory; reject configuration that uses a non-existing path.
  • If upgrading is not possible, remove or restrict the file-serving route so that no external clients can trigger the vulnerability.

Generated by OpenCVE AI on August 14, 2026 at 13:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
Description The actix-files crate (actix_files) before version 0.6.10 contains an information exposure vulnerability. When a non-existing folder is passed as the serve_from argument to Files::new(), the mount path defaults to an empty path; the service then joins the request path with this empty path and canonicalizes it, causing Rust to resolve it as a relative path. As a result, an attacker can request paths that resolve relative to the application's working directory and access unintended files.
Title actix-web before 0.6.10 Information Disclosure via Files
First Time appeared Actix
Actix actix-web
Weaknesses CWE-22
CPEs cpe:2.3:a:actix:actix-web:*:*:*:*:*:rust:*:*
Vendors & Products Actix
Actix actix-web
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T11:35:26.816Z

Reserved: 2026-08-10T15:12:16.754Z

Link: CVE-2026-72814

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-14T12:16:44.387

Modified: 2026-08-14T12:16:44.387

Link: CVE-2026-72814

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T13:30:05Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')