p PatchFirst

CVE-2026-16615

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

CVSS 6.8 · Medium · EPSS 0.5% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="librest"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • librest

    No fix published

  • red hat enterprise linux 10

    Versions
    • ≥ 0:0.9.1-11.el10_2.1: Not affected (rpm)

    No fix published

  • red hat enterprise linux 10.0 extended update support

    Versions
    • ≥ 0:0.9.1-11.el10_0.1: Not affected (rpm)

    No fix published

  • librest Debian 12

    Versions
    • 0.9.1-6
    Affected ranges
    • ECOSYSTEM: < 0.9.1-6+deb12u1

    Update to 0.9.1-6+deb12u1

  • librest Debian 13

    Versions
    • 0.10.2-1
    • 0.9.1-6
    • 1.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • librest Debian 14

    Versions
    • 0.10.2-1
    • 0.9.1-6
    • 1.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • librest Ubuntu 16.04 LTS

    Versions
    • 0.7.93-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • librest Ubuntu 18.04 LTS

    Versions
    • 0.8.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • librest Ubuntu 20.04 LTS

    Versions
    • 0.8.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • librest Ubuntu 22.04 LTS

    Versions
    • 0.8.1-1.1build1
    • 0.8.1-1.1build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • librest Ubuntu 24.04 LTS

    Versions
    • 0.9.1-6
    • 0.9.1-6build2
    • 0.9.1-6build3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • librest Ubuntu 26.10

    Versions
    • 0.10.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • librest Ubuntu 26.04 LTS

    Versions
    • 0.9.1-6build4
    • 0.10.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →