CVE-2020-15111: CRLF vulnerability in Fiber
Vulnerability summary
CVE-2020-15111 is a medium (CVSS 5.8) Injection vulnerability in gofiber fiber. EPSS estimates a 0.86% chance of exploitation in the next 30 days, higher than 58.1% of scored vulnerabilities.
Timeline
- 20-07-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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 metrics
4 scores · 3 sources · 2 versions- OSV · GoEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.86%
Chance of exploitation in the next 30 days
Percentile
58%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.86% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
- CWE-93Improper Neutralization of CRLF Sequences ('CRLF Injection')The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.
Affected systems
Github.com/gofiber1 product
- fiber< 1.12.6
Gofiber1 product
- fiber< 1.12.6
2 vendors · 2 products
References
7 links- github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvhX Refsource CONFIRMWEBThird Party Advisory
- github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56fX Refsource MISCPatchThird Party Advisory
- github.com/gofiber/fiberPACKAGE