Skip to content

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

HighCVSS 7.5 EPSS 0.69%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
swifturl github.com/square/wire(SwiftURL) <= 6.4.0 after 6.4.0 Fixed
square wire = < 6.4.1; = >= 7.0.0-alpha01, < 7.0.0-alpha04 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
square wire = < 6.4.1 No fix listed
square wire = >= 7.0.0-alpha01, < 7.0.0-alpha04 No fix listed
swifturl github.com/square/wire(SwiftURL) <= 6.4.0 No fix listed

References