CVE-2024-4030

Vulnérabilité élevée dans CPython (Python Software Foundation)

CVSS 7.1 · Élevée
EPSS 0.3%
Python Software Foundation•CPython•Versions : 3.9.0, <3.10.15, 3.13.0a1, 3.11.0, <3.9.20, <3.8.20, <3.12.4, 3.12.0, 0, <3.13.0b1, 3.10.0, <3.11.10

Description

On Windows a directory returned by tempfile.mkdtemp() would not always have permissions set to restrict reading and writing to the temporary directory by other users, instead usually inheriting the correct permissions from the default location. Alternate configurations or users without a profile directory may not have the intended permissions. If you’re not using Windows or haven’t changed the temporary directory location then you aren’t affected by this vulnerability. On other platforms the returned directory is consistently readable and writable only by the current user. This issue was caused by Python not supporting Unix permissions on Windows. The fix adds support for Unix “700” for the mkdir function on Windows which is used by mkdtemp() to ensure the newly created directory has the proper permissions.

Gravité et risque d'exploitation

CVE-2024-4030 obtient un score CVSS de 7.1/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.30 %, ce qui la place devant 21.4 % des CVE référencées.

Que faire ?

  • Vérifiez si CPython (versions 3.9.0, <3.10.15, 3.13.0a1, 3.11.0, <3.9.20, <3.8.20, <3.12.4, 3.12.0, 0, <3.13.0b1, 3.10.0, <3.11.10) 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