CVE-2024-9050
Description
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.
How to fix
- NetworkManager-libreswan1.2.24 or later
- access.redhat.com/errata/RHSA-2024:8312
- access.redhat.com/errata/RHSA-2024:8338
- access.redhat.com/errata/RHSA-2024:8352
- access.redhat.com/errata/RHSA-2024:8353
- access.redhat.com/errata/RHSA-2024:8354
- access.redhat.com/errata/RHSA-2024:8355
- access.redhat.com/errata/RHSA-2024:8356
- access.redhat.com/errata/RHSA-2024:8357
- access.redhat.com/errata/RHSA-2024:8358
- access.redhat.com/errata/RHSA-2024:9555
- access.redhat.com/errata/RHSA-2024:9556
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| NetworkManager-libreswan | v < 1.2.24 | 1.2.24 |
| rhel_aus 7.7 | No range specified | — |
| Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support | No range specified | — |
| enterprise_linux 8 | No range specified | — |
| rhel_aus 8.2 | No range specified | — |
| rhel_aus 8.4 | No range specified | — |
| rhel_aus 8.6 | No range specified | — |
| rhel_eus 8.8 | No range specified | — |
| enterprise_linux 9 | No range specified | — |
| rhel_e4s 9.0 | No range specified | — |
| rhel_eus 9.2 | No range specified | — |
| rhel_eus 9.4 | No range specified | — |
| Red Hat Red Hat Enterprise Linux 10 | No range specified | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.