Medium severity · published Jul 20, 2020
CVE-2020-15111
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…
5.4
CVSS
0.9%
EPSS
No
On KEV
Description
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().
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 58% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FI
Fiber · Gofiber
before 1.12.6 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-15111
CVE.org
https://www.cve.org/CVERecord?id=CVE-2020-15111
Patch
https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f
Third Party Advisory
https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh
More from Fiber
9.8
CVE-2024-38513
Fiber Session Middleware Token Injection Vulnerability
9.8
CVE-2024-25124
Fiber is a web framework written in go
9.4
CVE-2025-66630
Fiber insecurely fallsback in utils.UUIDv4() / utils.UUID() — predictable / zero‑UUID on crypto/rand failure
8.8
CVE-2023-45141
Fiber is an express inspired web framework written in Go
8.8
CVE-2023-45128
Fiber is an express inspired web framework written in Go
