hawk: Insecure file permissions
Description
Local attackers can escalate to root via insecure temporary file permissions in SUSE Linux Enterprise HA hawk2.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Local attackers can escalate to root via insecure temporary file permissions in SUSE Linux Enterprise HA hawk2.
Vulnerability
CVE-2021-25314 is a creation of temporary file with insecure permissions vulnerability in hawk2, the web interface for SUSE Linux Enterprise High Availability. The vulnerability exists in hawk/app/lib/invoker.rb and hawk/app/lib/crm_script.rb, where temporary files are created with world-writable permissions (File.chmod(0666, f.path)). These files can be modified by any local user. Affected versions are: SUSE Linux Enterprise High Availability 12-SP3 and 12-SP5 with hawk2 versions prior to 2.6.3+git.1614685906.812c31e9, and SUSE Linux Enterprise High Availability 15-SP2 with hawk2 versions prior to 2.6.3+git.1614684118.af555ad9. [1]
Exploitation
A local attacker with standard user access to the system can exploit the insecure temporary file permissions. In invoker.rb, an attacker can modify the temporary file used for a crm configure load update command, allowing arbitrary changes to the Cluster Information Base (CIB). In crm_script.rb, the attacker can modify a temporary file that is later passed to crm as a script; because crm is powerful and can be misused in various ways, this can lead to arbitrary command execution as root. No authentication beyond local access is required. [1]
Impact
Successful exploitation allows a local attacker to escalate privileges to root. By modifying temporary files used by hawk2, an attacker can manipulate cluster configuration or execute arbitrary commands with root privileges, leading to full compromise of the system and the high-availability cluster. [1]
Mitigation
SUSE has released fixed versions: hawk2-2.6.3+git.1614685906.812c31e9 for SLES HA 12-SP3 and 12-SP5, and hawk2-2.6.3+git.1614684118.af555ad9 for SLES HA 15-SP2. Users should update to these versions or later. No workaround is provided in the available references. [1]
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
12- osv-coords8 versionspkg: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.6.3+git.1614684118.af555ad9-lp152.2.18.1+ 7 more
- (no CPE)range: < 2.6.3+git.1614684118.af555ad9-lp152.2.18.1
- (no CPE)range: < 2.6.4+git.1682509819.1ff135ea-1.1
- (no CPE)range: < 2.6.3+git.1614685906.812c31e9-2.42.1
- (no CPE)range: < 2.6.3+git.1614685906.812c31e9-3.30.1
- (no CPE)range: < 2.6.3+git.1614685906.812c31e9-3.30.1
- (no CPE)range: < 2.6.3+git.1614684118.af555ad9-3.27.1
- (no CPE)range: < 2.6.3+git.1614684118.af555ad9-3.27.1
- (no CPE)range: < 2.6.3+git.1614684118.af555ad9-3.27.1
hawk2+ 2 more
- (no CPE)range: hawk2
- (no CPE)range: hawk2
- (no CPE)range: hawk2
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
1News mentions
0No linked articles in our index yet.