CVE-2025-67487: Static web server Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-459f-x8vq-xjjm
CWE-61
Published
Advisory Summary

CVE-2025-67487 is a MODERATE path traversal vulnerability (CWE-61: UNIX Symbolic Link (Symlink) Following) affecting Static web server libraries in the crates.io ecosystem. The issue involves static web server vulnerable to a symbolic link path traversal. Remediation is available by upgrading affected packages to version 2.40.1.

CVE-2025-67487 at a Glance

CVE Identifier CVE-2025-67487
GHSA Identifier GHSA-459f-x8vq-xjjm
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-61: UNIX Symbolic Link (Symlink) Following
Affected Product Static web server
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix CVE-2025-67487

To remediate this vulnerability, upgrade all affected Static web server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

static-web-server fixed: 2.40.1
Upgrade static-web-server to 2.40.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for static-web-server

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-67487, inspect your project dependencies for Static web server:

inspect dependencies for static-web-server

Analyze the terminal output to locate any version of Static web server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.40.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-61: UNIX Symbolic Link (Symlink) Following, where the product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. this could allow an attacker to cause the product to operate on unauthorized files. In Static web server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Symbolic links (_symlinks_) could be used to access files or directories outside the intended web root folder. ### Details SWS generally does not prevent symlinks from escaping the web server’s root directory. Therefore, if a malicious actor gains access to the web server’s root directory, they could create symlinks to access other files outside the designated web root folder either by URL or via the directory listing. ### PoC - Serve a directory (web root) with SWS. - Create a symlink inside the web root that points to a file outside the web root. e.g. `ln -s escape.txt $HOME/.bashrc` - Open `http://localhost/escape.txt` in your browser. - The file content will be served. ### Impact Any web server that runs with elevated privileges (e.g., root/administrator) and handles user-supplied file uploads is primarily impacted.

CVE-2025-67487 Affected Static web server Versions

1 component(s)
Fixed Versions:
2.40.1
Product / Package Ecosystem Affected Versions Fixed Version
static-web-server
crates.io
< 2.40.1
2.40.1

References

Frequently Asked Questions

What is CVE-2025-67487?
CVE-2025-67487 is a security vulnerability in Static web server involving Static Web Server vulnerable to a symbolic link path traversal under CWE-61: UNIX Symbolic Link (Symlink) Following.
Which Static web server versions are affected?
Affected versions include releases prior to 2.40.1 across affected packages: static-web-server.
What version fixes CVE-2025-67487?
Upgrading to 2.40.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is static-web-server affected?
Yes, static-web-server is affected in releases prior to 2.40.1. Upgrade your dependency to 2.40.1 or later.
What CWE is associated with CVE-2025-67487?
CVE-2025-67487 is classified under CWE-61: UNIX Symbolic Link (Symlink) Following (The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.).
How can I check crates.io dependencies for CVE-2025-67487?
Run the dependency tree command: 'inspect dependencies for static-web-server'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-459f-x8vq-xjjm",
  "modified" : "2025-12-09T19:17:06Z",
  "published" : "2025-12-08T22:18:00Z",
  "aliases" : [ "CVE-2025-67487" ],
  "summary" : "Static Web Server vulnerable to a symbolic link path traversal",
  "details" : "### Summary\n\nSymbolic links (_symlinks_) could be used to access files or directories outside the intended web root folder.\n\n### Details\n\nSWS generally does not prevent symlinks from escaping the web server’s root directory. Therefore, if a malicious actor gains access to the web server’s root directory, they could create symlinks to access other files outside the designated web root folder either by URL or via the directory listing.\n\n### PoC\n\n- Serve a directory (web root) with SWS.\n- Create a symlink inside the web root that points to a file outside the web root.\n  e.g. `ln -s escape.txt $HOME/.bashrc`\n- Open `http://localhost/escape.txt` in your browser.\n- The file content will be served.\n\n### Impact\n\nAny web server that runs with elevated privileges (e.g., root/administrator) and handles user-supplied file uploads is primarily impacted.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "static-web-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.40.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.40.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/static-web-server/static-web-server/security/advisories/GHSA-459f-x8vq-xjjm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67487"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/static-web-server/static-web-server/commit/308f0d26ceb9c2c8bd219315d0f53914763357f2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/static-web-server/static-web-server"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-61" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-08T22:18:00Z",
    "nvd_published_at" : "2025-12-09T16:18:24Z"
  }
}