CVE-2022-31252 permissions: chkstat does not check for group-writable parent directories or target files in safeOpen()
Local attackers can influence path resolution to privileged binaries by exploiting unchecked group-writable directories, leading to privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-31252?
CVE-2022-31252 is a medium-severity missing authorization vulnerability in Opensuse Leap, published on 6 Oct 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A Incorrect Authorization vulnerability in chkstat of SUSE Linux Enterprise Server 12-SP5; openSUSE Leap 15.3, openSUSE Leap 15.4, openSUSE Leap Micro 5.2 did not consider group writable path components, allowing local attackers with access to a group what can write to a location included in the path to a privileged binary to influence path resolution. This issue affects: SUSE Linux Enterprise Server 12-SP5 permissions versions prior to 20170707. openSUSE Leap 15.3 permissions versions prior to 20200127. openSUSE Leap 15.4 permissions versions prior to 20201225. openSUSE Leap Micro 5.2 permissions versions prior to 20181225.
Weakness: CWE-863
Which versions are affected by CVE-2022-31252?
It affects 3 products.
Linux distribution packages (11)
permissions SUSE:Linux Enterprise Micro 5.1 | All versions | 20181225-150200.23.15.1 |
permissions SUSE:Linux Enterprise Micro 5.2 | All versions | 20181225-150200.23.15.1 |
permissions SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 20181225-150200.23.15.1 |
permissions SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 20201225-150400.5.11.1 |
permissions SUSE:Linux Enterprise Server 12 SP5 | All versions | 20170707-6.10.1 |
permissions SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 20170707-6.10.1 |
permissions openSUSE:Leap 15.3 | All versions | 20181225-150200.23.15.1 |
permissions openSUSE:Leap 15.3 | All versions | 20200127-lp153.24.12.1 |
permissions openSUSE:Leap 15.4 | All versions | 20201225-150400.5.11.1 |
permissions openSUSE:Leap Micro 5.2 | All versions | 20181225-150200.23.15.1 |
permissions openSUSE:Tumbleweed | All versions | 1599_20220912-1.1 |
Products include Opensuse Leap, Opensuse Leap Micro, Suse Linux Enterprise Server.
How do I fix CVE-2022-31252?
Apply the vendor's patch.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2022-31252 being exploited?
There is no known exploitation of CVE-2022-31252 in the wild and no public exploit code.
Other vulnerabilities in Opensuse Leap
Sources
Also known as GHSA-hr65-wxm7-w4jv, SUSE-SU-2022:3353-1, SUSE-SU-2022:3382-1, SUSE-SU-2022:3394-1, openSUSE-SU-2022:10128-1, openSUSE-SU-2024:12335-1.