{"id":"UBUNTU-CVE-2026-16615","details":"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.","modified":"2026-10-17T12:58:06.513581618Z","published":"2026-07-22T17:16:00Z","upstream":["CVE-2026-16615"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-16615"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-16615"}],"affected":[{"package":{"name":"librest","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/librest?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.93-1"],"ecosystem_specific":{"binaries":[{"binary_name":"gir1.2-rest-0.7","binary_version":"0.7.93-1"},{"binary_name":"gir1.2-rest-extras-0.7","binary_version":"0.7.93-1"},{"binary_name":"librest-0.7-0","binary_version":"0.7.93-1"},{"binary_name":"librest-extras-0.7-0","binary_version":"0.7.93-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16615.json"}},{"package":{"name":"librest","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/librest?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.0-2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.8.0-2","binary_name":"gir1.2-rest-0.7"},{"binary_name":"gir1.2-rest-extras-0.7","binary_version":"0.8.0-2"},{"binary_name":"librest-0.7-0","binary_version":"0.8.0-2"},{"binary_version":"0.8.0-2","binary_name":"librest-extras-0.7-0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16615.json"}},{"package":{"name":"librest","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/librest?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.8.1-1","binary_name":"gir1.2-rest-0.7"},{"binary_version":"0.8.1-1","binary_name":"gir1.2-restextras-0.7"},{"binary_name":"librest-0.7-0","binary_version":"0.8.1-1"},{"binary_version":"0.8.1-1","binary_name":"librest-extras-0.7-0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16615.json"}},{"package":{"name":"librest","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/librest?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.1-1.1build1","0.8.1-1.1build2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.8.1-1.1build2","binary_name":"gir1.2-rest-0.7"},{"binary_name":"gir1.2-restextras-0.7","binary_version":"0.8.1-1.1build2"},{"binary_name":"librest-0.7-0","binary_version":"0.8.1-1.1build2"},{"binary_name":"librest-extras-0.7-0","binary_version":"0.8.1-1.1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16615.json"}},{"package":{"name":"librest","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/librest?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.1-6","0.9.1-6build2","0.9.1-6build3"],"ecosystem_specific":{"binaries":[{"binary_name":"gir1.2-rest-1.0","binary_version":"0.9.1-6build3"},{"binary_version":"0.9.1-6build3","binary_name":"gir1.2-restextras-1.0"},{"binary_name":"librest-1.0-0","binary_version":"0.9.1-6build3"},{"binary_version":"0.9.1-6build3","binary_name":"librest-extras-1.0-0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16615.json"}},{"package":{"name":"librest","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/librest?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.2-1","binary_name":"gir1.2-rest-1.0"},{"binary_name":"gir1.2-restextras-1.0","binary_version":"0.10.2-1"},{"binary_name":"librest-1.0-0","binary_version":"0.10.2-1"},{"binary_name":"librest-extras-1.0-0","binary_version":"0.10.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16615.json"}},{"package":{"name":"librest","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/librest?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.1-6build4","0.10.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"gir1.2-rest-1.0","binary_version":"0.10.2-1"},{"binary_name":"gir1.2-restextras-1.0","binary_version":"0.10.2-1"},{"binary_name":"librest-1.0-0","binary_version":"0.10.2-1"},{"binary_name":"librest-extras-1.0-0","binary_version":"0.10.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-16615.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}