CVE-2024-53829: Codechecker Cross-Site Request Forgery Vulnerability
HIGHCVE-2024-53829 is a HIGH (CVSS 8.2) cross-site request forgery vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Codechecker libraries in the PyPI ecosystem. The issue involves cross-site request forgery in codechecker api. Remediation is available by upgrading affected packages to version 6.24.5.
CVE-2024-53829 at a Glance
Security Impact
CVSS: 8.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N).
How to Fix CVE-2024-53829
To remediate this vulnerability, upgrade all affected Codechecker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install codechecker>=6.24.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show codechecker
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-53829, inspect your installed packages using pip:
pip show codechecker
Analyze the terminal output to locate any version of Codechecker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.24.5), your application is affected.
Note: The pip show codechecker command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Codechecker, 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-53829 Affected Codechecker Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
codechecker
|
PyPI |
< 6.24.5
|
6.24.5
|
References
Frequently Asked Questions
What is CVE-2024-53829?
Which Codechecker versions are affected?
What version fixes CVE-2024-53829?
Is codechecker affected?
What is the CVSS score of CVE-2024-53829?
What CWE is associated with CVE-2024-53829?
How can I check PyPI dependencies for CVE-2024-53829?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f8c8-4pm7-w885",
"modified" : "2025-04-08T17:52:35Z",
"published" : "2025-01-21T20:25:05Z",
"aliases" : [ "CVE-2024-53829" ],
"summary" : "Cross-Site Request Forgery in CodeChecker API",
"details" : "### Summary\nCross-site request forgery allows an unauthenticated attacker to hijack the authentication of a logged in user, and use the web API with the same permissions.\n\n### Details\nSecurity attributes like HttpOnly and SameSite are missing from the session cookie, allowing its use from XHR requests and form submissions.\nThe CodeChecker API endpoints only require the session cookie, they do not require a CSRF token, and missing HTTP headers allow the form submission to succeed (but not XHR). This means that the attacker needs to know the ID of products to edit or delete them, but it does not need knowledge to create new products with the SQLite backend.\n\n### PoC\nWith a superuser logged into CodeChecker.\n\n```html\n<html><body>\n <form action=\"https://codechecker.example.com/v6.58/Products\" method=\"POST\" enctype=\"text/plain\">\n <input type=\"text\" name='[1,\"getProducts\",1,1,{}]' value=''>\n </form>\n <script>document.forms[0].submit()</script>\n</body></html>\n```\nOr the same form attack on any of the applicable endpoints.\n\n### Impact\nThe vulnerability allows an attacker to make requests to CodeChecker as the currently logged in user, including but not limited to adding, removing or editing products. The attacker needs to know the ID of the available products to modify or delete them. The attacker cannot directly exfiltrate data from CodeChecker, due to being limited to form-based CSRF.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "codechecker"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.24.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Ericsson/codechecker/security/advisories/GHSA-f8c8-4pm7-w885"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-53829"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Ericsson/codechecker"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/codechecker/PYSEC-2025-12.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-21T20:25:05Z",
"nvd_published_at" : "2025-01-21T15:15:13Z"
}
}