{"id":"CVE-2026-72814","aliases":["CVE-2026-72814","GHSA-8v2v-wjwg-vx6r"],"related":[],"kind":"vulnerability","state":"published","title":"actix-files before 0.6.10 Information Disclosure via Files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWhen passing a non-existing folder to the `actix_files::Files::new()` method causes the actix server to expose unexpected files.\n\n### Details\n\nThe `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):\n\n```rust\npub fn new<T: Into<PathBuf>>(mount_path: &str, serve_from: T) -> Files\n```\n\nWhen 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.\n\nThis behavior causes the library to expose unexpected files when the folder is not present.\n\n### PoC\n\n_There is a working PoC on https://github.com/Angelmmiguel/actix-files-vuln, although the next steps can be followed to reproduce the issue_\n\n1. Clone the https://github.com/actix/examples repository.\n2. Change your directory to the `basics/static-files` folder.\n3. Edit the `src/main.rs` file and change the line 13 to mount a non-existing folder:\n\n    ```diff\n    -        .service(Files::new(\"/images\", \"static/images/\").show_files_listing())\n    +        .service(Files::new(\"/images\", \"static/missing/\").show_files_listing())\n    ```\n    \n4. Run the project with `cargo run`.\n5. Access the <http://localhost:8080/images/Cargo.toml> URL.\n\n### Impact\n\nThis is an exposure of information vulnerability. It affects anyone using the `actix-files::Files` library that mounts a non-existing folder for any reason.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El crate actix-files (actix_files) anterior a la versión 0.6.10 contiene una vulnerabilidad de exposición de información. Cuando se pasa una carpeta inexistente como argumento serve_from a Files::new(), la ruta de montaje por defecto es una ruta vacía; el servicio luego une la ruta de la solicitud con esta ruta vacía y la canoniza, lo que hace que Rust la resuelva como una ruta relativa. Como resultado, un atacante puede solicitar rutas que se resuelven de forma relativa al directorio de trabajo de la aplicación y acceder a archivos no deseados.","source":"nvd"}],"published":"2026-02-06T18:56:20.000Z","modified":"2026-10-29T21:17:32.247Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-22","CWE-200"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.6.10","status":"affected"},{"type":"semver","version":"0.6.10","status":"unaffected"}],"vendor":"actix","product":"actix-files","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.10"}],"ecosystem":"crates.io","package":"actix-files","purl":"pkg:cargo/actix-files","source":"ghsa"}],"references":[{"url":"https://github.com/actix/actix-web/security/advisories/GHSA-8v2v-wjwg-vx6r","tags":["exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/actix-web-before-information-disclosure-via-files","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/actix/actix-web","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/actix/actix-web/blob/fba766b4beb92278665d58815c94d336015225c5/actix-files/src/files.rs#L104","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/actix/actix-web/blob/fba766b4beb92278665d58815c94d336015225c5/actix-files/src/files.rs#L38","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/actix/actix-web/blob/fba766b4beb92278665d58815c94d336015225c5/actix-files/src/files.rs#L98","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/actix/actix-web/blob/fba766b4beb92278665d58815c94d336015225c5/actix-files/src/service.rs#L136","tags":["web"],"sources":["ghsa"]}],"credits":["Angelmmiguel","JohnTitor"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-14T19:39:33.834Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-72814","url":"https://www.cve.org/CVERecord?id=CVE-2026-72814","licence":"CVE Terms of Use","modified":"2026-10-29T21:16:49.247Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8v2v-wjwg-vx6r","url":"https://github.com/advisories/GHSA-8v2v-wjwg-vx6r","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:34.469Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-72814","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72814","licence":"Public domain","modified":"2026-10-29T21:17:32.247Z"}],"updatedAt":"2026-11-25T22:59:32.901Z","epss":{"score":0.00539,"percentile":0.46838,"date":"2026-12-01T12:00:22.000Z"}}