Buffer Overflow Affecting ntru package, versions >=0.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-NTRU-5416667
  • published9 Apr 2023
  • disclosed7 Apr 2023
  • creditjcaesar

Introduced: 7 Apr 2023

CVE NOT AVAILABLE CWE-120  (opens in a new tab)

How to fix?

There is no fixed version for ntru.

Overview

ntru is an implementation of the NTRUEncrypt algorithm, an interface to libntru.

Affected versions of this package are vulnerable to Buffer Overflow. When compiled with debug assertions, attempt to subtract with overflow panic will be triggered, before undefined behavior occurs.

PoC

let kp: ntru::types::KeyPair = …;
kp.get_public().export(Default::default())

CVSS Scores

version 3.1