PT-2026-153438
Publicado
2026-11-19
·
Atualizado
2026-11-19
Descrição por
CVSS 3.1
5.3
MédiaMétricasAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
RsaPrivateKey private-key construction, validation, and serialization can panic across three
classes of inputs, as well as when re-encoding certain valid keys:RsaPrivateKey::from componentsand PKCS#1 or PKCS#8 private-key decoding (DER or PEM) can panic during validation when a supplied factor equals 1, becauseRsaPrivateKey::validate()let a factor of 1 reach a later check that panicked.RsaPrivateKey::from primesandRsaPrivateKey::from p qcan panic during construction when a supplied factor is 0, 1, or even.- Prime recovery in
RsaPrivateKey::from componentscan panic when the private exponent is 0. - For a key, including a valid one, whose first prime occupies more limbs than the second,
crt coefficient,to pkcs1 der,to pkcs8 der, andserdeserialization can panic.
An application that imports untrusted private keys or factors, or re-encodes such keys, can lose a
worker, or the whole process when built with
panic = "abort". Public-key parsing is not affected.Fixed in 0.10.4, which rejects factors below 2, even factors, repeated factors, and a zero private
exponent during prime recovery, and computes the CRT coefficient and re-encodes valid two-prime
keys when the first prime occupies more limbs than the second.
If you cannot upgrade to 0.10.4, isolate the entire import, construction, CRT calculation, or
serialization in a separate process and treat an abnormal exit as an operation failure, or use
catch unwind around the entire operation when panics unwind.Explorabilidade
Correção
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾