CVE-2020-15111
CVSS V2 Medium 5.8
CVSS V3 Medium 5.4
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().
Overview
- CVE ID
- CVE-2020-15111
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2020-07-20T18:15:12
- Last Modified Date
- 2021-10-07T17:14:07
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:gofiber:fiber:*:*:*:*:*:*:*:* | 1 | OR | 1.12.6 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:P/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 5.8
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 4.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- UNCHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 5.4
- Base Severity
- MEDIUM
- Exploitability Score
- 2.8
- Impact Score
- 2.5
References
Reference URL | Reference Tags |
---|---|
https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh | Third Party Advisory |
https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f | Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2020-15111 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15111 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 06:52:10 | Added to TrackCVE | |||
2022-12-04 20:03:54 | 2020-07-20T18:15Z | 2020-07-20T18:15:12 | CVE Published Date | updated |
2022-12-04 20:03:54 | 2021-10-07T17:14:07 | CVE Modified Date | updated | |
2022-12-04 20:03:54 | Analyzed | Vulnerability Status | updated |