Vulnerability · Published Jul 22, 2026 · Assigned by redhat

CVE-2026-16615Librest: weak random number generation in pkce implementation

Medium 6.8

In plain English

A medium-severity security flaw in librest from GNOME. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)0.4%top 62.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10rest0.9.1-11.el10_2.1ALSA-2026:47085
AlmaLinux:10rest-devel0.9.1-11.el10_2.1ALSA-2026:47085
Debian:12librestno fix listedDEBIAN-CVE-2026-16615
Debian:13librestno fix listedDEBIAN-CVE-2026-16615
Debian:14librestno fix listedDEBIAN-CVE-2026-16615
Rocky Linux:10rest0:0.9.1-11.el10_2.1RLSA-2026:47085
Ubuntu:22.04:LTSlibrestno fix listedUBUNTU-CVE-2026-16615
Ubuntu:24.04:LTSlibrestno fix listedUBUNTU-CVE-2026-16615
Ubuntu:26.04:LTSlibrestno fix listedUBUNTU-CVE-2026-16615
Ubuntu:26.10librestno fix listedUBUNTU-CVE-2026-16615

Affected products (as reported)

VendorProductVersions
GNOME librest see references
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support see references

Weakness: CWE-338 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

References