CVE-2024-9050

Source
https://cve.org/CVERecord?id=CVE-2024-9050
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-9050.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-9050
Downstream
Related
Published
2024-10-22T12:14:31.701Z
Modified
2026-07-08T08:11:54.405033351Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Networkmanager-libreswan: local privilege escalation via leftupdown
Details

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/9xxx/CVE-2024-9050.json",
    "cwe_ids": [
        "CWE-94"
    ],
    "cna_assigner": "redhat"
}
References

Affected packages

Git / gitlab.gnome.org/gnome/networkmanager-libreswan

Affected ranges

Type
GIT
Repo
https://gitlab.gnome.org/gnome/networkmanager-libreswan
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.2.24"
        }
    ]
}

Affected versions

0.*
0.8.999
0.9-rc2
0.9.0
0.9.1.95
0.9.2
0.9.2-rc1
0.9.2.0
0.9.3.995
0.9.4-beta1
0.9.6.0
0.9.8.0
1.*
1.2-beta1
1.2-beta2
1.2-beta3
1.2-rc1
1.2.0
1.2.1-dev
1.2.10
1.2.11-dev
1.2.12
1.2.13-dev
1.2.14
1.2.15-dev
1.2.16
1.2.17-dev
1.2.18
1.2.19-dev
1.2.2
1.2.20
1.2.21-dev
1.2.22
1.2.3-dev
1.2.4
1.2.5-dev
1.2.6
1.2.7-dev
1.2.8
1.2.9-dev

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-9050.json"