Vulnerability Name:

CVE-2018-3740 (CCN-140740)

Assigned:2017-12-28
Published:2018-03-19
Updated:2018-12-28
Summary:A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.
CVSS v3 Severity:7.5 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
7.2 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N/E:H/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): High
Availibility (A): None
6.1 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
5.8 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:H/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
5.5 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:P/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-20
Vulnerability Consequences:Cross-Site Scripting
References:Source: MITRE
Type: CNA
CVE-2018-3740

Source: CCN
Type: oss-sec Mailing List, Mon, 19 Mar 2018 21:13:56 -0700
Re: Sanitize <= 4.6.2 HTML injection and XSS

Source: CONFIRM
Type: UNKNOWN
https://about.gitlab.com/2018/06/25/security-release-gitlab-11-dot-0-dot-1-released/

Source: XF
Type: UNKNOWN
sanitize-cve20183740-xss(140740)

Source: CONFIRM
Type: Patch, Third Party Advisory
https://github.com/rgrove/sanitize/commit/01629a162e448a83d901456d0ba8b65f3b03d46e

Source: CCN
Type: Sanitize GIT Repository
[CVE-2018-3740] Sanitize HTML injection vulnerability #176

Source: CONFIRM
Type: Issue Tracking, Third Party Advisory
https://github.com/rgrove/sanitize/issues/176

Source: DEBIAN
Type: UNKNOWN
DSA-4358

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2018-3740

Vulnerable Configuration:Configuration 1:
  • cpe:/a:sanitize_project:sanitize:*:*:*:*:*:ruby:*:* (Version <= 4.6.0)

  • Configuration CCN 1:
  • cpe:/a:sanitize_project:sanitize:4.6.2:*:*:*:*:ruby:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:7799
    P
    ruby2.5-rubygem-nokogiri-1.8.5-150400.14.3.1 on GA media (Moderate)
    2023-06-12
    oval:org.opensuse.security:def:3193
    P
    libjavascriptcoregtk-4_0-18-2.24.4-2.47.1 on GA media (Moderate)
    2022-06-28
    oval:org.opensuse.security:def:94823
    P
    ruby2.5-rubygem-nokogiri-1.8.5-150400.12.4 on GA media (Moderate)
    2022-06-22
    oval:org.opensuse.security:def:303
    P
    ruby2.5-rubygem-nokogiri-1.8.5-3.6.1 on GA media (Moderate)
    2022-06-13
    oval:org.opensuse.security:def:357
    P
    ruby2.5-rubygem-nokogiri-1.8.5-150400.12.4 on GA media (Moderate)
    2022-06-10
    oval:org.opensuse.security:def:1232
    P
    Security update for the Linux Kernel (Important)
    2022-01-19
    oval:org.opensuse.security:def:72062
    P
    ruby2.5-rubygem-nokogiri-1.8.5-3.6.1 on GA media (Moderate)
    2021-08-09
    oval:org.opensuse.security:def:62321
    P
    ruby2.5-rubygem-nokogiri-1.8.5-3.6.1 on GA media (Moderate)
    2021-08-09
    oval:org.opensuse.security:def:101079
    P
    ruby2.5-rubygem-nokogiri-1.8.5-3.6.1 on GA media (Moderate)
    2021-08-09
    oval:com.ubuntu.artful:def:20183740000
    V
    CVE-2018-3740 on Ubuntu 17.10 (artful) - untriaged.
    2018-03-30
    oval:com.ubuntu.cosmic:def:201837400000000
    V
    CVE-2018-3740 on Ubuntu 18.10 (cosmic) - untriaged.
    2018-03-30
    oval:com.ubuntu.bionic:def:20183740000
    V
    CVE-2018-3740 on Ubuntu 18.04 LTS (bionic) - untriaged.
    2018-03-30
    oval:com.ubuntu.bionic:def:201837400000000
    V
    CVE-2018-3740 on Ubuntu 18.04 LTS (bionic) - untriaged.
    2018-03-30
    oval:com.ubuntu.cosmic:def:20183740000
    V
    CVE-2018-3740 on Ubuntu 18.10 (cosmic) - untriaged.
    2018-03-30
    oval:com.ubuntu.xenial:def:201837400000000
    V
    CVE-2018-3740 on Ubuntu 16.04 LTS (xenial) - untriaged.
    2018-03-30
    oval:com.ubuntu.xenial:def:20183740000
    V
    CVE-2018-3740 on Ubuntu 16.04 LTS (xenial) - untriaged.
    2018-03-30
    BACK
    sanitize_project sanitize *
    sanitize_project sanitize 4.6.2