CVE-2022-31252 permissions: chkstat does not check for group-writable parent directories or target files in safeOpen()

Medium 4.4 Published Updated

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.1All versions20181225-150200.23.15.1
permissions SUSE:Linux Enterprise Micro 5.2All versions20181225-150200.23.15.1
permissions SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions20181225-150200.23.15.1
permissions SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions20201225-150400.5.11.1
permissions SUSE:Linux Enterprise Server 12 SP5All versions20170707-6.10.1
permissions SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions20170707-6.10.1
permissions openSUSE:Leap 15.3All versions20181225-150200.23.15.1
permissions openSUSE:Leap 15.3All versions20200127-lp153.24.12.1
permissions openSUSE:Leap 15.4All versions20201225-150400.5.11.1
permissions openSUSE:Leap Micro 5.2All versions20181225-150200.23.15.1
permissions openSUSE:TumbleweedAll versions1599_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.

All Opensuse Leap vulnerabilities

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.

Is CVE-2022-31252 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free