medium4.3
CVE-2024-27097
Potential log injection in reset user endpoint in CKAN
Impact
A user endpoint didn't perform filtering on an incoming parameter, which was added directly to the application log. This could lead to an attacker injecting false log entries or corrupt the log file format. ### Patches This has been fixed in the CKAN 2.9.11 and 2.10.4 versions ### Workarounds Override the `/user/reset` endpoint to filter the `id` parameter in order to exclude newlines
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | ckan | < 2.9.11 | 2.9.11 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Okfn | Ckan | from 2.0 before 2.9.11 from 2.10.0 before 2.10.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/ckan/ckan/commit/81b56c55e5e3651d7fcf9642cd5a489a9b62212c
- https://github.com/ckan/ckan/security/advisories/GHSA-8g38-3m6v-232j
- https://github.com/advisories/GHSA-8g38-3m6v-232j
- https://github.com/ckan/ckan/commit/5fa133e7e9019573066455b5d442e93c62b3fc93
- https://github.com/ckan/ckan/commit/d81f411bff2da7347c343a83e17f5814475b5b64
- https://docs.ckan.org/en/2.10/changelog.html#v-2-10-4-2024-03-13
- https://nvd.nist.gov/vuln/detail/CVE-2024-27097