Summary
It was discovered that librest used a cryptographically insecure pseudo-
random number generator to generate PKCE code verifiers for OAuth 2.0
authorization. A remote attacker could possibly use this issue to predict
the code verifier and impersonate the client during the OAuth 2.0
authorization flow.
Fixed packages 3
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · 24.04 LTS 24.04:LTS | librest | 0.9.1-6+deb12u1build0.24.04.1 |
| Ubuntu · 26.04 LTS 26.04:LTS | librest | 0.10.2-1ubuntu0.26.04.1 |
| Ubuntu · 26.10 | librest | 0.10.2-1ubuntu0.26.10.1 |
Vulnerabilities 1
-
Medium 6.8
Librest: weak random number generation in pkce implementation
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, …
References
-
report
https://ubuntu.com/security/CVE-2026-16615