wordops/wordops · Security
WordOps has TOCTOU race condition
- GHSA ID
- GHSA-23qq-p4gq-gc2g
- CVE ID
- CVE-2024-34528
- Severity
- medium
- Published
- Updated
- CVSS
- 7.7 · CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CVSS v3
- 7.7 · CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CVSS v4
- 4.1 · CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
Description
WordOps through 3.20.0 has a wo/cli/plugins/stack_pref.py TOCTOU race condition because the conf_path os.open does not use a mode parameter during file creation.
CWEs
- CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
- CWE-367 · Time-of-check Time-of-use (TOCTOU) Race Condition
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-34528 ↗
- https://github.com/WordOps/WordOps/issues/611 ↗
- https://github.com/WordOps/WordOps/blob/ecf20192c7853925e2cb3f8c8378cd0d86ca0d62/wo/cli/plugins/stack_pref.py#L77 ↗
- https://github.com/WordOps/WordOps/commit/31353f0fef14ad8bc1f61c028971bd30b9e1909b ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/wordops/PYSEC-2024-175.yaml ↗
- https://github.com/advisories/GHSA-23qq-p4gq-gc2g ↗