# CVE-2024-22204: Whoogle Search Limited File Write vulnerability

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-01-23T17:20:29.490Z
- Modified: 2026-06-17T07:10:56.153Z
- Also known as: GHSA-hh2q-qv66-jcqg, PYSEC-2024-23
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- benbusby whoogle-search: < 0.8.4
- whoogle-search (PyPI): before 0.8.4; before 3a2e0b262e4a076a20416b45e6b6f23fd265aeda
- benbusby whoogle_search: before 0.8.4

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://securitylab.github.com/advisories/GHSL-2023-186_GHSL-2023-189_benbusby_whoogle-search/> (exploit, advisory, evidence, third-party-advisory)
- <https://github.com/benbusby/whoogle-search/commit/3a2e0b262e4a076a20416b45e6b6f23fd265aeda> (fix, patch, web)
- <https://github.com/benbusby/whoogle-search/blob/92e8ede24e9277a5440d403f75877209f1269884/app/routes.py#L419-L452> (product, web)
- <https://github.com/benbusby/whoogle-search/blob/92e8ede24e9277a5440d403f75877209f1269884/app/routes.py#L437> (product, web)
- <https://github.com/benbusby/whoogle-search/blob/92e8ede24e9277a5440d403f75877209f1269884/app/routes.py#L444> (product, web)
- <https://github.com/benbusby/whoogle-search/blob/92e8ede24e9277a5440d403f75877209f1269884/app/routes.py#L447> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-22204> (advisory)
- <https://github.com/benbusby/whoogle-search> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/whoogle-search/PYSEC-2024-23.yaml> (web)
- <https://securitylab.github.com/advisories/GHSL-2023-186_GHSL-2023-189_benbusby_whoogle-search> (advisory)
- <https://github.com/advisories/GHSA-hh2q-qv66-jcqg> (advisory)

## Sources

- CVE List: [CVE-2024-22204](https://www.cve.org/CVERecord?id=CVE-2024-22204), CVE Terms of Use, modified 2025-06-17
- GitHub Advisory Database: [GHSA-hh2q-qv66-jcqg](https://github.com/advisories/GHSA-hh2q-qv66-jcqg), CC-BY-4.0, modified 2024-03-14
- NVD: [CVE-2024-22204](https://nvd.nist.gov/vuln/detail/CVE-2024-22204), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-23](https://osv.dev/vulnerability/PYSEC-2024-23), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-22204 · Whole record: https://cve.day/CVE-2024-22204.json · Rebuilt by cve.day 2026-11-25T22:58:36.300Z
