Librest: weak random number generation in pkce implementation (GNOME librest)

CVE-2026-16615
MEDIUM 6.8

En bref

Source
NVD
EPSS
EPSS 0.43 % · centile 38 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
redhat
Statut NVD
Awaiting Analysis

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.

Faiblesses (CWE)

  • CWE-338 — Utilisation d'un PRNG cryptographiquement faible

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:Nredhat
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:NNVD · secalert@redhat.com (Secondary)

Références européennes

Produits affectés

ProduitVersions
GNOME · librest
Red Hat · Red Hat Enterprise Linux 10unaffected 0:0.9.1-11.el10_2.1 < *
Red Hat · Red Hat Enterprise Linux 10.0 Extended Update Supportunaffected 0:0.9.1-11.el10_0.1 < *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD