Advisory

PYSEC-2026-1251

Also known as: CVE-2024-27097, GHSA-8g38-3m6v-232j

Summary

Potential log injection in reset user endpoint in CKAN

Details

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

Severity

Medium Basis: CVSS v3 score 4.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Dates

Published
2026-07-07 11:45 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

ckan

PyPI · All systems

Affected

  • introduced 0, fixed 2.9.11, introduced 2.10.0, fixed 2.10.4 (ecosystem)

Fixed versions

2.9.11, 2.10.4

Fix

  • Fixed version 2.9.11
    pip install --upgrade ckan==2.9.11
  • Fixed version 2.10.4
    pip install --upgrade ckan==2.10.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences