cve.bz

CVE-2020-15111

5.4 mediumEPSS 0.9%

Medium (5.4) in gofiber fiber. EPSS 0.9% chance of exploitation in the next 30 days. Fixed in github.com/gofiber/fiber 1.12.6.

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().

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS
0.9% chance of exploitation in the next 30 days; higher than 58% of CVEs (scores of 2026-10-31)
CWEs
CWE-74, CWE-93
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9cx9-x2gp-9qvhGogithub.com/gofiber/fiber<1.12.61.12.6
GO-2021-0108Gogithub.com/gofiber/fiber<1.12.61.12.6

References

Check your stackJSON