Race Condition Affecting betty package, versions [,0.4.0a12)


Severity

Recommended
0.0
high
0
10

CVSS assessment made 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-BETTY-8359644
  • published8 Nov 2024
  • disclosed1 Nov 2024
  • creditUnknown

Introduced: 1 Nov 2024

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

How to fix?

Upgrade betty to version 0.4.0a12 or higher.

Overview

betty is a Betty is a static ancestry site generator.

Affected versions of this package are vulnerable to Race Condition via the _CacheItemLock class's release method due to no longer acquiring a lock before modifying shared data. Attackers could exploit this by triggering concurrent cache operations, leading to unpredictable behavior.

Note:

To mitigate this issue, reintroduce the lock in the release method to ensure proper synchronization of shared resources.

CVSS Scores

version 4.0
version 3.1