CVE-2020-5247
CVSS V2 Medium 5
CVSS V3 High 7.5
Description
In Puma (RubyGem) before 4.3.2 and before 3.12.3, if an application using Puma allows untrusted input in a response header, an attacker can use newline characters (i.e. `CR`, `LF` or`/r`, `/n`) to end the header and inject malicious content, such as additional headers or an entirely new response body. This vulnerability is known as HTTP Response Splitting. While not an attack in itself, response splitting is a vector for several other attacks, such as cross-site scripting (XSS). This is related to CVE-2019-16254, which fixed this vulnerability for the WEBrick Ruby web server. This has been fixed in versions 4.3.2 and 3.12.3 by checking all headers for line endings and rejecting headers with those characters.
Overview
- CVE ID
- CVE-2020-5247
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2020-02-28T17:15:12
- Last Modified Date
- 2022-10-12T13:35:37
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:puma:puma:*:*:*:*:*:ruby:*:* | 1 | OR | 3.12.3 | |
cpe:2.3:a:puma:puma:*:*:*:*:*:ruby:*:* | 1 | OR | 4.0.0 | 4.3.2 |
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | 1 | OR | 2.3.0 | |
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | 1 | OR | 2.4.0 | 2.4.7 |
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | 1 | OR | 2.5.0 | 2.5.6 |
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | 1 | OR | 2.6.0 | 2.6.4 |
cpe:2.3:a:ruby-lang:ruby:2.7.0:preview1:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:N/C:N/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- NONE
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 5
- Severity
- MEDIUM
- Exploitability Score
- 10
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- NONE
- Availability Impact
- NONE
- Base Score
- 7.5
- Base Severity
- HIGH
- Exploitability Score
- 3.9
- Impact Score
- 3.6
References
Reference URL | Reference Tags |
---|---|
https://github.com/puma/puma/security/advisories/GHSA-84j7-475p-hp8v | Mitigation Third Party Advisory |
https://lists.debian.org/debian-lts-announce/2022/05/msg00034.html | Mailing List Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BMJ3CGZ3DLBJ5WUUKMI5ZFXFJQMXJZIK/ | Mailing List Patch Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DIHVO3CQMU7BZC7FCTSRJ33YDNS3GFPK/ | Mailing List Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NJ3LL5F5QADB6LM46GXZETREAKZMQNRD/ | Mailing List Third Party Advisory |
https://owasp.org/www-community/attacks/HTTP_Response_Splitting | Third Party Advisory |
https://www.ruby-lang.org/en/news/2019/10/01/http-response-splitting-in-webrick-cve-2019-16254 | Vendor Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2020-5247 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-5247 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 16:45:00 | Added to TrackCVE | |||
2022-12-04 11:54:46 | 2020-02-28T17:15Z | 2020-02-28T17:15:12 | CVE Published Date | updated |
2022-12-04 11:54:46 | 2022-10-12T13:35:37 | CVE Modified Date | updated | |
2022-12-04 11:54:46 | Analyzed | Vulnerability Status | updated | |
2022-12-04 11:54:50 | References | updated |