Skip to content
Heist/ feed
Back to feed
High

Wire Swift runtime: negative LENGTH_DELIMITED length in skipGroup() crashes any protobuf-decoding service

Type: advisorySources: OSV

Wire provides gRPC and protocol buffers for Android, Kotlin, Swift, and Java. Prior to 6.4.1 and 7.0.0-alpha04, Wire's Swift runtime ProtoReader.skipGroup(expectedEndTag:unknownFieldsWriter:) accepts a negative length for a LENGTH_DELIMITED field inside an unknown START_GROUP field. ProtoReader.readData() forwards the negative count to ReadBuffer.readData(count:), whose upper-bound-only check permits the value to reach Foundation Data(bytes:count:) and trigger an unrecoverable process trap instead of a catchable ProtoDecoder.Error. Any Swift process decoding untrusted protobuf bytes can be crashed without authentication, user interaction, or knowledge of the target schema. This issue is fixed in versions 6.4.1 and 7.0.0-alpha04.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-61695
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 01:15 UTC · Revision 1

Source evidence

Wire Swift runtime: negative LENGTH_DELIMITED length in skipGroup() crashes any protobuf-decoding service

core-osv · Original source

Published 23 Sept 2026, 18:44 UTC

Wire provides gRPC and protocol buffers for Android, Kotlin, Swift, and Java. Prior to 6.4.1 and 7.0.0-alpha04, Wire's Swift runtime ProtoReader.skipGroup(expectedEndTag:unknownFieldsWriter:) accepts a negative length for a LENGTH_DELIMITED field inside an unknown START_GROUP field. ProtoReader.readData() forwards the negative count to ReadBuffer.readData(count:), whose upper-bound-only check permits the value to reach Foundation Data(bytes:count:) and trigger an unrecoverable process trap instead of a catchable ProtoDecoder.Error. Any Swift process decoding untrusted protobuf bytes can be crashed without authentication, user interaction, or knowledge of the target schema. This issue is fixed in versions 6.4.1 and 7.0.0-alpha04.

osv:CVE-2026-61695
Complete source record
{
  "id": "bd9014e87b119c311d844b5c775460e8c922a51d500fcf871130095f5d78e330",
  "url": "https://osv.dev/vulnerability/CVE-2026-61695",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Wire Swift runtime: negative LENGTH_DELIMITED length in skipGroup() crashes any protobuf-decoding service",
    "summary": "Wire provides gRPC and protocol buffers for Android, Kotlin, Swift, and Java. Prior to 6.4.1 and 7.0.0-alpha04, Wire's Swift runtime ProtoReader.skipGroup(expectedEndTag:unknownFieldsWriter:) accepts a negative length for a LENGTH_DELIMITED field inside an unknown START_GROUP field. ProtoReader.readData() forwards the negative count to ReadBuffer.readData(count:), whose upper-bound-only check permits the value to reach Foundation Data(bytes:count:) and trigger an unrecoverable process trap instead of a catchable ProtoDecoder.Error. Any Swift process decoding untrusted protobuf bytes can be crashed without authentication, user interaction, or knowledge of the target schema. This issue is fixed in versions 6.4.1 and 7.0.0-alpha04.",
    "evidence": "osv:CVE-2026-61695",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-61695",
      "aliases": [
        "CVE-2026-61695",
        "GHSA-86wm-r4c5-2rc9"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/square/wire",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ab7d1fb266da480dfdd8445deaa5e4c7cb39106c"
                },
                {
                  "introduced": "5df07027c6b180d9a807f5b8afda13760c7a114b"
                },
                {
                  "fixed": "94f6bb7964d2ad5c691ce325f85f1a7556eb247b"
                },
                {
                  "fixed": "24043b6b3a5e5974a978f2745b76d50b31407c1c"
                },
                {
                  "fixed": "81ff7f24a6795d9a8be2e03f272b2d979a5d2c7e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.4.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "7.0.0-alpha01"
                      },
                      {
                        "fixed": "7.0.0-alpha04"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "24043b6b3a5e5974a978f2745b76d50b31407c1c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "81ff7f24a6795d9a8be2e03f272b2d979a5d2c7e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ab7d1fb266da480dfdd8445deaa5e4c7cb39106c"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "6.4.1"
                  },
                  {
                    "range": [
                      {
                        "fixed": "94f6bb7964d2ad5c691ce325f85f1a7556eb247b"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "7.0.0-alpha04"
                  }
                ]
              }
            }
          ],
          "versions": [
            "6.4.0",
            "6.3.0",
            "7.0.0-alpha03",
            "6.2.0",
            "7.0.0-alpha02",
            "7.0.0-alpha01",
            "6.1.0",
            "6.0.0",
            "6.0.0-alpha03",
            "6.0.0-alpha02",
            "5.4.0",
            "6.0.0-alpha01",
            "5.4.1-alpha.20250925.224059.6ad9f5738",
            "5.3.11",
            "5.3.10",
            "5.3.8",
            "5.3.7",
            "5.3.6",
            "5.4.0-alpha.20250801.192044.864c6c36c",
            "5.3.5",
            "5.3.4",
            "5.3.3",
            "5.3.2",
            "5.4.0-alpha.20250516.195227.10d8b20b2",
            "5.4.0-alpha.20250429.015041.560b597d7",
            "5.4.0-alpha.20250326.102750.35956c85e",
            "5.3.1",
            "5.3.0",
            "5.3.0-alpha.20250212.164711.8dddcef3d.v2",
            "5.3.0-alpha.20250212.164711.8dddcef3d",
            "5.3.0-alpha.20250123.214551.e8d52ce62",
            "5.2.1",
            "5.2.0",
            "5.1.1-alpha.20241206.191847.01e8f3013",
            "5.1.1-alpha.20241127.134142.06e7597bb.v2",
            "5.1.1-alpha.20241017.175147.633cf04b4",
            "5.1.1-alpha.20241016.095539.16b796241",
            "5.1.1-alpha.20241004.194750.5a2084117",
            "5.1.1-alpha.20240920.094122.b98afbb7d.1304",
            "5.1.1-alpha.20240917.084212.96bbc3907",
            "5.1.0",
            "5.0.0",
            "5.0.0-alpha04",
            "5.0.0-alpha03",
            "5.0.0-alpha02",
            "5.0.0-alpha02-square02",
            "5.0.0-alpha02-square01",
            "5.0.0-alpha01",
            "5.0.0-alpha.square.9",
            "5.0.0-alpha.square.8",
            "5.0.0-alpha.square.7",
            "5.0.0-alpha.square.6",
            "4.9.6",
            "4.9.5",
            "4.9.4",
            "4.9.2-square02",
            "4.9.4-square02",
            "4.9.4-square01",
            "4.9.3",
            "4.9.3-square01",
            "4.9.2",
            "4.9.2-square04",
            "4.9.2-square03",
            "4.9.1",
            "4.9.1-square01",
            "4.9.0",
            "4.7.0",
            "4.8.1",
            "4.8.0",
            "4.7.2",
            "4.7.1",
            "4.6.2",
            "4.6.1",
            "4.6.0",
            "4.5.6",
            "4.5.5",
            "4.5.4",
            "4.5.3",
            "4.5.2",
            "4.5.1",
            "4.5.0",
            "4.4.3",
            "4.4.2",
            "4.4.1",
            "4.4.0",
            "4.3.0",
            "4.2.0",
            "4.1.1",
            "4.1.0",
            "4.0.1",
            "4.0.0",
            "4.0.0-alpha.20",
            "4.0.0-alpha.18",
            "4.0.0-alpha.17",
            "4.0.0-alpha.16",
            "3.7.0",
            "parent-4.0.0-alpha.15",
            "4.0.0-alpha.15",
            "parent-4.0.0-alpha.14",
            "parent-4.0.0-alpha13",
            "4.0.0-alpha13",
            "parent-4.0.0-alpha.13",
            "parent-4.0.0-alpha.12",
            "4.0.0-alpha12",
            "4.0.0-alpha.11",
            "4.0.0-alpha.10",
            "4.0.0-alpha.9",
            "4.0.0-alpha.8",
            "4.0.0-alpha.7",
            "4.0.0-alpha.6",
            "4.0.0-alpha.5",
            "4.0.0-alpha.4",
            "4.0.0-alpha.3",
            "4.0.0-alpha1",
            "4.0.0-alpha.2",
            "3.8.0-alpha1",
            "3.6.1",
            "3.6.1-alpha1",
            "3.6.0",
            "3.6.0-alpha1",
            "3.5.1-alpha2",
            "3.5.1-alpha1",
            "3.5.0",
            "3.4.0",
            "3.3.0",
            "3.3.0-alpha2",
            "3.3.0-alpha1",
            "parent-3.2.2",
            "parent-3.2.1",
            "parent-3.2.0",
            "parent-3.1.0",
            "3.0.3",
            "3.0.2",
            "wire-3.0.1",
            "parent-3.0.1",
            "3.0.0",
            "3.0.0-rc03",
            "3.0.0-rc02",
            "parent-3.0.0-rc02",
            "3.0.0-rc01",
            "3.0.0-alpha03",
            "3.0.0-alpha02",
            "3.0.0-alpha01",
            "wire-2.3.0-RC1",
            "wire-2.2.0",
            "wire-2.1.2",
            "wire-2.1.1",
            "wire-2.1.0",
            "wire-2.0.3",
            "wire-2.0.2",
            "wire-2.0.1",
            "wire-2.0.0",
            "wire-2.0.0-BETA10",
            "wire-2.0.0-BETA9",
            "wire-2.0.0-BETA8",
            "wire-2.0.0-BETA7",
            "wire-2.0.0-BETA6",
            "wire-2.0.0-BETA5",
            "wire-2.0.0-BETA4",
            "wire-2.0.0-BETA3",
            "wire-2.0.0-BETA2",
            "wire-2.0.0-BETA1",
            "wire-1.8.0",
            "wire-1.7.0",
            "wire-1.6.1",
            "wire-1.6.0",
            "wire-1.5.2",
            "wire-1.5.1",
            "wire-1.5.0",
            "wire-1.4.0",
            "wire-1.3.3",
            "wire-1.3.2",
            "wire-1.3.1",
            "wire-1.3.0",
            "wire-1.2.0",
            "wire-1.1.1",
            "wire-1.1.0",
            "wire-1.0.1",
            "wire-1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-61695.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.763536136Z",
      "provider": "osv",
      "references": [
        "https://github.com/square/wire/releases/tag/6.4.1",
        "https://github.com/square/wire/releases/tag/7.0.0-alpha04",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61695.json",
        "https://github.com/square/wire/security/advisories/GHSA-86wm-r4c5-2rc9",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-61695",
        "https://github.com/square/wire/commit/24043b6b3a5e5974a978f2745b76d50b31407c1c",
        "https://github.com/square/wire/commit/81ff7f24a6795d9a8be2e03f272b2d979a5d2c7e",
        "https://github.com/square/wire/pull/3616"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-129"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61695.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-61695",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491505,
  "published_at": "2026-09-23T18:44:11.336+00:00"
}