GO-2024-2730
not scored yetwithdrawn / rejectedWITHDRAWN: Directory traversal in FilesystemStore in github.com/gorilla/sessions
(This report has been withdrawn on the grounds that it generates too many false positives. Session IDs are documented as not being suitable to hold user-provided data.)
FilesystemStore does not sanitize the Session.ID value, making it vulnerable to directory traversal attacks. If an attacker has control over the contents of the session ID, this can be exploited to write to arbitrary files in the filesystem.
Programs which do not set session IDs explicitly, or which only set session IDs that will not be interpreted by the filesystem, are not vulnerable.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/gorilla/sessions | all versions |
References
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Apr 2024)