CVE-2024-9050

Vulnérabilité élevée

CVSS 7.8 · Élevée
EPSS 0.5%
•Versions : 0:1.2.4-4.el7_7, 0:1.2.10-6.el8_2, 0:1.2.10-6.el8_6, 0:1.2.10-6.el8_4, 0:1.2.18-6.el9_4, <1.2.24, 0:1.2.10-6.el8_8, 0:1.2.10-7.el8_10, 0:1.2.14-3.el9_0, 0, 0:1.2.4-4.el7_9, 0:1.2.22-4.el9_5, 0:1.2.14-6.el9_2, <*

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.

Gravité et risque d'exploitation

CVE-2024-9050 obtient un score CVSS de 7.8/10, soit une gravité élevée. Selon le modèle EPSS, la probabilité qu'elle soit exploitée dans les 30 prochains jours est de 0.46 %, ce qui la place devant 38.3 % des CVE référencées.

Que faire ?

  • Vérifiez si le produit concerné (versions 0:1.2.4-4.el7_7, 0:1.2.10-6.el8_2, 0:1.2.10-6.el8_6, 0:1.2.10-6.el8_4, 0:1.2.18-6.el9_4, <1.2.24, 0:1.2.10-6.el8_8, 0:1.2.10-7.el8_10, 0:1.2.14-3.el9_0, 0, 0:1.2.4-4.el7_9, 0:1.2.22-4.el9_5, 0:1.2.14-6.el9_2, <*) est présent sur votre parc.
  • Appliquez le correctif ou la version corrigée indiqués dans les références de l'éditeur.
  • À défaut de correctif, limitez l'exposition (filtrage réseau, désactivation du composant).
  • Automatisez la détection : les agents CVE Heimdall (gratuits, open source) corrèlent l'inventaire de vos serveurs avec la base CVE.

Références