# CVE-2024-22203: Whoogle Search Path Traversal vulnerability

Source: https://junglewise.ai/threats/cve-2024-22203-whoogle-search-path-traversal-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-01-23  
License: CC BY 4.0 with a link back

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

Whoogle Search is a self-hosted metasearch engine. In versions prior to 0.8.4, the `element` method in `app/routes.py` does not validate the user-controlled `src_type` and `element_url` variables and passes them to the `send` method which sends a GET request on lines 339-343 in `request.py`, which leads to a server-side request forgery. This issue allows for crafting GET requests to internal and external resources on behalf of the server. For example, this issue would allow for accessing resources on the internal network that the server has access to, even though these resources may not be accessible on the internet. This issue is fixed in version 0.8.4.

Technologies: [whoogle-search (PyPI)](https://junglewise.ai/threats/technologies/pypi-whoogle-search). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-22203 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-22203 being exploited in the wild.

**How severe is CVE-2024-22203?** 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-22203?** 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-22203?** 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

  ```sh
  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-22203
- GHSA-q97g-c29h-x2p7
- PYSEC-2024-20

## Related threats

- [PYSEC-2026-2048 - Whoogle allows attackers to execute arbitrary code via supplying a crafted search query](https://junglewise.ai/threats/cve-2024-53305-whoogle-arbitrary-code-execution-via-crafted-search-query)
- [Whoogle Search Path Traversal vulnerability](https://junglewise.ai/threats/cve-2024-22204-whoogle-search-path-traversal-vulnerability)
- [Whoogle Search Cross-site Scripting vulnerability](https://junglewise.ai/threats/cve-2024-22417-whoogle-search-cross-site-scripting-vulnerability)
- [Whoogle Search server-side request forgery in window endpoint](https://junglewise.ai/threats/cve-2024-22205-whoogle-search-server-side-request-forgery-in-window-endpoint)
- [Whoogle Search Cross-site Scripting via string parameter](https://junglewise.ai/threats/cve-2022-25303-whoogle-search-cross-site-scripting-via-string-parameter)
