{"id":"CVE-2026-63126","published":"2026-09-16T18:13:33Z","modified":"2026-09-16T19:41:42Z","title":"Wire: Unauthenticated decoder crash via 32-bit length integer overflow in ByteArrayProtoReader32 (incomplete fix of…","vendor":"square","product":"wire","tier":"tail","description":{"text":"Wire provides gRPC and protocol buffers for Android, Kotlin, Swift, and Java. Prior to 6.4.5 and 7.0.0-alpha04, Wire protobuf readers do not consistently validate attacker-controlled lengths against the current logical message boundary before advancing cursors, pointers, limits, slices, or allocations. In Kotlin, ProtoAdapter.decode(ByteArray) and ProtoAdapter.decode(ByteString) use ByteArrayProtoReader32.internalNextLengthDelimited(), where a positive oversized length can wrap pos + length to a negative limit and escape the existing negative-length check. Related ProtoReader, ReadBuffer.readVarint(), ReadBuffer.verifyAdditional(count:), packed-repeated, nested-message, and ProtoDecoder.decodeSizeDelimited(_:from:) paths can cross logical boundaries, perform pointer arithmetic, reserve capacity, or convert an unrepresentable size before proving the requested bytes exist. An attacker who supplies malformed protobuf bytes can cause unchecked exceptions, traps, out-of-bounds behavior, or excessive allocation, resulting in denial of service without known confidentiality, integrity, or code-execution impact. This issue is fixed in versions 6.4.5 and 7.0.0-alpha04.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00823,"percentile":0.58232,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/square/wire/security/advisories/GHSA-9rm7-3qhh-h2mc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/square/wire/pull/3635","tags":["x_refsource_MISC"]},{"url":"https://github.com/square/wire/commit/082d5d83cec57ef68f1dd7d3e3d1d641c1fb670f","tags":["x_refsource_MISC"]},{"url":"https://github.com/square/wire/commit/25ebcabb9ab7f12d1d77af75ecbc51726fddc015","tags":["x_refsource_MISC"]},{"url":"https://github.com/square/wire/releases/tag/6.4.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/square/wire/releases/tag/7.0.0-alpha04","tags":["x_refsource_MISC"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":11.65},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"square","affectedVersions":[{"vendor":"square","product":"wire","versions":["< 6.4.5",">= 7.0.0-alpha01, < 7.0.0-alpha04"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-16T19:41:27.470490Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.squareup.wire:wire-runtime","vulnerableRanges":["<6.4.5",">=7.0.0-alpha01, <7.0.0-alpha04"],"patched":["6.4.5","7.0.0-alpha04"],"from":["GHSA-9rm7-3qhh-h2mc"],"provenance":"source"}],"summary":{"text":"The Wire protobuf library for Android, Kotlin, Swift and Java contains a flaw in its decoders, where attacker-controlled length values are not consistently validated against message boundaries before cursors, slices or allocations are advanced, most notably a 32-bit integer overflow in ByteArrayProtoReader32 reached via ProtoAdapter.decode in Kotlin. An attacker who can supply malformed protobuf bytes to a remote endpoint or input path that uses the affected decoders, with no authentication or user interaction required, can crash the decoder or exhaust resources, causing denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:37Z"},"euvd":{"id":"EUVD-2026-80937","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-square-wire-cve-2024-58103","parents":[{"from":"CVE-2026-45799","to":"CVE-2026-63126","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.squareup.wire:wire-runtime","fromFixed":"6.3.0","toFixed":"6.4.5","daysApart":61},{"kind":"version-step","provenance":"source","package":"Maven:com.squareup.wire:wire-runtime","fromFixed":"7.0.0-alpha03","toFixed":"7.0.0-alpha04","daysApart":61},{"kind":"same-code","provenance":"machine","files":["wire-runtime/src/commonMain/kotlin/com/squareup/wire/ByteArrayProtoReader32.kt","wire-runtime/src/commonMain/kotlin/com/squareup/wire/ProtoReader.kt","wire-runtime/src/commonTest/kotlin/com/squareup/wire/ProtoReader32Test.kt","wire-runtime/src/commonTest/kotlin/com/squareup/wire/ProtoReaderTest.kt"],"commits":["https://github.com/square/wire/commit/47d5b0dba53935d5332cd41a80a353b3fc90e7b0","https://github.com/square/wire/commit/e4e56fab38a547d9625f05c97f1d8f0bcc3a5773","https://github.com/square/wire/commit/082d5d83cec57ef68f1dd7d3e3d1d641c1fb670f","https://github.com/square/wire/commit/25ebcabb9ab7f12d1d77af75ecbc51726fddc015"],"basis":"shared function","functions":["ByteArrayProtoReader32","ProtoReader","ProtoReader32Test","ProtoReaderTest"]}]},{"from":"CVE-2024-58103","to":"CVE-2026-63126","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["wire-runtime/src/commonMain/kotlin/com/squareup/wire/ByteArrayProtoReader32.kt","wire-runtime/src/commonMain/kotlin/com/squareup/wire/ProtoReader.kt","wire-runtime/src/commonTest/kotlin/com/squareup/wire/ProtoReader32Test.kt","wire-runtime/src/commonTest/kotlin/com/squareup/wire/ProtoReaderTest.kt"],"commits":["https://github.com/square/wire/commit/b90e60c09befaff836a2fc2ee4d678451b2ec75d","https://github.com/square/wire/commit/082d5d83cec57ef68f1dd7d3e3d1d641c1fb670f","https://github.com/square/wire/commit/25ebcabb9ab7f12d1d77af75ecbc51726fddc015"],"basis":"shared function","functions":["ByteArrayProtoReader32","ProtoReader","ProtoReader32Test","ProtoReaderTest"]}]}],"packageHistory":[{"cve":"CVE-2024-58103","published":"2025-03-16","fixed":"5.2.0","kev":false},{"cve":"CVE-2026-45799","published":"2026-07-17","fixed":"7.0.0-alpha03","kev":false},{"cve":"CVE-2026-63126","published":"2026-09-16","fixed":"7.0.0-alpha04","kev":false}],"package":"Maven:com.squareup.wire:wire-runtime"}}