Incorrect Calculation of Multi-Byte String Length Affecting rust-cargo-c-debugsource package, versions <0:0.10.19-1.amzn2023.0.1


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.19% (10th 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 IDSNYK-AMZN2023-RUSTCARGOCDEBUGSOURCE-15922134
  • published7 Apr 2026
  • disclosed26 Jan 2026

Introduced: 26 Jan 2026

CVE-2026-0810  (opens in a new tab)
CWE-135  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 rust-cargo-c-debugsource to version 0:0.10.19-1.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2026-1527.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rust-cargo-c-debugsource package and not the rust-cargo-c-debugsource package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

A flaw was found in gix-date. The gix_date::parse::TimeBuf::as_str function can generate strings containing invalid non-UTF8 characters. This issue violates the internal safety invariants of the TimeBuf component, leading to undefined behavior when these malformed strings are subsequently processed. This could potentially result in application instability or other unforeseen consequences.

CVSS Base Scores

version 3.1