CVE-2024-9050
highA flaw was found in the libreswan client plugin for NetworkManager (NetkworkManager-libreswan), where it fails to properly sanitize the VPN configuration from…
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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://access.redhat.com/errata/RHSA-2024:8312 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:8338 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:8352 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:8353 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:8354 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:8355 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:8356 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:8357 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:8358 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:9555 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:9556 secalert@redhat.com
- https://access.redhat.com/security/cve/CVE-2024-9050 secalert@redhat.com
- https://bugzilla.redhat.com/show_bug.cgi?id=2313828 secalert@redhat.com
- https://gitlab.gnome.org/GNOME/NetworkManager-libreswan/-/commit/dcf8acfb25bd31e4b8cbd20c2... secalert@redhat.com
- https://www.openwall.com/lists/oss-security/2024/10/25/1 secalert@redhat.com
- http://www.openwall.com/lists/oss-security/2024/10/25/1 af854a3a-2127-422b-91ae-364da2661108

