CVE-2010-3494: Pyftpdlib Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-hw4g-fhcp-x5mq
CVSS 7.5
CWE-362
Published
Advisory Summary

CVE-2010-3494 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Pyftpdlib libraries in the PyPI ecosystem. The issue involves concurrent execution using shared resource with improper synchronization in pyftpdlib. Remediation is available by upgrading affected packages to version 0.5.2.

CVE-2010-3494 at a Glance

CVE Identifier CVE-2010-3494
GHSA Identifier GHSA-hw4g-fhcp-x5mq
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Pyftpdlib
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/I:N/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 None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2010-3494

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

pyftpdlib fixed: 0.5.2
pip install pyftpdlib>=0.5.2
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 pyftpdlib

How to Check if You Are Affected

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

pip show pyftpdlib

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

Note: The pip show pyftpdlib 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 Pyftpdlib, 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

Race condition in the FTPHandler class in ftpserver.py in pyftpdlib before 0.5.2 allows remote attackers to cause a denial of service (daemon outage) by establishing and then immediately closing a TCP connection, leading to the accept function having an unexpected value of None for the address, or an ECONNABORTED, EAGAIN, or EWOULDBLOCK error, a related issue to CVE-2010-3492.

CVE-2010-3494 Affected Pyftpdlib Versions

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

References

Frequently Asked Questions

What is CVE-2010-3494?
CVE-2010-3494 is a security vulnerability in Pyftpdlib involving Concurrent Execution using Shared Resource with Improper Synchronization in pyftpdlib under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Pyftpdlib versions are affected?
Affected versions include releases prior to 0.5.2 across affected packages: pyftpdlib.
What version fixes CVE-2010-3494?
Upgrading to 0.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pyftpdlib affected?
Yes, pyftpdlib is affected in releases prior to 0.5.2. Upgrade your dependency to 0.5.2 or later.
What is the CVSS score of CVE-2010-3494?
CVE-2010-3494 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2010-3494?
CVE-2010-3494 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-2010-3494?
Run the dependency tree command: 'pip show pyftpdlib'. 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-hw4g-fhcp-x5mq",
  "modified" : "2024-10-21T20:26:55Z",
  "published" : "2022-05-17T05:47:39Z",
  "aliases" : [ "CVE-2010-3494" ],
  "summary" : "Concurrent Execution using Shared Resource with Improper Synchronization in pyftpdlib",
  "details" : "Race condition in the FTPHandler class in ftpserver.py in pyftpdlib before 0.5.2 allows remote attackers to cause a denial of service (daemon outage) by establishing and then immediately closing a TCP connection, leading to the accept function having an unexpected value of None for the address, or an ECONNABORTED, EAGAIN, or EWOULDBLOCK error, a related issue to CVE-2010-3492.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyftpdlib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-3494"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/zodb/+bug/135108"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-hw4g-fhcp-x5mq"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/giampaolo/pyftpdlib"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyftpdlib/PYSEC-2010-11.yaml"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.python.org/issue6706"
  }, {
    "type" : "WEB",
    "url" : "http://code.google.com/p/pyftpdlib/issues/detail?id=104"
  }, {
    "type" : "WEB",
    "url" : "http://code.google.com/p/pyftpdlib/issues/detail?id=105"
  }, {
    "type" : "WEB",
    "url" : "http://code.google.com/p/pyftpdlib/source/browse/trunk/HISTORY"
  }, {
    "type" : "WEB",
    "url" : "http://code.google.com/p/pyftpdlib/source/detail?r=556"
  }, {
    "type" : "WEB",
    "url" : "http://code.google.com/p/pyftpdlib/source/diff?spec=svn556&r=556&format=side&path=/trunk/pyftpdlib/ftpserver.py"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2010/09/09/6"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2010/09/11/2"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2010/09/22/3"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2010/09/24/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-08T18:48:45Z",
    "nvd_published_at" : "2010-10-19T20:00:00Z"
  }
}