Live threats

All CVEs / Gofiber

CVE-2020-15111Gofiber Fiber

Medium 5.4 No auth needed

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
Weakness (CWE)
CWE-74, CWE-93
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().

Original NVD text.

What to do

  1. Apply the vendor's security update for Fiber.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gofiberfiber< 1.12.6

Official sources

References

Links published by the sources. Open them with care.