Repository navigation
Drop the unmaintained rustls-pemfile and read PEM with pki-types [skip deploy] #no-deploy - #12
Merged
SebastianLopezO merged 2 commits intoNov 1, 2026
Conversation
…p deploy] #no-deploy
…skip deploy] #no-deploy
SebastianLopezO
deleted the
security/cargo-audit/rustls-webpki-rustls-pemfile
branch
November 1, 2026 03:48
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.
Caso
aparecen en el escaneo central de
.github.rustls-webpki0.102.8: RUSTSEC-2026-0098, -0099, -0382, -0049 y -0104 (restricciones denombre, intermedios no confiables, CRL y un panic al leer CRL).
rustls-pemfile2.2.0: RUSTSEC-2025-0134 (sinmantenimiento).
rumqttc0.25.1, que es la última versión publicada y fijarustls-webpki = "0.102".rumqttcsolo usa ese crate como tipo de error (webpki::Errorentls.rs). El simulador arma su propioClientConfigde rustls 0.23 (Transport::tls_with_config), así que la verificación de certificados la hacerustls-webpki0.103.16, que ya trae los arreglos: el código vulnerable de la 0.102.8 se compila pero no seejecuta.
rustls-pemfilesí lo usábamos directamente.Cambio
CertificateDer::pem_file_iter(rustls::pki_types) en lugar derustls-pemfile, y un archivoilegible ahora deja un aviso en el log en vez de pasar en silencio.
rustls-native-certs0.7 → 0.8 (ya no depende derustls-pemfile).rustls-pemfilesale deCargo.toml; queda solo como dependencia transitiva derumqttc..cargo/audit.tomlacepta de forma explícita los seis avisos que solo llegan porrumqttc, con el motivo de cada unoy la condición para quitarlos. Sin esto, la compuerta RustSec de los PR bloquea cualquier cambio del repositorio
por una falla que no tiene arreglo publicado y que no se ejecuta.
Verificación
cargo fmt --check,cargo clippy --all-targets -- -D warningsycargo testen verde.cargo tree -i rustls-pemfileycargo tree -i rustls-webpki@0.102.8: solo cuelgan derumqttc.Después de fusionar
rumqttcse descartan con este análisis (código no usado) hasta querumqttcpublique una versión conrustls-webpki0.103; Dependabot la propondrá.