ruby-secure-headers: CVE-2020-5217

Related Vulnerabilities: CVE-2020-5217  

Debian Bug report logs - #949999
ruby-secure-headers: CVE-2020-5217

version graph

Reported by: Salvatore Bonaccorso <carnil@debian.org>

Date: Tue, 28 Jan 2020 07:48:04 UTC

Severity: important

Tags: security, upstream

Found in version ruby-secure-headers/6.1.1-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, carnil@debian.org, team@security.debian.org, team@security.debian.org, Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>:
Bug#949999; Package src:ruby-secure-headers. (Tue, 28 Jan 2020 07:48:05 GMT) (full text, mbox, link).


Acknowledgement sent to Salvatore Bonaccorso <carnil@debian.org>:
New Bug report received and forwarded. Copy sent to carnil@debian.org, team@security.debian.org, team@security.debian.org, Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>. (Tue, 28 Jan 2020 07:48:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Salvatore Bonaccorso <carnil@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ruby-secure-headers: CVE-2020-5217
Date: Tue, 28 Jan 2020 08:45:37 +0100
Source: ruby-secure-headers
Version: 6.1.1-1
Severity: important
Tags: security upstream

Hi,

The following vulnerability was published for ruby-secure-headers.

CVE-2020-5217[0]:
| In Secure Headers (RubyGem secure_headers), a directive injection
| vulnerability is present in versions before 3.8.0, 5.1.0, and 6.2.0.
| If user-supplied input was passed into
| append/override_content_security_policy_directives, a semicolon could
| be injected leading to directive injection. This could be used to e.g.
| override a script-src directive. Duplicate directives are ignored and
| the first one wins. The directives in secure_headers are sorted
| alphabetically so they pretty much all come before script-src. A
| previously undefined directive would receive a value even if
| SecureHeaders::OPT_OUT was supplied. The fixed versions will silently
| convert the semicolons to spaces and emit a deprecation warning when
| this happens. This will result in innocuous browser console messages
| if being exploited/accidentally used. In future releases, we will
| raise application errors resulting in 500s. Depending on what major
| version you are using, the fixed versions are 6.2.0, 5.1.0, 3.8.0.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2020-5217
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-5217

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jan 29 06:22:44 2020; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.