CVE-2026-16615: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in GNOME librest
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.
AI Analysis
Technical Summary
The vulnerability in librest arises from the use of the GRand function from the GLib API for generating the PKCE code verifier in OAuth authorization. GRand is a cryptographically insecure PRNG, resulting in insufficient entropy in the code verifier. An attacker capable of intercepting the authorization code can reverse-engineer the PRNG seed to predict or reconstruct the code verifier string. This allows the attacker to bypass PKCE protections, impersonate the client, obtain valid access tokens, and perform unauthorized actions on behalf of the user. Red Hat has issued security advisories and updates for affected versions of librest in Red Hat Enterprise Linux 10 and related products. The vulnerability is rated with an important severity and a CVSS v3.1 base score of 6.8, reflecting high confidentiality and integrity impact but requiring user interaction and high attack complexity.
Potential Impact
Successful exploitation allows an attacker who can intercept the OAuth authorization code to bypass PKCE protections by predicting the code verifier string. This enables the attacker to impersonate the client, obtain valid access tokens, access protected user data, and perform actions on behalf of the user. The vulnerability impacts confidentiality and integrity but does not affect availability. The attack requires network access to intercept the authorization code and involves high complexity and user interaction.
Mitigation Recommendations
Red Hat has released security updates that fix this vulnerability by addressing the weak random number generation in the PKCE implementation. Users and administrators should apply the updated librest packages as soon as possible to remediate the issue. Red Hat has not identified any practical mitigations other than applying the update. Refer to the Red Hat advisory at https://access.redhat.com/articles/11258 for detailed update instructions.
CVE-2026-16615: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in GNOME librest
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.
CVSS v3.1
Score 6.8medium
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in librest arises from the use of the GRand function from the GLib API for generating the PKCE code verifier in OAuth authorization. GRand is a cryptographically insecure PRNG, resulting in insufficient entropy in the code verifier. An attacker capable of intercepting the authorization code can reverse-engineer the PRNG seed to predict or reconstruct the code verifier string. This allows the attacker to bypass PKCE protections, impersonate the client, obtain valid access tokens, and perform unauthorized actions on behalf of the user. Red Hat has issued security advisories and updates for affected versions of librest in Red Hat Enterprise Linux 10 and related products. The vulnerability is rated with an important severity and a CVSS v3.1 base score of 6.8, reflecting high confidentiality and integrity impact but requiring user interaction and high attack complexity.
Potential Impact
Successful exploitation allows an attacker who can intercept the OAuth authorization code to bypass PKCE protections by predicting the code verifier string. This enables the attacker to impersonate the client, obtain valid access tokens, access protected user data, and perform actions on behalf of the user. The vulnerability impacts confidentiality and integrity but does not affect availability. The attack requires network access to intercept the authorization code and involves high complexity and user interaction.
Mitigation Recommendations
Red Hat has released security updates that fix this vulnerability by addressing the weak random number generation in the PKCE implementation. Users and administrators should apply the updated librest packages as soon as possible to remediate the issue. Red Hat has not identified any practical mitigations other than applying the update. Refer to the Red Hat advisory at https://access.redhat.com/articles/11258 for detailed update instructions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-07-22T14:38:37.901Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-16615","vendor":"Red Hat"}]
Threat ID: 6a60f1d29c2644c7f8587795
Added to database: 07/22/2026, 16:37:38 UTC
Last enriched: 08/06/2026, 16:52:13 UTC
Last updated: 09/05/2026, 11:02:11 UTC
Views: 96
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.