# JLSEC-2025-221: Use of a Broken or Risky Cryptographic Algorithm in the function `mbedtls_mpi_exp_mod()` in lignum.c...

- Severity: Medium 4.7 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-11-21T15:59:04.054Z
- Modified: 2026-07-23T22:30:20.016Z
- Related: CVE-2021-36647

## Description

Use of a Broken or Risky Cryptographic Algorithm in the function `mbedtls_mpi_exp_mod()` in lignum.c in Mbed TLS Mbed TLS all versions before 3.0.0, 2.27.0 or 2.16.11 allows attackers with access to precise enough timing and memory access information (typically an untrusted operating system attacking a secure enclave such as SGX or the TrustZone secure world) to recover the private keys used in RSA.

(As written by Julia Security Advisories.)

## Affected

- MbedTLS_jll (Julia): before 2.27.0+0

## References

- <https://github.com/ARMmbed/mbedtls/releases/> (web)
- <https://kouzili.com/Load-Step.pdf> (web)
- <https://lists.debian.org/debian-lts-announce/2025/06/msg00034.html> (web)
- <https://tls.mbed.org/tech-updates/security-advisories/mbedtls-security-advisory-2021-07-1> (web)

## Sources

- Julia Security Advisories: [JLSEC-2025-221](https://osv.dev/vulnerability/JLSEC-2025-221), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/JLSEC-2025-221 · Whole record: https://cve.day/JLSEC-2025-221.json · Rebuilt by cve.day 2026-11-25T22:56:25.773Z
