UBUNTU-CVE-2020-5216

Source
https://ubuntu.com/security/CVE-2020-5216
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-5216.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2020-5216
Related
Published
2020-01-23T03:15:00Z
Modified
2024-10-15T14:07:54Z
Severity
  • 5.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N CVSS Calculator
Summary
[none]
Details

In Secure Headers (RubyGem secureheaders), 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/overridecontentsecuritypolicy_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.

References

Affected packages

Ubuntu:Pro:18.04:LTS / ruby-secure-headers

Package

Name
ruby-secure-headers
Purl
pkg:deb/ubuntu/ruby-secure-headers?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.7.1-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / ruby-secure-headers

Package

Name
ruby-secure-headers
Purl
pkg:deb/ubuntu/ruby-secure-headers?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

6.*

6.0.0-1
6.1.1-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}