p PatchFirst

CVE-2026-42327

CVE-2026-42327 · rust-openssl: undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs

CVSS 8.7 · High · EPSS 0.2% · 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=="rust-openssl"'

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.

rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.7 to before 0.10.79, X509Ref::ocsp_responders returns OCSP responder URLs from a certificate's AIA extension as OpensslString, whose Deref<Target = str> wraps the raw bytes with str::from_utf8_unchecked. OpenSSL does not enforce that the underlying IA5String is ASCII, so a certificate with non-UTF-8 bytes in its OCSP accessLocation causes safe Rust code to construct a &str that violates the UTF-8 invariant — resulting in undefined behavior. This vulnerability is fixed in 0.10.79.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • rust-openssl

    Versions
    • >= 0.9.7, < 0.10.79: Affected

    No fix published

  • rust-openssl Debian 12

    Versions
    • 0.10.45-1
    • 0.10.57-1
    • 0.10.64-1
    • 0.10.68-1
    • 0.10.70-1
    • 0.10.72-1
    All versions (10)
    • 0.10.73-1
    • 0.10.78-1
    • 0.10.79-1
    • 0.10.81-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-openssl Debian 13

    Versions
    • 0.10.72-1
    • 0.10.73-1
    • 0.10.78-1
    • 0.10.79-1
    • 0.10.81-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-openssl Debian 14

    Versions
    • 0.10.72-1
    • 0.10.73-1
    • 0.10.78-1
    Affected ranges
    • ECOSYSTEM: < 0.10.79-1

    Update to 0.10.79-1

  • rust-openssl Ubuntu Pro 20.04 LTS

    Versions
    • 0.10.23-1
    • 0.10.23-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-openssl Ubuntu Pro 22.04 LTS

    Versions
    • 0.10.29-1
    • 0.10.36-1
    • 0.10.36-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-openssl Ubuntu Pro 24.04 LTS

    Versions
    • 0.10.45-1
    • 0.10.57-1
    • 0.10.57-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-openssl Ubuntu 25.10

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

    No fix published

  • rust-openssl Ubuntu 26.10

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

    No fix published

  • rust-openssl Ubuntu 26.04 LTS

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

    No fix published

Original sources

Check your server →