National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2020-5216 Detail

Current Description

In Secure Headers (RubyGem secure_headers), a directive injection vulnerability is present in versions before 3.9.0, 5.2.0, and 6.3.0. If user-supplied input was passed into append/override_content_security_policy_directives, a newline could be injected leading to limited header injection. Upon seeing a newline in the header, rails will silently create a new Content-Security-Policy header with the remaining value of the original string. It will continue to create new headers for each newline. This has been fixed in 6.3.0, 5.2.0, and 3.9.0.

Source:  MITRE
View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score: 5.8 MEDIUM
Vector:  CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

Nist CVSS score does not match with CNA score
CNA:  security-advisories@github.com
Base Score: 4.4 MEDIUM
Vector:  CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
https://github.com/twitter/secure_headers/commit/301695706f6a70517c2a90c6ef9b32178440a2d0 Patch
https://github.com/twitter/secure_headers/security/advisories/GHSA-w978-rmpf-qmwg Exploit Mitigation Third Party Advisory

Weakness Enumeration

CWE-ID CWE Name Source
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') NIST  
CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting') security-advisories@github.com  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:*
     Show Matching CPE(s)
Up to (excluding)
3.9.0
 cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:*
     Show Matching CPE(s)
From (including)
5.0.0
Up to (excluding)
5.2.0
 cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:*
     Show Matching CPE(s)
From (including)
6.0.0
Up to (excluding)
6.3.0


Change History

2 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2020-5216
NVD Published Date:
01/22/2020
NVD Last Modified:
02/18/2020