Rapid7 Vulnerability & Exploit Database

Red Hat: CVE-2024-9050: NetworkManager-libreswan: Local privilege escalation via leftupdown (Multiple Advisories)

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

Red Hat: CVE-2024-9050: NetworkManager-libreswan: Local privilege escalation via leftupdown (Multiple Advisories)

Severity
7
CVSS
(AV:L/AC:L/Au:S/C:C/I:C/A:C)
Published
10/22/2024
Created
10/25/2024
Added
10/24/2024
Modified
10/25/2024

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.

Solution(s)

  • redhat-upgrade-networkmanager-libreswan
  • redhat-upgrade-networkmanager-libreswan-debuginfo
  • redhat-upgrade-networkmanager-libreswan-debugsource
  • redhat-upgrade-networkmanager-libreswan-gnome
  • redhat-upgrade-networkmanager-libreswan-gnome-debuginfo

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;