CVE-2021-36154 Uncontrolled Recursion in HTTP2ToRawGRPCServerCodec

High 7.5 Published Updated

Remote attackers can cause denial of service in gRPC Swift by sending many small messages in a single HTTP/2 frame, triggering stack exhaustion.

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-36154?

CVE-2021-36154 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

HTTP2ToRawGRPCServerCodec in gRPC Swift 1.1.1 and earlier allows remote attackers to deny service via the delivery of many small messages within a single HTTP/2 frame, leading to Uncontrolled Recursion and stack consumption.

Weakness: CWE-674

Which versions are affected by CVE-2021-36154?

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-36154?

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-36154 being exploited?

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

Sources

Also known as GHSA-4rhq-vq24-88gw.

Is CVE-2021-36154 in your software?

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

Check your SBOMs for free