CVE-2020-15111 json
CRLF vulnerability in Fiber
published 2020-07-20 6 y ago modified 2026-07-08 4 mo ago also GHSA-9cx9-x2gp-9qvh , GO-2021-0108 , EUVD-2021-1299
- cvss
- 4.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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().
Patch / fix
- go github.com/gofiber/fiber 1.12.6
- gofiber fiber 1.12.6
- github.com/gofiber/fiber#579 commit
- github.com/gofiber/fiber@f698b5d commit
- github.com/gofiber/fiber#579 pull request
Exploit prediction
0.86% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 2.0 | 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
| GitHub | 3.1 | 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/gofiber/fiber | <1.12.6 |
1.12.6 |
Affected products
- gofiber fiber
Classification
References
-
github.com
/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f
patch, third-party-advisory
-
github.com
/gofiber/fiber/pull/579
web, patch
-
github.com
/gofiber/fiber/commit/f698b5d5066cfe594102ae252cd58a1fe57cf56f
web, patch
-
github.com
/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-15111
advisory
-
github.com
/gofiber/fiber
package
-
pkg.go.dev
/vuln/GO-2021-0108
web
Sources
- CVE List CVE-2020-15111
- GitHub Advisory GHSA-9cx9-x2gp-9qvh
- NVD CVE-2020-15111
- OSV GO-2021-0108
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.