{"id":"CVE-2021-25314","aliases":["EUVD-2021-12213","GHSA-4f3q-6cq7-8w4p","SUSE-SU-2021:0941-1","SUSE-SU-2021:0942-1","SUSE-SU-2021:0943-1","openSUSE-SU-2021:0473-1","openSUSE-SU-2024:12952-1"],"status":"published","title":"hawk: Insecure file permissions","description":"A Creation of Temporary File With Insecure Permissions vulnerability in hawk2 of SUSE Linux Enterprise High Availability 12-SP3, SUSE Linux Enterprise High Availability 12-SP5, SUSE Linux Enterprise High Availability 15-SP2 allows local attackers to escalate to root. This issue affects: SUSE Linux Enterprise High Availability 12-SP3 hawk2 versions prior to 2.6.3+git.1614685906.812c31e9. SUSE Linux Enterprise High Availability 12-SP5 hawk2 versions prior to 2.6.3+git.1614685906.812c31e9. SUSE Linux Enterprise High Availability 15-SP2 hawk2 versions prior to 2.6.3+git.1614684118.af555ad9.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00378,"percentile":0.32122,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-378","CWE-668"],"published":"2021-03-24T11:26:08Z","modified":"2026-06-17T03:41:48Z","affected":[{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Availability Extension 15","package":"hawk2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.3+git.1614684118.af555ad9-3.27.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP1","package":"hawk2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.3+git.1614684118.af555ad9-3.27.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP2","package":"hawk2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.3+git.1614684118.af555ad9-3.27.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP4","package":"hawk2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.3+git.1614685906.812c31e9-3.30.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP5","package":"hawk2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.3+git.1614685906.812c31e9-3.30.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Availability Extension 12 SP3","package":"hawk2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.3+git.1614685906.812c31e9-2.42.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.2","package":"hawk2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.3+git.1614684118.af555ad9-lp152.2.18.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"hawk2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.4+git.1682509819.1ff135ea-1.1"}]}],"bundled":3}],"products":[{"vendor":"suse","product":"hawk2"},{"vendor":"suse","product":"suse linux enterprise high availability 12-sp3"},{"vendor":"suse","product":"suse linux enterprise high availability 12-sp5"},{"vendor":"suse","product":"suse linux enterprise high availability 15-sp2"}],"references":[{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1182166","tags":["x_transferred","Exploit","Issue Tracking","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25314"},{"url":"https://github.com/advisories/GHSA-4f3q-6cq7-8w4p"},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20210941-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1179999","tags":["report"]},{"url":"https://bugzilla.suse.com/1182165","tags":["report"]},{"url":"https://bugzilla.suse.com/1182166","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2020-35459","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-25314","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20210942-1/","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20210943-1/","tags":["advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/P6Y6RW5YXKZSLM7CRGCZD5EXRQATEN6Q/","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2020-35458","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-25314","title":"hawk: Insecure file permissions","description":"A Creation of Temporary File With Insecure Permissions vulnerability in hawk2 of SUSE Linux Enterprise High Availability 12-SP3, SUSE Linux Enterprise High Availability 12-SP5, SUSE Linux Enterprise High Availability 15-SP2 allows local attackers to escalate to root. This issue affects: SUSE Linux Enterprise High Availability 12-SP3 hawk2 versions prior to 2.6.3+git.1614685906.812c31e9. SUSE Linux Enterprise High Availability 12-SP5 hawk2 versions prior to 2.6.3+git.1614685906.812c31e9. SUSE Linux Enterprise High Availability 15-SP2 hawk2 versions prior to 2.6.3+git.1614684118.af555ad9.","status":"published","published":"2021-04-14T15:00:17.561Z","modified":"2024-09-17T01:35:35.573Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-378"],"updated_at":"2026-11-02T14:32:59.802172Z"}],"euvd":[{"id":"EUVD-2021-12213","description":"A Creation of Temporary File With Insecure Permissions vulnerability in hawk2 of SUSE Linux Enterprise High Availability 12-SP3, SUSE Linux Enterprise High Availability 12-SP5, SUSE Linux Enterprise High Availability 15-SP2 allows local attackers to escalate to root. This issue affects: SUSE Linux Enterprise High Availability 12-SP3 hawk2 versions prior to 2.6.3+git.1614685906.812c31e9. SUSE Linux Enterprise High Availability 12-SP5 hawk2 versions prior to 2.6.3+git.1614685906.812c31e9. SUSE Linux Enterprise High Availability 15-SP2 hawk2 versions prior to 2.6.3+git.1614684118.af555ad9.","status":"published","published":"2021-04-14T15:00:17Z","modified":"2024-09-17T01:35:35Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:28:48.402396Z"}],"ghsa":[{"id":"GHSA-4f3q-6cq7-8w4p","title":"A Creation of Temporary File With Insecure Permissions vulnerability in hawk2 of SUSE Linux...","description":"A Creation of Temporary File With Insecure Permissions vulnerability in hawk2 of SUSE Linux Enterprise High Availability 12-SP3, SUSE Linux Enterprise High Availability 12-SP5, SUSE Linux Enterprise High Availability 15-SP2 allows local attackers to escalate to root. This issue affects: SUSE Linux Enterprise High Availability 12-SP3 hawk2 versions prior to 2.6.3+git.1614685906.812c31e9. SUSE Linux Enterprise High Availability 12-SP5 hawk2 versions prior to 2.6.3+git.1614685906.812c31e9. SUSE Linux Enterprise High Availability 15-SP2 hawk2 versions prior to 2.6.3+git.1614684118.af555ad9.","status":"published","published":"2022-05-24T17:47:33Z","modified":"2023-01-27T05:05:40Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-378","CWE-668"],"updated_at":"2026-11-02T14:42:44.481749Z"}],"nvd":[{"id":"CVE-2021-25314","description":"A Creation of Temporary File With Insecure Permissions vulnerability in hawk2 of SUSE Linux Enterprise High Availability 12-SP3, SUSE Linux Enterprise High Availability 12-SP5, SUSE Linux Enterprise High Availability 15-SP2 allows local attackers to escalate to root. This issue affects: SUSE Linux Enterprise High Availability 12-SP3 hawk2 versions prior to 2.6.3+git.1614685906.812c31e9. SUSE Linux Enterprise High Availability 12-SP5 hawk2 versions prior to 2.6.3+git.1614685906.812c31e9. SUSE Linux Enterprise High Availability 15-SP2 hawk2 versions prior to 2.6.3+git.1614684118.af555ad9.","status":"published","published":"2021-04-14T15:15:13.517Z","modified":"2026-06-17T03:41:48.72Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-378","CWE-668"],"updated_at":"2026-11-02T14:06:51.610648Z"}],"osv":[{"id":"openSUSE-SU-2021:0473-1","title":"Security update for hawk2","description":"This update for hawk2 fixes the following issues:\n\n- Update to version 2.6.3:\n  * Remove hawk_invoke and use capture3 instead of runas (bsc#1179999)(CVE-2020-35459)\n  * Remove unnecessary chmod (bsc#1182166)(CVE-2021-25314) \n  * Sanitize filename to contains whitelist of alphanumeric (bsc#1182165)\n\nThis update was imported from the SUSE:SLE-15:Update update project.","status":"published","published":"2021-03-25T08:11:45Z","modified":"2026-02-04T02:22:35.072736Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2024:12952-1","title":"hawk2-2.6.4+git.1682509819.1ff135ea-1.1 on GA media","description":"These are all security issues fixed in the hawk2-2.6.4+git.1682509819.1ff135ea-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:18:29.280379Z","updated_at":"2026-11-02T16:58:36.025801Z"},{"id":"SUSE-SU-2021:0941-1","title":"Security update for hawk2","description":"This update for hawk2 fixes the following issues:\n\n- Update to version 2.6.3:\n  * Remove hawk_invoke and use capture3 instead of runas (bsc#1179999)(CVE-2020-35459)\n  * Remove unnecessary chmod (bsc#1182166)(CVE-2021-25314) \n  * Sanitize filename to contains whitelist of alphanumeric (bsc#1182165)\n","status":"published","published":"2021-03-24T11:26:08Z","modified":"2026-02-04T03:06:09.509019Z","updated_at":"2026-11-02T15:53:48.690034Z"},{"id":"SUSE-SU-2021:0942-1","title":"Security update for hawk2","description":"This update for hawk2 fixes the following issues:\n\n- Update to version 2.6.3:\n  * Remove hawk_invoke and use capture3 instead of runas (bsc#1179999)(CVE-2020-35459)\n  * Remove unnecessary chmod (bsc#1182166)(CVE-2021-25314)\n  * Sanitize filename to contains whitelist of alphanumeric (bsc#1182165)\n","status":"published","published":"2021-03-24T11:26:26Z","modified":"2026-02-04T03:21:44.326113Z","updated_at":"2026-11-02T15:53:48.690034Z"},{"id":"SUSE-SU-2021:0943-1","title":"Security update for hawk2","description":"This update for hawk2 fixes the following issues:\n\n- Update to version 2.6.3:\n  * Remove hawk_invoke and use capture3 instead of runas (bsc#1179999)(CVE-2020-35459)\n  * Remove unnecessary chmod (bsc#1182166)(CVE-2021-25314)\n  * Sanitize filename to contains whitelist of alphanumeric (bsc#1182165)\n","status":"published","published":"2021-03-24T11:26:35Z","modified":"2025-05-02T04:30:49.416532Z","updated_at":"2026-11-02T15:53:48.690034Z"}]}}
