Networkmanager-libreswan: local privilege escalation via leftupdown
Key Information
- Vendor
- Red Hat
- Status
- Red Hat Enterprise Linux 7.7 Advanced Update Support
- Red Hat Enterprise Linux 7 Extended Lifecycle Support
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Vendor
- CVE Published:
- 22 October 2024
Summary
A flaw was found in the libreswan client plugin for NetworkManager (NetkworkManager-libreswan), where it fails to properly sanitize the VPN configuration from the local unprivileged user. In this configuration, composed by a key-value format, the plugin fails to escape special characters, leading the application to interpret values as keys. One of the most critical parameters that could be abused by a malicious user is the `leftupdown`key. This key takes an executable command as a value and is used to specify what executes as a callback in NetworkManager-libreswan to retrieve configuration settings back to NetworkManager. As NetworkManager uses Polkit to allow an unprivileged user to control the system's network configuration, a malicious actor could achieve local privilege escalation and potential code execution as root in the targeted machine by creating a malicious configuration.
Affected Version(s)
Red Hat Enterprise Linux 7.7 Advanced Update Support <= 0:1.2.4-4.el7_7
Red Hat Enterprise Linux 7 Extended Lifecycle Support <= 0:1.2.4-4.el7_9
Red Hat Enterprise Linux 8 <= 0:1.2.10-7.el8_10
CVSS V3.1
Timeline
Risk change from: null to: 7.8 - (HIGH)
Vulnerability published.
Reported to Red Hat.