{"id":"CVE-2020-15111","published":"2020-07-20T17:40:14Z","modified":"2024-08-04T13:08:21Z","title":"CRLF vulnerability in Fiber","vendor":"gofiber","product":"fiber","tier":"tail","description":{"text":"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().","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00861,"percentile":0.59423,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"},{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":11.88},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"gofiber","affectedVersions":[{"vendor":"gofiber","product":"fiber","versions":["< 1.12.6"]}],"affected":[{"ecosystem":"Go","package":"github.com/gofiber/fiber","vulnerableRanges":["<1.12.6"],"patched":["1.12.6"],"from":["GHSA-9cx9-x2gp-9qvh","GO-2021-0108"],"provenance":"source"}],"summary":{"text":"The CRLF injection flaw affects the fiber product from gofiber, in the c.Attachment() method, which does not escape the filename it is given. An attacker who can supply a custom filename and get a victim to follow a crafted link can inject CRLF sequences to alter the downloaded file's name, redirect the user elsewhere, or change the authorization header, and this requires user interaction and an application that passes untrusted filenames to c.Attachment().","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:06Z"},"euvd":{"id":"EUVD-2021-1299","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gofiber-fiber-cve-2020-15111","children":[{"from":"CVE-2020-15111","to":"CVE-2023-41338","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ctx.go"],"commits":["https://github.com/gofiber/fiber/commit/f698b5d5066cfe594102ae252cd58a1fe57cf56f","https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc"],"basis":"rarely changed file"}]}]}}