Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import boto3 fails with OpenSSL_add_all_algorithms error #3962

Closed
realanda opened this issue Nov 30, 2023 · 2 comments
Closed

import boto3 fails with OpenSSL_add_all_algorithms error #3962

realanda opened this issue Nov 30, 2023 · 2 comments
Labels
bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged.

Comments

@realanda
Copy link

Describe the bug

import boto3 fails with the error: E AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

Expected Behavior

import boto3 should not fail

Current Behavior

import boto3 fails with the following stack trace:

rum/service/connectionutil/aws_connection_utils.py:1: in <module>
    import boto3
../python_pip_boto3/site-packages/boto3/__init__.py:17: in <module>
    from boto3.session import Session
../python_pip_boto3/site-packages/boto3/session.py:17: in <module>
    import botocore.session
../python_pip_botocore/site-packages/botocore/session.py:26: in <module>
    import botocore.client
../python_pip_botocore/site-packages/botocore/client.py:15: in <module>
    from botocore import waiter, xform_name
../python_pip_botocore/site-packages/botocore/waiter.py:18: in <module>
    from botocore.docs.docstring import WaiterDocstring
../python_pip_botocore/site-packages/botocore/docs/__init__.py:15: in <module>
    from botocore.docs.service import ServiceDocumenter
../python_pip_botocore/site-packages/botocore/docs/service.py:14: in <module>
    from botocore.docs.client import (
../python_pip_botocore/site-packages/botocore/docs/client.py:18: in <module>
    from botocore.docs.example import ResponseExampleDocumenter
../python_pip_botocore/site-packages/botocore/docs/example.py:13: in <module>
    from botocore.docs.shape import ShapeDocumenter
../python_pip_botocore/site-packages/botocore/docs/shape.py:19: in <module>
    from botocore.utils import is_json_value_header
../python_pip_botocore/site-packages/botocore/utils.py:39: in <module>
    import botocore.httpsession
../python_pip_botocore/site-packages/botocore/httpsession.py:45: in <module>
    from urllib3.contrib.pyopenssl import (
../python_pip_urllib3/site-packages/urllib3/contrib/pyopenssl.py:50: in <module>
    import OpenSSL.crypto
../python_pip_pyopenssl/site-packages/OpenSSL/__init__.py:8: in <module>
    from OpenSSL import crypto, SSL
../python_pip_pyopenssl/site-packages/OpenSSL/crypto.py:3268: in <module>
    _lib.OpenSSL_add_all_algorithms()
E   AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

Reproduction Steps

We upgraded cryptography to 41.0.6 due to CVE
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-49083

which seems to triggered this issue

Possible Solution

No response

Additional Information/Context

No response

SDK version used

1.33.5

Environment details (OS name and version, etc.)

linux

@realanda realanda added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Nov 30, 2023
@realanda
Copy link
Author

realanda commented Dec 1, 2023

using latest version of PySSL resolved this!

@realanda realanda closed this as completed Dec 1, 2023
Copy link

github-actions bot commented Dec 1, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant