Root code execution via unvalidated script replacement
Published Sep 21, 2022 · Updated May 28, 2025
A TOCTOU race in networkd-dispatcher allows local users to execute attacker-controlled scripts as root through script replacement. _run_hooks_for_state collects root-owned executable paths, then passes those paths to subprocess.Popen without revalidating ownership or identity. Exploitation requires low-privileged local access, a claimable org.freedesktop.network1 D-Bus name, and winning a symlink race, resulting in arbitrary root code execution.
Summary
What happened
A TOCTOU race in networkd-dispatcher allows local users to execute attacker-controlled scripts as root through script replacement. _run_hooks_for_state collects root-owned executable paths, then passes those paths to subprocess.Popen without revalidating ownership or identity. Exploitation requires low-privileged local access, a claimable org.freedesktop.network1 D-Bus name, and winning a symlink race, resulting in arbitrary root code execution.
The record
- CVE
- CVE-2022-29800
- Published
- Sep 21, 2022
- Updated
- May 28, 2025
- Vendor
- Clayton Craft
- Product
- networkd-dispatcher
- Classifications
- CWE-367, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 21, 2022CVE publishedPublication date reported by the CVE source.
- May 28, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=uknown
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- NimbusPwn C proof of conceptfunctional · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo