CVE-2020-35458
Description
Unauthenticated remote attackers can execute arbitrary shell commands as the hauser user by sending a crafted hawk_remember_me_id cookie to affected Hawk 2.x (up to 2.3.0-x) web interfaces.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Unauthenticated remote attackers can execute arbitrary shell commands as the hauser user by sending a crafted hawk_remember_me_id cookie to affected Hawk 2.x (up to 2.3.0-x) web interfaces.
Vulnerability
A Ruby shell code injection vulnerability exists in ClusterLabs Hawk 2.x through version 2.3.0-x. The hawk_remember_me_id cookie value is passed unquoted and unfiltered into a shell command using Ruby's %x{} construct (or similar shell execution pattern) during the logout routine and the login-from-cookie path. This allows an attacker to inject arbitrary shell metacharacters via the cookie value. All Hawk versions from 2.2 up to and including 2.3.0-x are affected [1][2][3].
Exploitation
An unauthenticated remote attacker can trigger the vulnerable code path by making an HTTP request to /logout (or /login with the login_from_cookie parameter) and supplying a malicious hawk_remember_me_id cookie value containing shell injection payloads. No prior authentication or user interaction is required. The cookie value is directly interpolated into a command line string without sanitization, allowing the attacker to append arbitrary commands [2][3].
Impact
Successful exploitation allows the attacker to execute arbitrary system commands with the privileges of the hauser user (the account under which the Hawk web server runs). This results in full compromise of the Hawk service and can be leveraged to attack the underlying Pacemaker/Corosync cluster infrastructure. The impact includes remote code execution (RCE) and privilege escalation from unauthenticated network access to code execution as hauser [2][3].
Mitigation
A fix was released on 2021-01-12 in hawk2 versions 2.4.0+git.1607523195.05cd3222 (for SLE 12-SP4/SP5) and 2.3.0+git.1603969748.10468582 (for SLE 15/SP1/SP2) [1][4]. The advisory recommends upgrading to these fixed versions. No workaround is available. The vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
11- ClusterLabs/Hawkdescription
- Range: >= 2.0, <= 2.3.0-x
- osv-coords9 versionspkg:rpm/opensuse/hawk2&distro=openSUSE%20Leap%2015.1pkg:rpm/opensuse/hawk2&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/hawk2&distro=openSUSE%20Tumbleweedpkg:rpm/suse/hawk2&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP3pkg:rpm/suse/hawk2&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP4pkg:rpm/suse/hawk2&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2012%20SP5pkg:rpm/suse/hawk2&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015pkg:rpm/suse/hawk2&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP1pkg:rpm/suse/hawk2&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP2
< 2.3.0+git.1603969748.10468582-lp151.2.18.1+ 8 more
- (no CPE)range: < 2.3.0+git.1603969748.10468582-lp151.2.18.1
- (no CPE)range: < 2.3.0+git.1603969748.10468582-lp152.2.9.1
- (no CPE)range: < 2.6.4+git.1682509819.1ff135ea-1.1
- (no CPE)range: < 2.4.0+git.1607523195.05cd3222-2.33.1
- (no CPE)range: < 2.4.0+git.1607523195.05cd3222-3.21.1
- (no CPE)range: < 2.4.0+git.1607523195.05cd3222-3.21.1
- (no CPE)range: < 2.3.0+git.1603969748.10468582-3.18.1
- (no CPE)range: < 2.3.0+git.1603969748.10468582-3.18.1
- (no CPE)range: < 2.3.0+git.1603969748.10468582-3.18.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
4- www.openwall.com/lists/oss-security/2021/01/12/3mitremailing-listx_refsource_MLIST
- bugzilla.suse.com/show_bug.cgimitrex_refsource_MISC
- github.com/ClusterLabs/hawk/releasesmitrex_refsource_MISC
- www.openwall.com/lists/oss-security/2021/01/12/3mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.