CVE-2024-53305: Whoogle search Whoogle Allows Attackers To Execute Vulnerability

HIGH
Advisory Identifier: GHSA-2689-cw26-6cpj
CWE-78
Published
Advisory Summary

CVE-2024-53305 is a HIGH whoogle allows attackers to execute vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Whoogle search libraries in the PyPI ecosystem. The issue involves whoogle allows attackers to execute arbitrary code via supplying a crafted search query. Remediation is available by upgrading affected packages to version 0.9.1.

CVE-2024-53305 at a Glance

CVE Identifier CVE-2024-53305
GHSA Identifier GHSA-2689-cw26-6cpj
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Whoogle search
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2024-53305

To remediate this vulnerability, upgrade all affected Whoogle search dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

whoogle-search fixed: 0.9.1
pip install whoogle-search>=0.9.1
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 whoogle-search

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-53305, inspect your installed packages using pip:

pip show whoogle-search

Analyze the terminal output to locate any version of Whoogle search in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.1), your application is affected.

Note: The pip show whoogle-search command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Whoogle search, 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

An issue in the component /models/config.py of Whoogle search v0.9.0 allows attackers to execute arbitrary code via supplying a crafted search query.

CVE-2024-53305 Affected Whoogle search Versions

1 component(s)
Fixed Versions:
0.9.1
Product / Package Ecosystem Affected Versions Fixed Version
whoogle-search
PyPI
< 0.9.1
0.9.1

References

Frequently Asked Questions

What is CVE-2024-53305?
CVE-2024-53305 is a security vulnerability in Whoogle search involving Whoogle allows attackers to execute arbitrary code via supplying a crafted search query under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Whoogle search versions are affected?
Affected versions include releases prior to 0.9.1 across affected packages: whoogle-search.
What version fixes CVE-2024-53305?
Upgrading to 0.9.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is whoogle-search affected?
Yes, whoogle-search is affected in releases prior to 0.9.1. Upgrade your dependency to 0.9.1 or later.
What CWE is associated with CVE-2024-53305?
CVE-2024-53305 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check PyPI dependencies for CVE-2024-53305?
Run the dependency tree command: 'pip show whoogle-search'. 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-2689-cw26-6cpj",
  "modified" : "2025-04-16T20:38:00Z",
  "published" : "2025-04-16T18:31:54Z",
  "aliases" : [ "CVE-2024-53305" ],
  "summary" : "Whoogle allows attackers to execute arbitrary code via supplying a crafted search query",
  "details" : "An issue in the component /models/config.py of Whoogle search v0.9.0 allows attackers to execute arbitrary code via supplying a crafted search query.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "whoogle-search"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.9.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-53305"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/benbusby/whoogle-search/commit/223f00c3c0533423114f99b30c561278bc0b42ba"
  }, {
    "type" : "WEB",
    "url" : "https://fern89.github.io/posts/whoogle-rce"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/fern89/ca5fe76ad81b4bc363e7341e523a1651"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/benbusby/whoogle-search"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-16T20:38:00Z",
    "nvd_published_at" : "2025-04-16T18:16:03Z"
  }
}