Intel

AIKIDO-2024-10286

iri-string is vulnerable to Undefined Behavior

Undefined Behavior Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 19, 2024

35

Low Risk

This Affects:

rustiri-string
0.6.0 - 0.7.4
Fixed in 0.7.5
Are you affected? Scan for Free

TL;DR

Affected versions of the package may encounter undefined behavior. The type should have #[repr(transparent)] to ensure safe compilation but it does not. Without this fix, any creation and use of the value results in UB, although the current version of the Rust compiler may generate the expected binary without guaranteeing safety.

Who does this affect?

You are affected if you are using a version which is within vulnerability ranges and using template::UriTemplateStr.

Background info

iri-string is vulnerable to Undefined Behavior in versions 0.6.0 - 0.7.4.

How to fix this

Upgrade the iri-string library to the patch version.