{"id":"CVE-2025-3857","aliases":["CVE-2025-3857","GHSA-gm2p-wf5c-w3pj"],"related":[],"kind":"vulnerability","state":"published","title":"Infinite loop condition in Amazon.IonDotnet","summary":"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. Users should upgrade to Amazon.IonDotnet version 1.3.1 and ensure any forked or derivative code is patched to incorporate the new fixes.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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. Users should upgrade to Amazon.IonDotnet version 1.3.1 and ensure any forked or derivative code is patched to incorporate the new fixes.","source":"cvelist"},{"lang":"en","text":"## Summary\n\n[Amazon.IonDotnet (ion-dotnet)](https://github.com/amazon-ion/ion-dotnet) is a .NET library with an implementation of the [Ion data serialization format](https://amazon-ion.github.io/ion-docs/).\n\nAn issue exists in Amazon.IonDotnet and the RawBinaryReader class where, under certain conditions, an actor could trigger an infinite loop condition.\n\n## Impact\n\nWhen 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.\n\n**Impacted versions: <=1.3.0**\n\n## Patches\n\nThis issue has been addressed in Amazon.IonDotnet version [1.3.1](https://github.com/amazon-ion/ion-dotnet/releases/tag/v1.3.1). We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.\n\n## Workarounds\n\nThere are no workarounds. Upgrade to version 1.3.1.\n\n## References\n\nIf you have any questions or comments about this advisory, contact AWS/Amazon Security via our [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n## Credit\n\nWe would like to thank Josh Coleman from Symbotic for collaborating on this issue through the coordinated vulnerability disclosure process.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Al leer datos binarios de Ion a través de Amazon.IonDotnet con la clase RawBinaryReader, Amazon.IonDotnet no comprueba el número de bytes leídos del flujo subyacente al deserializar el formato binario. Si los datos de Ion están malformados o truncados, se activa un bucle infinito que podría resultar en una denegación de servicio. Los usuarios deben actualizar a la versión 1.3.1 de Amazon.IonDotnet y asegurarse de que cualquier código bifurcado o derivado esté parcheado para incorporar las nuevas correcciones.","source":"nvd"}],"published":"2025-04-21T15:13:51.905Z","modified":"2026-06-17T09:20:48.927Z","severity":{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"AMZN","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"AMZN","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"HIGH"}],"cwes":["CWE-502","CWE-835"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.3.1","status":"affected"}],"vendor":"Amazon","product":"Amazon Ion Dotnet","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"NuGet","package":"Amazon.IonDotnet","purl":"pkg:nuget/Amazon.IonDotnet","source":"ghsa"}],"references":[{"url":"https://aws.amazon.com/security/security-bulletins/AWS-2025-009/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/amazon-ion/ion-dotnet/security/advisories/GHSA-gm2p-wf5c-w3pj","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/amazon-ion/ion-dotnet/releases/tag/v1.3.1","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-3857","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/amazon-ion/ion-dotnet/commit/34a4f5215eceac1bb7bf434c4f2310d64d1b703b","tags":["web"],"sources":["ghsa"]},{"url":"https://aws.amazon.com/security/security-bulletins/AWS-2025-009","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/amazon-ion/ion-dotnet","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"AMZN","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-21T15:35:43.330Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-3857","url":"https://www.cve.org/CVERecord?id=CVE-2025-3857","licence":"CVE Terms of Use","modified":"2025-10-14T18:18:25.003Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gm2p-wf5c-w3pj","url":"https://github.com/advisories/GHSA-gm2p-wf5c-w3pj","licence":"CC-BY-4.0","modified":"2025-10-14T22:34:29.614Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-3857","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-3857","licence":"Public domain","modified":"2026-06-17T09:20:48.927Z"}],"updatedAt":"2026-11-25T22:58:56.810Z","epss":{"score":0.01327,"percentile":0.71146,"date":"2026-11-30T12:00:22.000Z"}}