CVE-2025-3857 — Infinite loop condition in Amazon.IonDotnet
Infinite loop condition in Amazon.IonDotnet
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.33%). Schedule for your next planned update.
Does your project use an affected Amazon.IonDotnet version?
Paste your packages.lock.json to check it for CVE-2025-3857 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
Amazon.IonDotnet (ion-dotnet) is a .NET library with an implementation of the Ion data serialization format.
An issue exists in Amazon.IonDotnet and the RawBinaryReader class where, under certain conditions, an actor could trigger an infinite loop condition.
Impact
When reading binary Ion data through Amazon.IonDotnet using the RawBinaryReader class, Amazon.IonDotnet does not check the number of bytes read from the underlying stream while deserializing the binary format. If the Ion data is malformed or truncated, this triggers an infinite loop condition that could potentially result in a denial of service.
Impacted versions: <=1.3.0
Patches
This issue has been addressed in Amazon.IonDotnet version 1.3.1. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.
Workarounds
There are no workarounds. Upgrade to version 1.3.1.
References
If you have any questions or comments about this advisory, contact AWS/Amazon Security via our vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.
Credit
We would like to thank Josh Coleman from Symbotic for collaborating on this issue through the coordinated vulnerability disclosure process.
Advisory Timeline
- First published April 21, 2025 (584 days ago).
- Last revised October 14, 2025 — 176 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package Amazon.IonDotnet --version 1.3.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: NuGet (1).
| Package | Fixed In |
|---|---|
| Amazon.IonDotnet NuGet · Affected: 0.9.0-beta, 1.0.0, 1.1.0, 1.2.2 (+2 more) | 1.3.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
- CWE-835
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/amazon-ion/ion-dotnet/security/advisories/GHSA-gm2p-wf5c-w3pjWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-3857ADVISORY
- https://github.com/amazon-ion/ion-dotnet/commit/34a4f5215eceac1bb7bf434c4f2310d64d1b703bWEB
- https://aws.amazon.com/security/security-bulletins/AWS-2025-009WEB
- https://github.com/amazon-ion/ion-dotnetPACKAGE
- https://github.com/amazon-ion/ion-dotnet/releases/tag/v1.3.1WEB
Frequently Asked Questions
- What is CVE-2025-3857?
- Infinite loop condition in Amazon.IonDotnet. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2025-3857?
- CVE-2025-3857 affects Amazon.IonDotnet. It has a 1.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-3857 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 71.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-102529HIGH
HtmlSanitizer: CSS Removal DoS
- CVE-2025-11573HIGH
Amazon.IonDotnet is vulnerable to Denial of Service attacks
- CVE-2026-63184HIGH
Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion