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.
References (5)
Core 5
Core References
Patch, Third Party Advisory x_refsource_misc
https://github.com/haml/haml/commit/18576ae6e9bdcb4303fdbe6b3199869d289d67c2
Exploit, Patch, Third Party Advisory x_refsource_confirm
https://snyk.io/vuln/SNYK-RUBY-HAML-20362
Mailing List, Third Party Advisory mailing-list
x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2019/11/msg00007.html
Third Party Advisory vendor-advisory
x_refsource_gentoo
https://security.gentoo.org/glsa/202007-27
Mailing List, Third Party Advisory mailing-list
x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2021/12/msg00028.html
Scores
CVSS v3
6.1
EPSS
0.0083
EPSS Percentile
74.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Details
CWE
CWE-79
Status
published
Products (4)
debian/debian_linux
8.0
debian/debian_linux
9.0
haml/haml
< 5.0.0
rubygems/haml
0 - 5.0.0RubyGems
Published
Oct 15, 2019
Tracked Since
Feb 18, 2026