Vulnerabilities in pkg:pypi/gevent

PACKAGE
Advisory Identifier: GHSA-x7m3-jprg-wc5g
Advisory Summary

CVE-2023-41419 is a CRITICAL (CVSS 9.8) gevent allows remote attacker to vulnerability (General Security Weakness) affecting Gevent libraries in the PyPI ecosystem. The issue involves gevent allows remote attacker to escalate privileges. Remediation is available by upgrading affected packages to version 23.9.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/gevent

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-x7m3-jprg-wc5g CVE-2023-41419 CRITICAL Gevent allows remote attacker to escalate privileges

CVE-2023-41419 at a Glance

CVE Identifier CVE-2023-41419
GHSA Identifier GHSA-x7m3-jprg-wc5g
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification General Security Weakness
Affected Product Gevent
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-2023-41419

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

gevent fixed: 23.9.0
pip install gevent>=23.9.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 gevent

How to Check if You Are Affected

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

pip show gevent

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

Note: The pip show gevent 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 Gevent, 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

An issue in Gevent before version 23.9.0 allows a remote attacker to escalate privileges via a crafted script to the WSGIServer component.

CVE-2023-41419 Affected Gevent Versions

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

References

Frequently Asked Questions

What is CVE-2023-41419?
CVE-2023-41419 is a security vulnerability in Gevent involving Gevent allows remote attacker to escalate privileges under General Security Weakness.
Which Gevent versions are affected?
Affected versions include releases prior to 23.9.0 across affected packages: gevent.
What version fixes CVE-2023-41419?
Upgrading to 23.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gevent affected?
Yes, gevent is affected in releases prior to 23.9.0. Upgrade your dependency to 23.9.0 or later.
What is the CVSS score of CVE-2023-41419?
CVE-2023-41419 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-2023-41419?
CVE-2023-41419 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2023-41419?
Run the dependency tree command: 'pip show gevent'. 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-x7m3-jprg-wc5g",
  "modified" : "2025-11-27T07:59:22Z",
  "published" : "2023-09-25T12:30:44Z",
  "aliases" : [ "CVE-2023-41419" ],
  "summary" : "Gevent allows remote attacker to escalate privileges",
  "details" : "An issue in Gevent before version 23.9.0 allows a remote attacker to escalate privileges via a crafted script to the WSGIServer component.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "gevent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "23.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-41419"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gevent/gevent/issues/1989"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gevent/gevent/commit/2f53c851eaf926767fbac62385615efd4886221c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gevent/gevent"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/gevent/PYSEC-2023-177.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2025/11/msg00020.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.gevent.org/changelog.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-25T18:46:08Z",
    "nvd_published_at" : "2023-09-25T12:15:11Z"
  }
}