CVE-2026-63126: CWE-190: Integer Overflow or Wraparound in square wire
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.
AI Analysis
Technical Summary
The Wire library's protobuf readers fail to consistently validate length fields controlled by attackers before advancing internal cursors and buffers. In Kotlin, the ProtoAdapter.decode methods use ByteArrayProtoReader32.internalNextLengthDelimited(), where a positive oversized length can cause integer overflow, wrapping the position plus length to a negative limit and bypassing negative-length checks. Similar issues exist in related ProtoReader and ReadBuffer methods, allowing crossing of logical message boundaries and unsafe memory operations. An attacker supplying malformed protobuf bytes can trigger unchecked exceptions, out-of-bounds memory access, or excessive allocations, resulting in denial of service. The vulnerability affects versions prior to 6.4.5 and from 7.0.0-alpha01 up to but not including 7.0.0-alpha04. The issue is resolved in 6.4.5 and 7.0.0-alpha04.
Potential Impact
Exploitation of this vulnerability can cause denial of service through application crashes or excessive memory consumption due to unchecked exceptions and out-of-bounds memory operations. There is no known impact on confidentiality, integrity, or remote code execution.
Mitigation Recommendations
Upgrade to Wire library version 6.4.5 or later, or to 7.0.0-alpha04 or later. These versions include fixes that properly validate length fields and prevent integer overflow conditions. No other mitigations are indicated.
CVE-2026-63126: CWE-190: Integer Overflow or Wraparound in square wire
Description
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.
CVSS v3.1
Score 7.5high
Affected software
square
wire
pkg:github/square/wireRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Wire library's protobuf readers fail to consistently validate length fields controlled by attackers before advancing internal cursors and buffers. In Kotlin, the ProtoAdapter.decode methods use ByteArrayProtoReader32.internalNextLengthDelimited(), where a positive oversized length can cause integer overflow, wrapping the position plus length to a negative limit and bypassing negative-length checks. Similar issues exist in related ProtoReader and ReadBuffer methods, allowing crossing of logical message boundaries and unsafe memory operations. An attacker supplying malformed protobuf bytes can trigger unchecked exceptions, out-of-bounds memory access, or excessive allocations, resulting in denial of service. The vulnerability affects versions prior to 6.4.5 and from 7.0.0-alpha01 up to but not including 7.0.0-alpha04. The issue is resolved in 6.4.5 and 7.0.0-alpha04.
Potential Impact
Exploitation of this vulnerability can cause denial of service through application crashes or excessive memory consumption due to unchecked exceptions and out-of-bounds memory operations. There is no known impact on confidentiality, integrity, or remote code execution.
Mitigation Recommendations
Upgrade to Wire library version 6.4.5 or later, or to 7.0.0-alpha04 or later. These versions include fixes that properly validate length fields and prevent integer overflow conditions. No other mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-15T16:54:55.816Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aaae0a755bf5e2cf500c4e2
Added to database: 09/16/2026, 18:32:07 UTC
Last enriched: 09/16/2026, 18:46:32 UTC
Last updated: 09/17/2026, 04:53:14 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.