# JLSEC-2026-695: The X25519 `x86_64` assembly implementation fails to clear the most significant bit during the final...

- Severity: High 7.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-14T21:41:35.775Z
- Modified: 2026-07-25T18:24:46.492Z
- Related: CVE-2026-10512, GHSA-gjm7-vch5-hch8, EUVD-2026-39552

## Description

The X25519 `x86_64` assembly implementation fails to clear the most significant bit during the final modular reduction, so the computed result may not be fully reduced modulo the field prime 2^255 - 19. This can leave the field element in a non-canonical form, producing an incorrect result from the scalar multiplication and potentially a wrong shared secret. The final carry-propagation chains in the x64 and AVX2 reduction routines could overflow into the top bit, and the high limb was not masked afterward, so the 255-bit field element was left non-canonical.

(As written by Julia Security Advisories.)

## Affected

- wolfSSL_jll (Julia): from 5.7.2+0 before 5.9.2+0

## Every score

- Julia Security Advisories: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Julia Security Advisories: CVSS:4.0 `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/advisories/GHSA-gjm7-vch5-hch8> (web)
- <https://github.com/wolfSSL/wolfssl/pull/10536> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-10512> (web)
- <https://www.wolfssl.com/docs/security-vulnerabilities> (web)
- <https://www.wolfssl.com/docs/security-vulnerabilities/> (web)

## Sources

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

---

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