PT-2024-7951 · Unknown+5 · Networkmanager-Libreswan+5

Lubomir Rintel

·

Published

2024-10-22

·

Updated

2025-03-17

·

CVE-2024-9050

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions NetworkManager-libreswan versions prior to 1.2.24
Description A flaw was found in the libreswan client plugin for NetworkManager, where it fails to properly sanitize the VPN configuration from the local unprivileged user. 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.
Recommendations For versions prior to 1.2.24, update to version 1.2.24 or later to resolve the issue. As a temporary workaround, consider restricting access to the leftupdown key to minimize the risk of exploitation. Avoid using the leftupdown key in the affected VPN configuration until the issue is resolved.

Fix

LPE

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2024:8353
ALSA-2024:9555
BDU:2024-09459
CESA-2024_8353
CVE-2024-9050
INFSA-2024_8353
INFSA-2024_9555
MGASA-2024-0356
OESA-2024-2331
OPENSUSE-SU-2024:14422-1
RHSA-2024:8312
RHSA-2024:8338
RHSA-2024:8352
RHSA-2024:8353
RHSA-2024:8354
RHSA-2024:8355
RHSA-2024:8356
RHSA-2024:8357
RHSA-2024:8358
RHSA-2024:9555
RHSA-2024:9556
RHSA-2024_8353
RHSA-2024_9555
RLSA-2024:9555
ROSA-SA-2024-2526

Affected Products

Almalinux
Centos
Networkmanager-Libreswan
Red Hat
Red Os
Rocky Linux