Advisory

GO-2023-2052

Also known as: CVE-2023-41338, GHSA-3q5p-3558-364f

Summary

IsFromLocal local address check can be circumvented in github.com/gofiber/fiber/v2

Details

The Ctx.IsFromLocal function can incorrectly report a request as being sent from localhost when the request contains an X-Forwarded-For header containing a localhost IP address.

Severity

Not rated by the source.

Dates

Published
2023-09-12 17:31 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/gofiber/fiber/v2

Go · All systems

Affected

  • introduced 0, fixed 2.49.2-0.20230906112033-b8c9ede6efa2 (semver)

Fixed versions

2.49.2-0.20230906112033-b8c9ede6efa2

Fix

  • Fixed version 2.49.2-0.20230906112033-b8c9ede6efa2
    go get github.com/gofiber/fiber/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences