CVE-2024-53829: Codechecker Cross-Site Request Forgery Vulnerability

HIGH
Advisory Identifier: GHSA-f8c8-4pm7-w885
CVSS 8.2
CWE-352
Published
Advisory Summary

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

CVE Identifier CVE-2024-53829
GHSA Identifier GHSA-f8c8-4pm7-w885
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Codechecker
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability None (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.

codechecker fixed: 6.24.5
pip install codechecker>=6.24.5
Verify Direct and Transitive Dependencies

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

### Summary Cross-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. ### Details Security attributes like HttpOnly and SameSite are missing from the session cookie, allowing its use from XHR requests and form submissions. The 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. ### PoC With a superuser logged into CodeChecker. ```html <html><body> <form action="https://codechecker.example.com/v6.58/Products" method="POST" enctype="text/plain"> <input type="text" name='[1,"getProducts",1,1,{}]' value=''> </form> <script>document.forms[0].submit()</script> </body></html> ``` Or the same form attack on any of the applicable endpoints. ### Impact The 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.

CVE-2024-53829 Affected Codechecker Versions

1 component(s)
Fixed Versions:
6.24.5
Product / Package Ecosystem Affected Versions Fixed Version
codechecker
PyPI
< 6.24.5
6.24.5

References

Frequently Asked Questions

What is CVE-2024-53829?
CVE-2024-53829 is a security vulnerability in Codechecker involving Cross-Site Request Forgery in CodeChecker API under CWE-352: Cross-Site Request Forgery (CSRF).
Which Codechecker versions are affected?
Affected versions include releases prior to 6.24.5 across affected packages: codechecker.
What version fixes CVE-2024-53829?
Upgrading to 6.24.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is codechecker affected?
Yes, codechecker is affected in releases prior to 6.24.5. Upgrade your dependency to 6.24.5 or later.
What is the CVSS score of CVE-2024-53829?
CVE-2024-53829 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N.
What CWE is associated with CVE-2024-53829?
CVE-2024-53829 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (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.).
How can I check PyPI dependencies for CVE-2024-53829?
Run the dependency tree command: 'pip show codechecker'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}