CVE-2023-5625
Regression in Red Hat python-eventlet caused patch for CVE-2021-21419 to fail.
- CVSS 7.5
- CWE-770
- Configuration Issues
- Remote
A regression was introduced in the Red Hat build of python-eventlet due to a change in the patch application strategy, resulting in a patch for CVE-2021-21419 not being applied for all builds of all products.
- CWE
- CWE-770
- CVSS base score
- 7.5
- Published
- 2023-11-01
- OWASP
- A09 Security Logging and Monitoring Failures
- Orthogonal defect classification
- Build/Package/Merge
- Code defect classification
- Building Issues
- Category
- Configuration Issues
- Subcategory
- Vulnerable and Outdated Components
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Fixed by upgrading
- Yes
Solution
Upgrade to the latest version of python-eventlet that includes the patch for CVE-2021-21419.
Vulnerable code sample
import eventlet
def eventlet_function():
def worker():
print("Worker function is running")
eventlet.spawn(worker)
eventlet.sleep(1)
eventlet_function()Patched code sample
import eventlet
def eventlet_function():
eventlet.monkey_patch()
def worker():
print("Worker function is running")
eventlet.spawn(worker)
eventlet.sleep(1)
eventlet_function()Payload
# Example payload that could exploit the vulnerability
import eventlet
def exploit_vulnerability():
# Create a vulnerable scenario due to missing patch
def vulnerable_worker():
# Potentially unsafe operation that could be exploited
while True:
print("Exploiting vulnerability...")
# Spawn the vulnerable worker
eventlet.spawn(vulnerable_worker)
# Allow some time for the exploit to run
eventlet.sleep(5)
exploit_vulnerability()
Cite this entry
@misc{vaitp:cve20235625,
title = {{Regression in Red Hat python-eventlet caused patch for CVE-2021-21419 to fail.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2023},
note = {VAITP Python Vulnerability Dataset, entry CVE-2023-5625},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2023-5625/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
