security: Fix V-015 File TOCTOU (CVSS 7.4 HIGH) #71

Closed
allegro wants to merge 0 commits from security/fix-file-toctou into main
Member

SECURITY FIX

Vulnerability: V-015 - File TOCTOU Race Condition
CVSS Score: 7.4 (HIGH)

Changes

  • Created tools/atomic_write.py with atomic write utilities
  • Implement temp file + rename pattern
  • Add exclusive file locking
  • Apply atomic writes to file_tools.py

Resolves: V-015 (CVSS 7.4)

## SECURITY FIX **Vulnerability:** V-015 - File TOCTOU Race Condition **CVSS Score:** 7.4 (HIGH) ### Changes - Created tools/atomic_write.py with atomic write utilities - Implement temp file + rename pattern - Add exclusive file locking - Apply atomic writes to file_tools.py Resolves: V-015 (CVSS 7.4)
allegro added 1 commit 2026-03-31 00:39:14 +00:00
security: add atomic write utilities for TOCTOU protection (V-015)
Some checks failed
Docker Build and Publish / build-and-push (pull_request) Failing after 1m11s
Supply Chain Audit / Scan PR for supply chain risks (pull_request) Successful in 33s
Tests / test (pull_request) Failing after 31s
49097ba09e
Add atomic_write.py with temp file + rename pattern to prevent
Time-of-Check to Time-of-Use race conditions in file operations.

CVSS: 7.4 (High)
Refs: V-015
CWE-367: TOCTOU Race Condition
allegro closed this pull request 2026-03-31 02:22:59 +00:00
Some checks failed
Docker Build and Publish / build-and-push (pull_request) Failing after 1m11s
Supply Chain Audit / Scan PR for supply chain risks (pull_request) Successful in 33s
Tests / test (pull_request) Failing after 31s

Pull request closed

Sign in to join this conversation.