CVE-2026-29795

4.0 MEDIUM
Published: March 06, 2026 Modified: March 18, 2026
View on NVD

Description

stellar-xdr is a library and CLI containing types and functionality for working with Stellar XDR. Prior to version 25.0.1, StringM::from_str does not validate that the input length is within the declared maximum (MAX). Calling StringM::<N>::from_str(s) where s is longer than N bytes succeeds and returns an Ok value instead of Err(Error::LengthExceedsMax), producing a StringM that violates its length invariant. This affects any code that constructs StringM values from string input using FromStr (including str::parse), and relies on the type's maximum length constraint being enforced. An oversized StringM could propagate through serialization, validation, or other logic that assumes the invariant holds. This issue has been patched in version 25.0.1.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/stellar/rs-stellar-xdr/issues/499
Source: security-advisories@github.com
Issue Tracking
https://github.com/stellar/rs-stellar-xdr/pull/500
Source: security-advisories@github.com
Issue Tracking Patch
https://github.com/stellar/rs-stellar-xdr/security/advisories/GHSA-x57h-xx53-v53w
Source: security-advisories@github.com
Mitigation Patch Vendor Advisory

4 reference(s) from NVD

Quick Stats

CVSS v3 Score
4.0 / 10.0
EPSS (Exploit Probability)
0.0%
8th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

stellar