CVE-2024-29887 Serverpod client accepts any certificate

High 7.4 Published Updated

The Serverpod client library fails to validate TLS certificates, allowing attackers to perform man-in-the-middle attacks and intercept or modify encrypted traffic.

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

What is CVE-2024-29887?

CVE-2024-29887 is a high-severity vulnerability in serverpod, published on 27 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Serverpod is an app and web server, built for the Flutter and Dart ecosystem. This bug bypassed the validation of TSL certificates on all none web HTTP clients in the `serverpod_client` package. Making them susceptible to a man in the middle attack against encrypted traffic between the client device and the server. An attacker would need to be able to intercept the traffic and highjack the connection to the server for this vulnerability to be used. Upgrading to version `1.2.6` resolves this issue.

Weakness: CWE-295

Which versions are affected by CVE-2024-29887?

2 open source packages ship an affected version, including serverpod_client. It affects 1 product.

PackageAffectedFixed in
serverpod_client PubAll versions1.2.6
serverpod_client PubAll versions1.2.6

Products include Serverpod Serverpod.

How do I fix CVE-2024-29887?

Upgrade serverpod_client to 1.2.6 or later.

Is CVE-2024-29887 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29887 exists.

Sources

Also known as GHSA-h6x7-r5rg-x5fw.

Is CVE-2024-29887 in your software?

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

Check your SBOMs for free