CVE-2024-29887: Serverpod client Serverpod Client Accepts Any Certificate Vulnerability
HIGHCVE-2024-29887 is a HIGH (CVSS 7.4) serverpod client accepts any certificate vulnerability (CWE-295: Improper Certificate Validation) affecting Serverpod client libraries in the Pub ecosystem. The issue involves serverpod client accepts any certificate. Remediation is available by upgrading affected packages to version 1.2.6.
CVE-2024-29887 at a Glance
Security Impact
CVSS: 7.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2024-29887
To remediate this vulnerability, upgrade all affected Serverpod client dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade serverpod_client to 1.2.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for serverpod_client
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-29887, inspect your project dependencies for Serverpod client:
inspect dependencies for serverpod_client
Analyze the terminal output to locate any version of Serverpod client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.6), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Serverpod client, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-29887 Affected Serverpod client Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
serverpod_client
|
Pub |
< 1.2.6
|
1.2.6
|
References
Frequently Asked Questions
What is CVE-2024-29887?
Which Serverpod client versions are affected?
What version fixes CVE-2024-29887?
Is serverpod_client affected?
What is the CVSS score of CVE-2024-29887?
What CWE is associated with CVE-2024-29887?
How can I check Pub dependencies for CVE-2024-29887?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h6x7-r5rg-x5fw",
"modified" : "2024-03-28T17:53:26Z",
"published" : "2024-03-28T17:53:26Z",
"aliases" : [ "CVE-2024-29887" ],
"summary" : "Serverpod client accepts any certificate",
"details" : "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. \n\nAn attacker would need to be able to intercept the traffic and highjack the connection to the server for this vulnerability to be used. \n\n### Impact\nAll versions of `serverpod_client` pre `1.2.6`\n\n### Patches\nUpgrading to version `1.2.6` resolves this issue.\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Pub",
"name" : "serverpod_client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/serverpod/serverpod/security/advisories/GHSA-h6x7-r5rg-x5fw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29887"
}, {
"type" : "WEB",
"url" : "https://github.com/serverpod/serverpod/commit/d55bf8d12967fc7955a875cb3e0f9693bd6d2c71"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/serverpod/serverpod"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-28T17:53:26Z",
"nvd_published_at" : "2024-03-27T19:15:49Z"
}
}