CVE-2024-28718
Python vulnerability analysis and mitigation

Overview

OpenStack Magnum yoga-eom version contains a Time-of-Check-Time-of-Use (TOCTOU) vulnerability in the cert_manager.py component that allows remote attackers to execute arbitrary code. The vulnerability was discovered in December 2023 and was assigned CVE-2024-28718. The issue affects the certificate management functionality in OpenStack Magnum (Launchpad Bug, NVD).

Technical details

The vulnerability stems from a race condition in the certificate management component where file permissions are set after writing sensitive data. Specifically, in cert_manager.py, the code first writes certificate files (ca_file, key_file, cert_file) and then changes their permissions using chmod to 0o600. This creates a time window between file creation and permission modification where the files are potentially accessible to unauthorized users. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability could allow attackers to access sensitive certificate data during the window between file creation and permission modification. This could potentially lead to the compromise of certificate private keys and other sensitive cryptographic material, ultimately enabling arbitrary code execution (Launchpad Bug).

Exploitability

The vulnerability is remotely exploitable and requires no user interaction or special privileges. The TOCTOU race condition can be exploited by timing attacks that take advantage of the window between file creation and permission modification (Gist Details).

Mitigation and workarounds

The issue has been fixed by modifying the code to set file permissions before writing sensitive data. The fix has been merged into multiple branches including master, stable/2023.2, stable/2023.1, stable/zed, and stable/yoga. The fix is included in OpenStack Magnum versions 14.1.2, 15.0.2, 16.0.2, 17.0.2, and 18.0.0.0rc1 (Launchpad Bug).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61539CRITICAL10
  • Python logoPython
  • xinference
NoYesAug 21, 2026
CVE-2026-49360HIGH7.8
  • Python logoPython
  • recce
NoYesAug 21, 2026
CVE-2026-68508HIGH7.8
  • Python logoPython
  • hydra-core
NoYesAug 21, 2026
CVE-2026-43980MEDIUM6.3
  • Python logoPython
  • malla
NoNoAug 21, 2026
CVE-2026-55468MEDIUM4.3
  • Python logoPython
  • wagtail
NoYesAug 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management