CVE-2020-5216
Published Jan 23, 2020
Last updated 5 years ago
Overview
- 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
- security-advisories@github.com
- NVD status
- Analyzed
Social media
- Hype score
- Not currently trending
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 5.8
- Impact score
- 1.4
- Exploitability score
- 3.9
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
- Severity
- MEDIUM
CVSS 2.0
- Type
- Primary
- Base score
- 5
- Impact score
- 2.9
- Exploitability score
- 10
- Vector string
- AV:N/AC:L/Au:N/C:N/I:P/A:N
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:*", "vulnerable": true, "matchCriteriaId": "A7C8E5CD-3CF2-439D-991F-EC4F561AF149", "versionEndExcluding": "3.9.0" }, { "criteria": "cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:*", "vulnerable": true, "matchCriteriaId": "8EE2D852-886F-4500-8B6A-6CD4313BE0A6", "versionEndExcluding": "5.2.0", "versionStartIncluding": "5.0.0" }, { "criteria": "cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:*", "vulnerable": true, "matchCriteriaId": "4C13DFD4-1B3B-4373-9048-82BBB0C594C9", "versionEndExcluding": "6.3.0", "versionStartIncluding": "6.0.0" } ], "operator": "OR" } ] } ]