Intel

AIKIDO-2025-10302

subst is vulnerable to Undefined Behavior

Undefined Behavior Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 12, 2025

25

Low Risk

This Affects:

RUSTsubst
0.3.2 - 0.3.7
Fixed in 0.3.8
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a panic caused by an index out-of-bounds error in the parse method when the input ends with a $ character. This can lead to unexpected application crashes when processing malformed or specially crafted input.

Who does this affect?

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

Background info

subst is vulnerable to Undefined Behavior in versions 0.3.2 - 0.3.7.

How to fix this

Upgrade the subst library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform