Incomplete Cleanup Affecting codecarbon package, versions [,2.8.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-CODECARBON-12304094
  • published1 Sept 2025
  • disclosed1 May 2025
  • creditUnknown

Introduced: 1 May 2025

CVE NOT AVAILABLE CWE-459  (opens in a new tab)

How to fix?

Upgrade codecarbon to version 2.8.4 or higher.

Overview

Affected versions of this package are vulnerable to Incomplete Cleanup via the _handle_exit function due to being interrupted by a SIGTERM signal, the program terminates immediately using os._exit(1), bypassing cleanup code.

CVSS Base Scores

version 4.0
version 3.1