{"cve":"CVE-2020-15111","nvd":{"published":"2020-07-20T18:15:12.000","modified":"2026-06-17T02:56:04.517","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4},"cwes":["CWE-74","CWE-93"],"references":["https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f","https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh","https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f","https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh"],"products":["gofiber:fiber"],"source":"nvd","synced_at":"2026-10-19T21:06:22.076270124+00:00"},"epss":{"cve":"CVE-2020-15111","score":0.00861,"percentile":0.58558,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9cx9-x2gp-9qvh","url":"https://osv.dev/vulnerability/GHSA-9cx9-x2gp-9qvh","summary":"CRLF vulnerability in Fiber","modified":"2026-07-08T06:53:05.546976146Z","packages":[{"ecosystem":"Go","name":"github.com/gofiber/fiber","purl":"pkg:golang/github.com/gofiber/fiber","ranges":["<1.12.6"],"fixed":["1.12.6"]}]},{"id":"GO-2021-0108","url":"https://osv.dev/vulnerability/GO-2021-0108","summary":"CRLF vulnerability in Fiber in github.com/gofiber/fiber","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/gofiber/fiber","purl":"pkg:golang/github.com/gofiber/fiber","ranges":["<1.12.6"],"fixed":["1.12.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}