CVE-2010-4340: Apache Libcloud SSL Certificate Verification Bypass

apache-libcloud Updated 02 Oct 2025

Summary

17/05/2022
Yes i
High
7.5

CVE-2010-4340: Apache Libcloud does not verify SSL certificates for HTTPS connections. Affects apache-libcloud versions < 0.4.0. Fixed in 0.4.0. How to fix ↓

Also tracked for

The same CVE-2010-4340 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Apache Libcloud is an open-source Python library that provides a unified interface for interacting with different cloud service providers. It allows developers to manage and provision cloud resources across various platforms. This vulnerability affects versions of Apache Libcloud prior to 0.4.1. The library does not properly verify SSL certificates for HTTPS connections, making it susceptible to man-in-the-middle (MITM) attacks. This issue is not directly related to Libcloud itself but is due to an upstream problem with Python's SSL module.

Vulnerability Detail

The vulnerability in Apache Libcloud allows remote attackers to spoof SSL certificates and bypass access restrictions through MITM attacks. By intercepting the communication between the client and the server, an attacker can present a fake SSL certificate, leading the client to believe it is communicating securely with the intended server. This can result in unauthorized access to sensitive information or the execution of malicious actions on the client's behalf.

How To Fix

Latest published version: 3.9.1 as of 23 Oct 2026

pip install --upgrade "apache-libcloud==3.9.1"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.4.0

This is the first release that contains the fix.

pip install --upgrade "apache-libcloud==0.4.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, developers can manually verify SSL certificates by implementing custom certificate verification logic in their code. This involves validating the certificate chain, checking the certificate's expiration date, and verifying the certificate's authenticity against a trusted certificate authority (CA). Here is an example of how to perform certificate verification using the requests library in Python:

import requests

def verify_ssl_certificate(url):
    response = requests.get(url, verify=True)
    # Add custom certificate verification logic here
    
    return response

Conclusion

The vulnerability in Apache Libcloud prior to version 0.4.1 allows for SSL certificate verification bypass, making it vulnerable to MITM attacks. To mitigate this issue, it is crucial to upgrade to the latest version of Apache Libcloud and ensure that dependencies are updated accordingly. Additionally, developers can implement custom certificate verification logic as a temporary workaround. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for apache-libcloud →

Share this vulnerability

FAQ

Apache Libcloud is a Python library that provides a consistent interface for managing cloud resources across different providers. It simplifies the process of interacting with various cloud services and allows developers to write code that is compatible with multiple platforms.

This vulnerability allows attackers to impersonate servers and intercept communication between clients and servers. It can lead to unauthorized access to sensitive information, data breaches, and the execution of malicious actions on the client's behalf.

To fix this vulnerability, you should upgrade to Apache Libcloud version 0.4.1 or later. Make sure to update your dependencies to use the patched version of Apache Libcloud.

Yes, you can manually verify SSL certificates in your code by implementing custom certificate verification logic. This involves checking the certificate chain, expiration date, and authenticity against a trusted CA. Refer to the provided code example for more details.

You can find more information about this vulnerability in the CVE-2010-4340 advisory and the GitHub Security Advisory GHSA-w3j6-8j34-q43x.

Related vulnerabilities

Recent vulnerabilities recorded for apache-libcloud.

How To Fix

Latest published version: 3.9.1 as of 23 Oct 2026

pip install --upgrade "apache-libcloud==3.9.1"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.4.0

This is the first release that contains the fix.

pip install --upgrade "apache-libcloud==0.4.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback