Vulnerabilities in pkg:pypi/reqmgr2

PACKAGE
Advisory Identifier: GHSA-4vq7-8699-4xgc
Advisory Summary

CVE-2022-34558 is a CRITICAL (CVSS 9.8) wmagent arbitrary code execution vulnerability (General Security Weakness) affecting Wmagent libraries in the PyPI ecosystem. The issue involves wmagent arbitrary code execution via a crafted dbs-client package. Remediation is available by upgrading affected packages to version 2.0.4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/reqmgr2

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/reqmgr2. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4vq7-8699-4xgc CVE-2022-34558 CRITICAL WMAgent arbitrary code execution via a crafted dbs-client package

CVE-2022-34558 at a Glance

CVE Identifier CVE-2022-34558
GHSA Identifier GHSA-4vq7-8699-4xgc
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification General Security Weakness
Affected Product Wmagent
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

Attack Vector Network (AV:N)
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 High (A:H)

How to Fix CVE-2022-34558

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

wmagent fixed: 2.0.4
pip install wmagent>=2.0.4
reqmgr2 fixed: 2.0.4
pip install reqmgr2>=2.0.4
reqmon fixed: 2.0.4
pip install reqmon>=2.0.4
global-workqueue fixed: 2.0.4
pip install global-workqueue>=2.0.4
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 wmagent

How to Check if You Are Affected

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

pip show wmagent

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Wmagent, 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

WMAgent v1.3.3rc2 and 1.3.3rc1, reqmgr2 1.4.1rc5 and 1.4.0rc2, reqmon 1.4.1rc5, and global-workqueue 1.4.1rc5 allows attackers to execute arbitrary code via a crafted dbs-client package.

CVE-2022-34558 Affected Wmagent Versions

4 component(s)
Fixed Versions:
2.0.4
Product / Package Ecosystem Affected Versions Fixed Version
wmagent
PyPI
≥ 1.3.3rc1
< 2.0.4
2.0.4
reqmgr2
PyPI
≥ 1.4.0rc2
< 2.0.4
2.0.4
reqmon
PyPI
≥ 1.4.1rc5
< 2.0.4
All 1 versions
1.4.1rc5
2.0.4
global-workqueue
PyPI
≥ 1.4.1rc5
< 2.0.4
All 1 versions
1.4.1rc5
2.0.4

References

Frequently Asked Questions

What is CVE-2022-34558?
CVE-2022-34558 is a security vulnerability in Wmagent involving WMAgent arbitrary code execution via a crafted dbs-client package under General Security Weakness.
Which Wmagent versions are affected?
Affected versions include releases prior to 2.0.4 across affected packages: wmagent, reqmgr2, reqmon, global-workqueue.
What version fixes CVE-2022-34558?
Upgrading to 2.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is wmagent affected?
Yes, wmagent is affected in releases prior to 2.0.4. Upgrade your dependency to 2.0.4 or later.
Is reqmgr2 affected?
Yes, reqmgr2 is affected in releases prior to 2.0.4. Upgrade your dependency to 2.0.4 or later.
What is the CVSS score of CVE-2022-34558?
CVE-2022-34558 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-34558?
CVE-2022-34558 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2022-34558?
Run the dependency tree command: 'pip show wmagent'. 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-4vq7-8699-4xgc",
  "modified" : "2024-11-26T18:46:36Z",
  "published" : "2022-07-29T00:00:17Z",
  "aliases" : [ "CVE-2022-34558" ],
  "summary" : "WMAgent arbitrary code execution via a crafted dbs-client package",
  "details" : "WMAgent v1.3.3rc2 and 1.3.3rc1, reqmgr2 1.4.1rc5 and 1.4.0rc2, reqmon 1.4.1rc5, and global-workqueue 1.4.1rc5 allows attackers to execute arbitrary code via a crafted dbs-client package.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "wmagent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.3rc1"
      }, {
        "fixed" : "2.0.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.3.3rc2"
    }
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "reqmgr2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0rc2"
      }, {
        "fixed" : "2.0.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.4.1rc5"
    }
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "reqmon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.1rc5"
      }, {
        "fixed" : "2.0.4"
      } ]
    } ],
    "versions" : [ "1.4.1rc5" ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "global-workqueue"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.1rc5"
      }, {
        "fixed" : "2.0.4"
      } ]
    } ],
    "versions" : [ "1.4.1rc5" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-34558"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dmwm/WMCore/issues/11188"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dmwm/WMCore"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/global-workqueue/PYSEC-2022-43136.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/reqmon/PYSEC-2022-43163.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/wmagent/PYSEC-2022-43174.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-08-06T05:52:32Z",
    "nvd_published_at" : "2022-07-28T23:15:00Z"
  }
}