CVE-2024-22204: Whoogle Search Path Traversal vulnerability

CVE-2024-22204 · Severity: low · CVSS 3.1 · Published 2024-01-23

Whoogle Search is a self-hosted metasearch engine. Versions 0.8.3 and prior have a limited file write vulnerability when the configuration options in Whoogle are enabled. The `config` function in `app/routes.py` does not validate the user-controlled `name` variable on line 447 and `config_data` variable on line 437. The `name` variable is insecurely concatenated in `os.path.join`, leading to path manipulation. The POST data from the `config_data` variable is saved with `pickle.dump` which leads to a limited file write. However, the data that is saved is earlier transformed into a dictionary and the `url` key value pair is added before the file is saved on the system. All in all, the issue allows us to save and overwrite files on the system that the application has permissions to, with a dictionary containing arbitrary data and the `url` key value, which is a limited file write. Version 0.8.4 contains a patch for this issue.

Technologies: whoogle-search (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-22204 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-22204 being exploited in the wild.
How severe is CVE-2024-22204?
Low severity, with a CVSS score of 3.1, published 23 January 2024.
Which products and versions are affected?
whoogle-search (PyPI) ECOSYSTEM:introduced=0,fixed=0.8.4, GIT:introduced=0,fixed=3a2e0b262e4a076a20416b45e6b6f23fd265aeda|ECOSYSTEM:introduced=0,fixed=0.8.4.
Is there a fix for CVE-2024-22204?
Yes. whoogle-search (PyPI): upgrade to 0.8.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-22204?
Check whether you run whoogle-search (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • whoogle-search (PyPI): upgrade to 0.8.4 or later
    pip install "whoogle-search>=0.8.4"

Affected products

  • whoogle-search (PyPI) ECOSYSTEM:introduced=0,fixed=0.8.4, GIT:introduced=0,fixed=3a2e0b262e4a076a20416b45e6b6f23fd265aeda|ECOSYSTEM:introduced=0,fixed=0.8.4

Identifiers

  • CVE-2024-22204
  • GHSA-hh2q-qv66-jcqg
  • PYSEC-2024-23

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.