Improper Input Validation Affecting rustup package, versions <1.29.0-r7


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.02% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-WOLFILATEST-RUSTUP-16437379
  • published7 May 2026
  • disclosed14 May 2026

Introduced: 7 May 2026

NewCVE-2026-42327  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade Wolfi rustup to version 1.29.0-r7 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rustup package and not the rustup package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

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.