CVE-2020-15111Gofiber Fiber
Medium 5.4 No auth needed
Follow: this CVE · Gofiber · Gofiber Fiber We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.4
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 60
- Auth required
- No
- Published
- Jul 20, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
What happens
In Fiber before version 1.12.6, the filename that is given in c.Attachment() (https://docs.gofiber.io/ctx#attachment) is not escaped, and therefore vulnerable for a CRLF injection attack. I.e. an attacker could upload a custom filename and then give the link to the victim. With this filename, the attacker can change the name of the downloaded file, redirect to another site, change the authorization header, etc. A possible workaround is to serialize the input before passing it to ctx.Attachment().
What to do
- Apply the vendor's security update for Fiber.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gofiber/fiber |
< 1.12.6 |
1.12.6 |
go get github.com/gofiber/fiber@v1.12.6 |
| Go | github.com/gofiber/fiber |
< 1.12.6 |
1.12.6 |
go get github.com/gofiber/fiber@v1.12.6 |
Per OSV / GitHub Advisories (GHSA-9cx9-x2gp-9qvh, GO-2021-0108). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gofiber | fiber | < 1.12.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory