Skip to content
Heist/ feed
Back to feed
High

Infinite loop condition in Amazon.IonDotnet

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-3857
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 17:57 UTC · Revision 1

Source evidence

Infinite loop condition in Amazon.IonDotnet

core-osv · Original source

Published 21 Apr 2025, 15:13 UTC

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.

osv:CVE-2025-3857
Complete source record
{
  "id": "b2027d212428cc440431ca34fceb7572248024f4521ec401f3230f37bafe3325",
  "url": "https://osv.dev/vulnerability/CVE-2025-3857",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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.",
    "evidence": "osv:CVE-2025-3857",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-3857",
      "aliases": [
        "CVE-2025-3857",
        "GHSA-gm2p-wf5c-w3pj"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/amazon-ion/ion-dotnet",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9d416b56e230a39b9ce1c36f90fc1b841f5ff9bf"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.3.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9d416b56e230a39b9ce1c36f90fc1b841f5ff9bf"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.3.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.3.0",
            "v1.2.3",
            "v1.2.2",
            "v1.2.1",
            "v1.2.0",
            "v1.1.0",
            "v1.0.0",
            "v0.9.0-beta",
            "v0.9.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-3857.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:31.221872338Z",
      "provider": "osv",
      "references": [
        "https://aws.amazon.com/security/security-bulletins/AWS-2025-009/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3857.json",
        "https://github.com/amazon-ion/ion-dotnet/security/advisories/GHSA-gm2p-wf5c-w3pj",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-3857",
        "https://github.com/amazon-ion/ion-dotnet/releases/tag/v1.3.1"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-502",
          "CWE-835"
        ],
        "cna_assigner": "AMZN",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3857.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-3857",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 498059,
  "published_at": "2025-04-21T15:13:51.905+00:00"
}