# CVE-2020-15111: CRLF vulnerability in Fiber

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 56% of CVEs (2026-11-30)
- Published: 2020-07-20T17:40:14.000Z
- Modified: 2026-07-08T06:53:05.546Z
- Also known as: GHSA-9cx9-x2gp-9qvh, GO-2021-0108
- Weaknesses: CWE-74, CWE-93
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- gofiber fiber: < 1.12.6; before 1.12.6
- github.com/gofiber/fiber (Go): before 1.12.6

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: 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`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh> (third-party-advisory, web)
- <https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f> (patch, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15111> (advisory)
- <https://github.com/gofiber/fiber/pull/579> (fix, web)
- <https://github.com/gofiber/fiber/commit/f698b5d5066cfe594102ae252cd58a1fe57cf56f> (fix, web)
- <https://github.com/gofiber/fiber> (package)
- <https://pkg.go.dev/vuln/GO-2021-0108> (web)

## Sources

- CVE List: [CVE-2020-15111](https://www.cve.org/CVERecord?id=CVE-2020-15111), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-9cx9-x2gp-9qvh](https://github.com/advisories/GHSA-9cx9-x2gp-9qvh), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2021-0108](https://pkg.go.dev/vuln/GO-2021-0108), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2020-15111](https://nvd.nist.gov/vuln/detail/CVE-2020-15111), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15111 · Whole record: https://cve.day/CVE-2020-15111.json · Rebuilt by cve.day 2026-11-25T22:57:53.567Z
