CVE-2026-25891
Path Traversal in Fiber Static Middleware Allows Arbitrary File Access
Publication date: 2026-02-24
Last updated on: 2026-02-27
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| gofiber | fiber | From 3.0.0 (inc) to 3.1.0 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
Attack-Flow Graph
AI Powered Q&A
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade Fiber to version 3.1.0 or later, as the issue has been patched in that release.
How can this vulnerability impact me? :
An attacker exploiting this vulnerability can read arbitrary files on the server's file system remotely without any authentication or user interaction.
This can lead to exposure of sensitive information, configuration files, or other critical data stored on the server, potentially compromising the security and privacy of the system.
Can you explain this vulnerability to me?
This vulnerability is a Path Traversal (CWE-22) issue in the Fiber web framework, which is inspired by Express and written in Go. It allows a remote attacker to bypass the static middleware sanitizer and read arbitrary files on the server's file system when running on Windows.
The vulnerability affects Fiber versions 3 through 3.0.0 and has been fixed in version 3.1.0.