Skip to content

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

MediumCVSS 6.8 EPSS 0.43%
Published
Updated
Exploit status
No public exploit known

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 products

ProductAffected versionsFixed in
GNOME librest All versions No fix listed
redhat enterprise linux < 0:0.9.1-11.el10_2.1 0:0.9.1-11.el10_2.1
redhat enterprise linux eus < 0:0.9.1-11.el10_0.1 0:0.9.1-11.el10_0.1
redhat/rest(Red Hat:enterprise_linux:10.2) < 0.9.1-11.el10_2.1 0.9.1-11.el10_2.1
redhat/rest(Red Hat:enterprise_linux_eus:10.0) < 0.9.1-11.el10_0.1 0.9.1-11.el10_0.1
ubuntu/librest(Ubuntu:22.04) All versions No fix listed
ubuntu/librest(Ubuntu:24.04) All versions No fix listed
ubuntu/librest(Ubuntu:26.04) All versions No fix listed
ubuntu/librest(Ubuntu:26.10) All versions No fix listed
azure linux rest(Azure Linux:3.0) All versions No fix listed
azure linux rest(Azure Linux:3.0) < 0.9.0-2 0.9.0-2
azure linux rest(Azure Linux:4.0) < 0:0.10.2-9.azl4 0:0.10.2-9.azl4
debian/librest(Debian:12) < 0.9.1-6+deb12u1 0.9.1-6+deb12u1
debian/librest(Debian:12) = 0.9.1-6 No fix listed
debian/librest(Debian:13) All versions No fix listed
debian/librest(Debian:13) = 0.10.2-1 No fix listed
debian/librest(Debian:13) = 0.9.1-6 No fix listed
debian/librest(Debian:13) = 1.0.0-1 No fix listed
debian/librest(Debian:14) All versions No fix listed
debian/librest(Debian:14) = 0.10.2-1 No fix listed
debian/librest(Debian:14) = 0.9.1-6 No fix listed
debian/librest(Debian:14) = 1.0.0-1 No fix listed

References