CVE-2017-1002201
Vulnerability in http://haml.info/ haml
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.
Exploitation
EPSS 1.45%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 73.6% of all scored CVEs. Scores of 26 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| haml |
affected All versions prior to version 5.0.0.beta.2
|
Is my server affected?
Find the installed version of haml and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i haml
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2017-1002201 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2017-1002201RHEL, Rocky, Alma, Fedora
rpm -q haml
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2017-1002201Alpine
apk list --installed | grep -i hamlWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2017-1002201
trivy image --scanners vuln IMAGE | grep CVE-2017-1002201
PatchBrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.
References
Advisories
- https://snyk.io/vuln/SNYK-RUBY-HAML-20362 snyk.io
- GLSA-202007-27 security.gentoo.org · vendor advisory
Other references
- https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2 github.com
- [debian-lts-announce] 20191110 [SECURITY] [DLA 1986-1] ruby-haml security update lists.debian.org · mailing list
- [debian-lts-announce] 20211229 [SECURITY] [DLA 2864-1] ruby-haml security update lists.debian.org · mailing list
Source: the record CVE-2017-1002201 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.