CVE-2023-24535 Panic when parsing invalid messages in google.golang.org/protobuf
Attackers can cause a panic and denial of service by sending specially crafted invalid text-format protobuf messages to applications using the Go protobuf library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-24535?
CVE-2023-24535 is a high-severity denial of service vulnerability in google.golang.org/protobuf/encoding/prototext, published on 8 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Parsing invalid messages can panic. Parsing a text-format message which contains a potential number consisting of a minus sign, one or more characters of whitespace, and no further input will cause a panic.
Weakness: CWE-125
Which versions are affected by CVE-2023-24535?
3 open source packages ship an affected version, including google.golang.org/protobuf. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
google.golang.org/protobuf Go | From 1.29.0 | 1.29.1 |
google.golang.org/protobuf Go | From 1.29.0 | 1.29.1 |
google.golang.org/protobuf Go | From 1.29.0 | 1.29.1 |
Products include Protobuf Protobuf.
How do I fix CVE-2023-24535?
Upgrade google.golang.org/protobuf to 1.29.1 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-2023-24535 being exploited?
There is no known exploitation of CVE-2023-24535 in the wild and no public exploit code.
Sources
Also known as GHSA-hw7c-3rfg-p46j, GO-2023-1631, UBUNTU-CVE-2023-24535.