CVE-2026-29795

Source
https://cve.org/CVERecord?id=CVE-2026-29795
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-29795.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-29795
Aliases
Published
2026-03-06T20:42:43.403Z
Modified
2026-04-10T05:42:33.936114Z
Severity
  • 4.0 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
stellar-xdr: `StringM::from_str` bypasses max length validation
Details

stellar-xdr is a library and CLI containing types and functionality for working with Stellar XDR. Prior to version 25.0.1, StringM::fromstr does not validate that the input length is within the declared maximum (MAX). Calling StringM::<N>::fromstr(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.

Database specific
{
    "cwe_ids": [
        "CWE-770"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/29xxx/CVE-2026-29795.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/stellar/rs-stellar-xdr

Affected ranges

Type
GIT
Repo
https://github.com/stellar/rs-stellar-xdr
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other
quarkslab-rs-xdr
v0.*
v0.0.1
v0.0.10
v0.0.11
v0.0.12
v0.0.13
v0.0.14
v0.0.15
v0.0.16
v0.0.17
v0.0.2
v0.0.6
v0.0.7
v0.0.8
v0.0.9
v20.*
v20.0.0
v20.0.0-rc1
v20.0.1
v20.0.2
v20.1.0
v21.*
v21.0.0
v21.0.1
v21.1.0
v21.2.0
v22.*
v22.0.0
v22.0.0-rc.1
v22.0.0-rc.1.1
v22.1.0
v23.*
v23.0.0
v23.0.0-rc.1
v23.0.0-rc.2
v23.0.0-rc.3
v25.*
v25.0.0
v25.0.0-rc.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-29795.json"