chore(deps): update rust crate rustls-webpki to v0.103.13 [security]#1684
Merged
chore(deps): update rust crate rustls-webpki to v0.103.13 [security]#1684
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1684 +/- ##
==========================================
+ Coverage 75.53% 80.44% +4.91%
==========================================
Files 170 127 -43
Lines 20900 16413 -4487
==========================================
- Hits 15786 13204 -2582
+ Misses 4902 3209 -1693
+ Partials 212 0 -212
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
viccuad
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.103.12→0.103.13rustls-webpki: Denial of service via panic on malformed CRL BIT STRING
GHSA-82j2-j2ch-gfr8
More information
Details
Summary
bit_string_flags()insrc/der.rspanics with an index-out-of-bounds when given a BIT STRING whose content is exactly[0x00](one byte: zero padding bits, zero data bytes). This is reachable through the public APIBorrowedCertRevocationList::from_der()via theissuingDistributionPointCRL extension.Precondition: CRL checking is opt-in in rustls-webpki. This vulnerability affects only applications that explicitly pass
RevocationOptionstoverify_for_usage()and load CRL bytes from a source the attacker can influence. The default rustls configuration (noRevocationOptions) is not affected.Details
bit_string_flags()insrc/der.rsreads the content of named-bit BITSTRINGs (KeyUsage, ReasonFlags, etc.). Its input guard:
misses the case
padding_bits == 0 && raw_bits.is_empty().When a BIT STRING has content
[0x00](one padding-bits byte set to zero, no data bytes):Debug: thread 'main' panicked: attempt to subtract with overflow
Release: thread 'main' panicked: index out of bounds: the len is 0
but the index is 18446744073709551615
PoC
Cargo.toml:
src/main.rs:
output:
Trigger
Impact
Applications that (1) use rustls-webpki with CRL
revocation checking explicitly enabled via RevocationOptions, and (2)
load CRL bytes from a source an attacker can influence.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.