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

- Severity: Medium 6.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-02)
- Published: 2026-07-22T16:12:03.536Z
- Modified: 2026-11-18T23:17:20.977Z
- Weaknesses: CWE-338
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- librest: no versions given
- rest: no versions given (not affected: from 0:0.9.1-11.el10_2.1 before *; from 0:0.9.1-11.el10_0.1 before *)

## References

- <https://access.redhat.com/errata/RHSA-2026:47085> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:62222> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-16615> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2504432> (issue-tracking)
- <https://gitlab.gnome.org/GNOME/librest/-/issues/25>
- <https://lists.debian.org/debian-lts-announce/2026/11/msg00041.html>

## Sources

- CVE List: [CVE-2026-16615](https://www.cve.org/CVERecord?id=CVE-2026-16615), CVE Terms of Use, modified 2026-11-18
- NVD: [CVE-2026-16615](https://nvd.nist.gov/vuln/detail/CVE-2026-16615), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-16615 · Whole record: https://cve.day/CVE-2026-16615.json · Rebuilt by cve.day 2026-11-25T22:59:29.837Z
