# SwiftNIO SSH: Unauthenticated out-of-bounds stack write via oversized ECDSA signature in swift-nio-ssh (CVE-2026-43798)

**URL:** <https://forums.swift.org/t/swiftnio-ssh-unauthenticated-out-of-bounds-stack-write-via-oversized-ecdsa-signature-in-swift-nio-ssh-cve-2026-43798/88404>\
**Category:** Security Updates\
**Tags:** security\
**Created:** [July 20, 2026, 5:18pm UTC](https://forums.swift.org/t/swiftnio-ssh-unauthenticated-out-of-bounds-stack-write-via-oversized-ecdsa-signature-in-swift-nio-ssh-cve-2026-43798/88404 "2026-07-20T17:18:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafaelcepeda](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/rafaelcepeda/32/44723_2.png) [@rafaelcepeda](https://forums.swift.org/u/rafaelcepeda)\
**Post date:** [July 20, 2026, 5:18pm UTC](https://forums.swift.org/t/swiftnio-ssh-unauthenticated-out-of-bounds-stack-write-via-oversized-ecdsa-signature-in-swift-nio-ssh-cve-2026-43798/88404/1 "2026-07-20T17:18:49Z")

</div>

TL;DR: Users of SwiftNIO SSH should update to [0.14.1](https://github.com/apple/swift-nio-ssh/releases/tag/0.14.1) as soon as possible.

SwiftNIO SSH has a security vulnerability where an unauthenticated attacker can write data out of bounds on the stack. This happens because the system does not check the length of incoming ECDSA signature integers before copying them, allowing oversized values to overwrite memory prior to cryptographic verification.

This attack is based on the signature type in an attacker's message, not on the configuration of any specific accepted algorithm. Algorithm restrictions do **not** help. You can read the full [security advisory on GitHub](https://github.com/apple/swift-nio-ssh/security/advisories/GHSA-998x-vgvp-xwpc).

This vulnerability was reported by security researcher [@Yanchon918s](https://github.com/Yanchon918s).

---

<div class="post-metadata">

**Author:** ![maartene](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/maartene/32/42076_2.png) [@maartene](https://forums.swift.org/u/maartene)\
**Post date:** [July 20, 2026, 8:00pm UTC](https://forums.swift.org/t/swiftnio-ssh-unauthenticated-out-of-bounds-stack-write-via-oversized-ecdsa-signature-in-swift-nio-ssh-cve-2026-43798/88404/2 "2026-07-20T20:00:13Z")

</div>

Thank you and [Yanchon918s (Yanchon) · GitHub](https://github.com/Yanchon918s) for brining this to our attention. 🙌
