RUSTSEC-2024-0376

Source
https://rustsec.org/advisories/RUSTSEC-2024-0376
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0376.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2024-0376
Aliases
Published
2024-10-01T12:00:00Z
Modified
2024-10-02T14:58:53Z
Summary
Remotely exploitable Denial of Service in Tonic
Details

Impact

When using tonic::transport::Server there is a remote DoS attack that can cause the server to exit cleanly on accepting a tcp/tls stream. This can be triggered via causing the accept call to error out with errors there were not covered correctly causing the accept loop to exit.

More information can be found here

Patches

Upgrading to tonic 0.12.3 and above contains the fix.

Workarounds

A custom accept loop is a possible workaround.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / tonic

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.11.1-0
Fixed
0.12.3

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": [
        "denial-of-service"
    ]
}