Every CVE Search/ Get API key

GO-2024-3293

Full access to the host's OS file system using osfs.FS with Router.Static in goyave.dev/goyave/v5

No scoreFix available

Static file serving using router.Static and osfs.FS allows clients to access any file on the host file system using relative paths because the requested path is not sanitized and . and .. segments are accepted. The files will be returned as a response, provided the system user running the Go application has read access to the requested file.

As a workaround, use fsutil.NewEmbed(embeddedFS) from the goyave.dev/goyave/v5/util/fsutil package to serve static content using Router.Static instead of &osfs.FS. Embedded file systems are rooted to the specified directory, making it impossible to navigate outside of the developers' intended directory.

What each source reports

OSV No score

Full access to the host's OS file system using osfs.FS with Router.Static in goyave.dev/goyave/v5

Static file serving using router.Static and osfs.FS allows clients to access any file on the host file system using relative paths because the requested path is not sanitized and . and .. segments are accepted. The files will be returned as a response, provided the system user running the Go application has read access to the requested file.

As a workaround, use fsutil.NewEmbed(embeddedFS) from the goyave.dev/goyave/v5/util/fsutil package to serve static content using Router.Static instead of &osfs.FS. Embedded file systems are rooted to the specified directory, making it impossible to navigate outside of the developers' intended directory.

Record
GO-2024-3293
Updated
2026-11-02

Affected packages

Affected packages
PackageAffectedFixed
goyave.dev/goyave/v5
Go
5.0.0 up to 5.5.0
5.5.0

History

History
RecordedChangedSources
first indexedOSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

GO-2024-3293 is a vulnerability with no CVSS score yet in goyave.dev/goyave/v5, published December 13, 2024. No source lists public exploit code. Fixed in goyave.dev/goyave/v5 5.5.0.

References

MoveEnter Open