Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 28, 2025

This PR contains the following updates:

Package Change Age Confidence
cryptography (changelog) >=41.0.0, <42.0.0 -> >=43.0.1, <43.0.2 age confidence

GitHub Vulnerability Alerts

CVE-2023-50782

A flaw was found in the python-cryptography package. This issue may allow a remote attacker to decrypt captured messages in TLS servers that use RSA key exchanges, which may lead to exposure of confidential or sensitive data.

CVE-2024-0727

Issue summary: Processing a maliciously formatted PKCS12 file may lead OpenSSL
to crash leading to a potential Denial of Service attack

Impact summary: Applications loading files in the PKCS12 format from untrusted
sources might terminate abruptly.

A file in PKCS12 format can contain certificates and keys and may come from an
untrusted source. The PKCS12 specification allows certain fields to be NULL, but
OpenSSL does not correctly check for this case. This can lead to a NULL pointer
dereference that results in OpenSSL crashing. If an application processes PKCS12
files from an untrusted source using the OpenSSL APIs then that application will
be vulnerable to this issue.

OpenSSL APIs that are vulnerable to this are: PKCS12_parse(),
PKCS12_unpack_p7data(), PKCS12_unpack_p7encdata(), PKCS12_unpack_authsafes()
and PKCS12_newpass().

We have also fixed a similar issue in SMIME_write_PKCS7(). However since this
function is related to writing data we do not consider it security significant.

The FIPS modules in 3.2, 3.1 and 3.0 are not affected by this issue.

CVE-2024-26130

If pkcs12.serialize_key_and_certificates is called with both:

  1. A certificate whose public key did not match the provided private key
  2. An encryption_algorithm with hmac_hash set (via PrivateFormat.PKCS12.encryption_builder().hmac_hash(...)

Then a NULL pointer dereference would occur, crashing the Python process.

This has been resolved, and now a ValueError is properly raised.

Patched in https://github.com/pyca/cryptography/pull/10423

GHSA-h4gh-qq45-vh27

pyca/cryptography's wheels include a statically linked copy of OpenSSL. The versions of OpenSSL included in cryptography 37.0.0-43.0.0 are vulnerable to a security issue. More details about the vulnerability itself can be found in https://openssl-library.org/news/secadv/20240903.txt.

If you are building cryptography source ("sdist") then you are responsible for upgrading your copy of OpenSSL. Only users installing from wheels built by the cryptography project (i.e., those distributed on PyPI) need to update their cryptography versions.


Release Notes

pyca/cryptography (cryptography)

v43.0.1

Compare Source

v43.0.0

Compare Source

v42.0.8

Compare Source

v42.0.7

Compare Source

v42.0.6

Compare Source

v42.0.5

Compare Source

v42.0.4

Compare Source

v42.0.3

Compare Source

v42.0.2

Compare Source

v42.0.1

Compare Source

v42.0.0

Compare Source

v41.0.7

Compare Source

v41.0.6

Compare Source

v41.0.5

Compare Source

v41.0.4

Compare Source

v41.0.3

Compare Source

v41.0.2

Compare Source

v41.0.1

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@coderabbitai
Copy link

coderabbitai bot commented Aug 28, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Note

Free review on us!

CodeRabbit is offering free reviews until Wed Oct 08 2025 to showcase some of the refinements we've made.

Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from c92dc17 to 3513a4e Compare August 28, 2025 13:08
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v45 [security] chore(deps): update dependency cryptography to v43 [security] Aug 28, 2025
@codecov
Copy link

codecov bot commented Aug 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from 3513a4e to 42333fa Compare September 1, 2025 11:30
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v43 [security] chore(deps): update dependency cryptography to v45 [security] Sep 1, 2025
@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from 42333fa to 4bc0bd2 Compare September 2, 2025 03:31
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v45 [security] chore(deps): update dependency cryptography to v43 [security] Sep 2, 2025
@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from 4bc0bd2 to ea721e5 Compare September 3, 2025 09:03
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v43 [security] chore(deps): update dependency cryptography to v45 [security] Sep 3, 2025
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v45 [security] chore(deps): update dependency cryptography to v43 [security] Sep 4, 2025
@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch 2 times, most recently from 1e7ffc6 to 0434d7e Compare September 4, 2025 11:58
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v43 [security] chore(deps): update dependency cryptography to v45 [security] Sep 4, 2025
@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from 0434d7e to 8347e17 Compare September 6, 2025 06:00
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v45 [security] chore(deps): update dependency cryptography to v43 [security] Sep 6, 2025
@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from 8347e17 to dc26f7c Compare September 25, 2025 08:45
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v43 [security] chore(deps): update dependency cryptography to v46 [security] Sep 25, 2025
@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from dc26f7c to 0f0bd76 Compare September 25, 2025 12:31
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v46 [security] chore(deps): update dependency cryptography to v43 [security] Sep 25, 2025
@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from 0f0bd76 to 11f487a Compare September 25, 2025 21:32
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v43 [security] chore(deps): update dependency cryptography to v46 [security] Sep 25, 2025
@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from 11f487a to 7620759 Compare September 26, 2025 02:23
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v46 [security] chore(deps): update dependency cryptography to v43 [security] Sep 26, 2025
@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from 7620759 to 86e59dd Compare October 6, 2025 14:01
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v43 [security] chore(deps): update dependency cryptography to v46 [security] Oct 6, 2025
@renovate renovate bot force-pushed the renovate/pypi-cryptography-vulnerability branch from 86e59dd to 46eae89 Compare October 6, 2025 17:13
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v46 [security] chore(deps): update dependency cryptography to v43 [security] Oct 6, 2025
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v43 [security] chore(deps): update dependency cryptography to v46 [security] Oct 9, 2025
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v46 [security] chore(deps): update dependency cryptography to v43 [security] Oct 9, 2025
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v43 [security] chore(deps): update dependency cryptography to v46 [security] Oct 16, 2025
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v46 [security] chore(deps): update dependency cryptography to v43 [security] Oct 16, 2025
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v43 [security] chore(deps): update dependency cryptography to v46 [security] Oct 21, 2025
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v46 [security] chore(deps): update dependency cryptography to v43 [security] Oct 22, 2025
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v43 [security] chore(deps): update dependency cryptography to v46 [security] Nov 10, 2025
@renovate renovate bot changed the title chore(deps): update dependency cryptography to v46 [security] chore(deps): update dependency cryptography to v43 [security] Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant