CVE-2024-34528: Wordops WordOps Has TOCTOU Race Condition Vulnerability

MODERATE
Advisory Identifier: GHSA-23qq-p4gq-gc2g
CVSS 7.7
CWE-362 CWE-367
Published
Advisory Summary

CVE-2024-34528 is a MODERATE (CVSS 7.7) wordops has toctou race condition vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Wordops libraries in the PyPI ecosystem. The issue involves wordops has toctou race condition. Remediation is available by upgrading affected packages to version 3.21.0.

CVE-2024-34528 at a Glance

CVE Identifier CVE-2024-34528
GHSA Identifier GHSA-23qq-p4gq-gc2g
Severity MODERATE
CVSS v3.1 Base Score 7.7
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Wordops
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-34528

To remediate this vulnerability, upgrade all affected Wordops dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

wordops fixed: 3.21.0
pip install wordops>=3.21.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show wordops

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-34528, inspect your installed packages using pip:

pip show wordops

Analyze the terminal output to locate any version of Wordops in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.21.0), your application is affected.

Note: The pip show wordops command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Wordops, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2024-34528 Affected Wordops Versions

1 component(s)
Fixed Versions:
3.21.0
Product / Package Ecosystem Affected Versions Fixed Version
wordops
PyPI
< 3.21.0
3.21.0

References

Frequently Asked Questions

What is CVE-2024-34528?
CVE-2024-34528 is a security vulnerability in Wordops involving WordOps has TOCTOU race condition under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Wordops versions are affected?
Affected versions include releases prior to 3.21.0 across affected packages: wordops.
What version fixes CVE-2024-34528?
Upgrading to 3.21.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is wordops affected?
Yes, wordops is affected in releases prior to 3.21.0. Upgrade your dependency to 3.21.0 or later.
What is the CVSS score of CVE-2024-34528?
CVE-2024-34528 has a CVSS v3.1 base score of 7.7 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-34528?
CVE-2024-34528 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check PyPI dependencies for CVE-2024-34528?
Run the dependency tree command: 'pip show wordops'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-23qq-p4gq-gc2g",
  "modified" : "2025-01-21T18:28:26Z",
  "published" : "2024-05-06T00:30:52Z",
  "aliases" : [ "CVE-2024-34528" ],
  "summary" : "WordOps has TOCTOU race condition",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "wordops"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.21.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34528"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WordOps/WordOps/issues/611"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WordOps/WordOps/commit/31353f0fef14ad8bc1f61c028971bd30b9e1909b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/WordOps/WordOps"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WordOps/WordOps/blob/ecf20192c7853925e2cb3f8c8378cd0d86ca0d62/wo/cli/plugins/stack_pref.py#L77"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/wordops/PYSEC-2024-175.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362", "CWE-367" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-06T14:35:39Z",
    "nvd_published_at" : "2024-05-06T00:15:10Z"
  }
}