6.1
MEDIUM CVSS 3.1
CVE-2017-1002201
Rails HAML 'Attribute Injection' Flaw
Description

In haml versions prior to version 5.0.0.beta.2, when using user input to perform tasks on the server, characters like < > " ' must be escaped properly. In this case, the ' character was missed. An attacker can manipulate the input to introduce additional attributes, potentially executing code.

INFO

Published Date :

Oct. 15, 2019, 6:15 p.m.

Last Modified :

Nov. 21, 2024, 3:04 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2017-1002201 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Debian debian_linux
1 Haml haml
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
Upgrade the ruby-haml package to address an attribute injection vulnerability.
  • Upgrade the ruby-haml package.
  • If running Debian, upgrade to version 4.0.7-1+deb9u1 or later.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2017-1002201.

URL Resource
https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2 Patch Third Party Advisory
https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html Mailing List Third Party Advisory
https://security.gentoo.org/glsa/202007-27 Third Party Advisory
https://snyk.io/vuln/SNYK-RUBY-HAML-20362 Exploit Patch Third Party Advisory
https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2 Patch Third Party Advisory
https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html Mailing List Third Party Advisory
https://security.gentoo.org/glsa/202007-27 Third Party Advisory
https://snyk.io/vuln/SNYK-RUBY-HAML-20362 Exploit Patch Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2017-1002201 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2017-1002201 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2017-1002201 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2017-1002201 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2
    Added Reference https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html
    Added Reference https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html
    Added Reference https://security.gentoo.org/glsa/202007-27
    Added Reference https://snyk.io/vuln/SNYK-RUBY-HAML-20362
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Apr. 05, 2022

    Action Type Old Value New Value
    Changed Reference Type https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2 Patch https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2 Patch, Third Party Advisory
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html No Types Assigned https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html Mailing List, Third Party Advisory
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html No Types Assigned https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html Mailing List, Third Party Advisory
    Changed Reference Type https://security.gentoo.org/glsa/202007-27 No Types Assigned https://security.gentoo.org/glsa/202007-27 Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:a:haml:haml:*:*:*:*:*:ruby:*:* versions up to (excluding) 5.0.0 *cpe:2.3:a:haml:haml:5.0.0:-:*:*:*:ruby:*:* OR *cpe:2.3:a:haml:haml:*:*:*:*:*:ruby:*:* versions up to (excluding) 5.0.0
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Dec. 29, 2021

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 27, 2020

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/202007-27 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 10, 2019

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html [No Types Assigned]
  • Initial Analysis by [email protected]

    Oct. 18, 2019

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:N/I:P/A:N)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2 No Types Assigned https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2 Patch
    Changed Reference Type https://snyk.io/vuln/SNYK-RUBY-HAML-20362 No Types Assigned https://snyk.io/vuln/SNYK-RUBY-HAML-20362 Exploit, Patch, Third Party Advisory
    Added CWE NIST CWE-79
    Added CPE Configuration OR *cpe:2.3:a:haml:haml:*:*:*:*:*:ruby:*:* versions up to (excluding) 5.0.0 *cpe:2.3:a:haml:haml:5.0.0:-:*:*:*:ruby:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 6.1
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 4.3
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.82 }} -0.00%

score

0.72391

percentile