Skip to content
OpenAdvisories
Medium · 6.8 CVE-2026-16615 EUVD-2026-47742GHSA-223h-642r-2f6v

Librest: weak random number generation in pkce implementation

Published Jul 22, 2026 · Updated Sep 1, 2026 · Assigned by redhat

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

VendorProductAffectedFixed
GNOME librest — —
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 librest No fix yet —
Debian 13 librest No fix yet —
Debian 12 librest No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 librest No fix yet —
Ubuntu 26.04 LTS librest No fix yet —
Ubuntu 24.04 LTS librest No fix yet —
Ubuntu 22.04 LTS librest No fix yet —
Ubuntu 20.04 LTS librest No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS librest No fix yet —
Ubuntu 16.04 LTS librest No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 rest +1 0.9.1-11.el10_2.1 RHSA-2026:47085
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS rest +1 0.9.1-11.el10_0.1 RHSA-2026:62222

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 rest +1 0.9.1-11.el10_2.1 ALSA-2026:47085

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 rest 0.9.1-11.el10_2.1 RLSA-2026:47085
ReleasePackageFixed inAdvisory
SLES 15 SP7 librest 0.9.1-150600.3.3.1 SUSE-SU-2026:3795-1
SLES 15 SP7 librest0_7 0.8.1-150600.4.3.1 SUSE-SU-2026:3834-1
SLES 12 SP5 librest 0.8.0-13.3.1 SUSE-SU-2026:3796-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 librest 0.9.1-160000.3.1 SUSE-SU-2026:23564-1
SLES 16.0 librest 0.9.1-160000.3.1 SUSE-SU-2026:23564-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed librest 0.10.2-2.1 openSUSE-SU-2026:11477-1
openSUSE Leap 16.0 librest 0.9.1-160000.3.1 openSUSE-SU-2026:21694-1
openSUSE Leap 16.0 librest0_7 0.8.1-bp160.2.1 openSUSE-SU-2026:21563-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 rest 0.9.0-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 rest +1 0.9.1-11.el10_2.1 ELSA-2026-47085

Advisories 13

References