CVE-2022-21944 watchman: chown in [email protected] unit allows symlink attack

High 7.8 Published Updated

Local attackers can escalate to root via symlink attack in watchman systemd unit; openSUSE users should upgrade.

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-21944?

CVE-2022-21944 is a high-severity path traversal vulnerability in openSUSE Factory, published on 26 Jan 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A UNIX Symbolic Link (Symlink) Following vulnerability in the systemd service file for watchman of openSUSE Backports SLE-15-SP3, Factory allows local attackers to escalate to root. This issue affects: openSUSE Backports SLE-15-SP3 watchman versions prior to 4.9.0. openSUSE Factory watchman versions prior to 4.9.0-9.1.

Weakness: CWE-59

Which versions are affected by CVE-2022-21944?

It affects 1 product.

Linux distribution packages (2)
watchman SUSE:Package Hub 15 SP3All versions4.9.0-bp153.2.3.1
watchman openSUSE:Leap 15.3All versions4.9.0-bp153.2.3.1

Products include Opensuse Factory Watchman.

How do I fix CVE-2022-21944?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-21944 being exploited?

There is no known exploitation of CVE-2022-21944 in the wild and no public exploit code.

Sources

Also known as GHSA-rg42-3854-x575, openSUSE-SU-2022:0016-1, openSUSE-SU-2024:11728-1.

Is CVE-2022-21944 in your software?

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

Check your SBOMs for free