Intel

AIKIDO-2025-10594

temporal_rs is vulnerable to Reliance on Undefined, Unspecified, or Implementation-Defined Behavior

Reliance on Undefined, Unspecified, or Implementation-Defined Behavior Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 1, 2025

15

Low Risk

This Affects:

RUSTtemporal_rs
0.0.5 - 0.0.12
Fixed in 0.0.13
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Undefined Behavior in time duration rounding calculations due to improper use of unsafe Rust code. The vulnerability occurs when unit_length is zero, which triggers undefined behavior when passed to NonZeroU128::new_unchecked without validation. An attacker could exploit this by providing malicious input that results in a zero unit_length value, potentially causing application crashes or memory corruption depending on how the undefined behavior manifests in the execution environment.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

temporal_rs is vulnerable to Reliance on Undefined, Unspecified, or Implementation-Defined Behavior in versions 0.0.5 - 0.0.12.

How to fix this

Upgrade the temporal_rs library to the patch version.