Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Affecting librest package, versions *


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.44% (38th percentile)

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-DEBIAN14-LIBREST-18280114
  • published24 Jul 2026
  • disclosed22 Jul 2026

Introduced: 22 Jul 2026

CVE-2026-16615  (opens in a new tab)
CWE-338  (opens in a new tab)

How to fix?

There is no fixed version for Debian:14 librest.

NVD Description

Note: Versions mentioned in the description apply only to the upstream librest package and not the librest package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

A flaw was found in librest. The PKCE implementation for OAuth authorization uses the GRand function from the GLib API, a cryptographically insecure pseudo-random number generator. Because the generated "code verifier" lacks sufficient cryptographic entropy, a malicious actor can reverse-engineer the pseudo-random number generator (PRNG) seed to predict or reconstruct the code verifier string, allowing an attacker to bypass PKCE protections and successfully impersonate the client during the OAuth 2.0 authorization flow.

CVSS Base Scores

version 3.1