CVE-2020-15111
MEDIUM 5.4CVSS 3.1CRLF vulnerability in Fiber
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().
- Published
- 20 Jul 2020
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-74CWE-93
- Also known as
- GHSA-9cx9-x2gp-9qvhGO-2021-0108
- Sources
- NVDJSONOSV GHSA-9cx9-x2gp-9qvhJSONOSV GO-2021-0108JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gofiber | fibercpe:2.3:a:gofiber:fiber:*:*:*:*:*:*:*:* |
< 1.12.6 | 1.12.6 |
| OSV | Go | github.com/gofiber/fiber | < 1.12.6 | 1.12.6 |
References
- https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f · Patch, Third Party Advisory
- https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-15111 · ADVISORY
- https://github.com/gofiber/fiber/pull/579 · WEB, FIX
- https://github.com/gofiber/fiber/commit/f698b5d5066cfe594102ae252cd58a1fe57cf56f · WEB, FIX
- https://github.com/gofiber/fiber · PACKAGE
- https://pkg.go.dev/vuln/GO-2021-0108 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 20 Jul 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jul 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 29 Jun 2021)