snow: Unauthenticated Nonce Increment (#1866)

This commit is contained in:
Jake McGinty
2024-02-08 21:02:57 -05:00
committed by GitHub
parent f395a84350
commit 514e599cbf

View File

@@ -0,0 +1,28 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "snow"
date = "2024-01-23"
url = "https://github.com/mcginty/snow/security/advisories/GHSA-7g9j-g5jg-3vv3"
categories = ["denial-of-service"]
keywords = ["noise", "nonce", "state"]
[versions]
patched = [">= 0.9.5"]
```
# Unauthenticated Nonce Increment in snow
There was a logic bug where unauthenticated payloads could still cause a nonce
increment in snow's internal state. For an attacker with privileges to inject
packets into the channel over which the Noise session operates, this could
allow a denial-of-service attack which could prevent message delivery by
sending garbage data.
Note that this only affects those who are using the stateful TransportState,
not those using StatelessTransportState.
This has been patched in version 0.9.5, and all users are recommended to
update.