Title: Update dependency cryptography to v50 [SECURITY] by renovate[bot] · Pull Request #5324 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Update dependency cryptography to v50 [SECURITY] by renovate[bot] · Pull Request #5324 · python-telegram-bot/python-telegram-bot
X Title: Update dependency cryptography to v50 [SECURITY] by renovate[bot] · Pull Request #5324 · python-telegram-bot/python-telegram-bot
Description: This PR contains the following updates: Package Change Age Confidence cryptography (changelog) 48.0.1 → 50.0.0 cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing CVE-2026-69247 / GHSA-g6cj-pr64-35w5 More information Details Summary pkcs7_decrypt_der, pkcs7_decrypt_pem, and pkcs7_decrypt_smime reported the outcome of decrypting a RecipientInfo's encryptedKey in several distinguishable ways, one of which disclosed the exact length recovered from the RSA operation. The same distinction was also observable by timing. An application that decrypts attacker-supplied EnvelopedData and reflects the outcome gives the attacker a Bleichenbacher oracle against the content-encryption key. Introduced in 44.0.0. Fixed in 50.0.0. Details Decryption ran as: RSA PKCS#1 v1.5 decrypt of encryptedKey → build an AES cipher from the result → AES-CBC decrypt and PKCS#7 unpad. Each stage failed differently, with no RFC 3218 mitigation: invalid RSA padding → Decryption failed valid padding, bad key length → Invalid key size (N) for AES., disclosing N correct length, wrong key → Invalid padding bytes. the real key → plaintext Case 1 is reachable only where the linked library lacks implicit rejection: OpenSSL 3.0 and 3.1, LibreSSL, and BoringSSL. On OpenSSL 3.2+, used in our wheels, invalid padding instead returns a synthetic plaintext of pseudorandom length, so the error channel does not distinguish conforming ciphertexts. Exploitation requires a service that auto-decrypts untrusted EnvelopedData matching the victim certificate and answers adaptively at high volume, such as an S/MIME gateway or mail filter. Fix Per RFC 3218, the content-encryption algorithm is now resolved before the private key is used, so the expected key length is known in advance. If the RSA decryption fails or recovers a key of the wrong length, a random key of the expected length is substituted and decryption continues down an identical path. All failures now report identically and perform the same work. Not addressed by this fix EnvelopedData does not authenticate its content. Tampering with encryptedContent alone yields a CBC padding oracle that recovers plaintext at roughly 256 queries per byte, without recovering any key, on every backend. This is a property of PKCS#7 rather than of this implementation, cannot be fixed in the library, and is now documented. Credit Reported by @X1AOxiang. Severity CVSS Score: 8.2 / 10 (High) Vector String: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N References https://github.com/pyca/cryptography/security/advisories/GHSA-g6cj-pr64-35w5 https://github.com/pyca/cryptography/pull/15369 https://github.com/pyca/cryptography/commit/53fccd93413a8d7f07d6d8999681f27b75cffa3f https://github.com/advisories/GHSA-g6cj-pr64-35w5 This data is provided by the GitHub Advisory Database (CC-BY 4.0). Release Notes pyca/cryptography (cryptography) v50.0.0 Compare Source v49.0.0 Compare Source Configuration 📅 Schedule: (UTC) Branch creation At any time (no schedule defined) 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.
Open Graph Description: This PR contains the following updates: Package Change Age Confidence cryptography (changelog) 48.0.1 → 50.0.0 cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher or...
X Description: This PR contains the following updates: Package Change Age Confidence cryptography (changelog) 48.0.1 → 50.0.0 cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher or...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/pull/5324
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3f6231e7-6751-9faf-3b16-3b739ac215b6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B636:146A3D:E6B9F3:12E2731:6B02E9E5 |
| html-safe-nonce | d5b8f1c1e0677fa3560ed7383bd62b4c89cf02f83bf233843325ee2a586349bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjM2OjE0NkEzRDpFNkI5RjM6MTJFMjczMTo2QjAyRTlFNSIsInZpc2l0b3JfaWQiOiIxMjI0NjgyODc2NTQ1NzIyODUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b5658955c6c12e0b0d3408787958179059ae04ca6f82d9bf02c086595200bb04 |
| hovercard-subject-tag | pull_request:4205877083 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-telegram-bot/python-telegram-bot/pull/5324/files |
| twitter:image | https://avatars.githubusercontent.com/in/2740?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/2740?s=400&v=4 |
| og:image:alt | This PR contains the following updates: Package Change Age Confidence cryptography (changelog) 48.0.1 → 50.0.0 cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher or... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width