CVE-2021-36155 Uncontrolled Resource Consumption in LengthPrefixedMessageReader

High 7.5 Published Updated

Remote attackers can cause denial of service in gRPC Swift by triggering uncontrolled resource consumption via arbitrary buffer allocations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-36155?

CVE-2021-36155 is a high-severity denial of service vulnerability in n/a, published on 9 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

LengthPrefixedMessageReader in gRPC Swift 1.1.0 and earlier allocates buffers of arbitrary length, which allows remote attackers to cause uncontrolled resource consumption and deny service.

Weakness: CWE-770

Which versions are affected by CVE-2021-36155?

2 open source packages ship an affected version, including github.com/grpc/grpc-swift. It affects 1 product.

PackageAffectedFixed in
github.com/grpc/grpc-swift SwiftURLAll versions1.2.0
github.com/grpc/grpc-swift SwiftURLAll versions1.2.0

Products include Linuxfoundation Grpc Swift.

How do I fix CVE-2021-36155?

Upgrade github.com/grpc/grpc-swift to 1.2.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-36155 being exploited?

There is no known exploitation of CVE-2021-36155 in the wild and no public exploit code.

Sources

Also known as GHSA-rxmj-hg9v-vp3p.

Is CVE-2021-36155 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free