Intel

AIKIDO-2024-10286

iri-string is vulnerable to Undefined Behavior

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

35

CVE Score

Low

Undefined Behavior

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.

How do I fix this?

Upgrade the iri-string library to the patch version.

Who does this affect?

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

Package

Versions

0.6.0 - 0.7.4

Fixed in 0.7.5

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea