Skip to content

Potential log injection in reset user endpoint in CKAN

Moderate severity GitHub Reviewed Published Mar 13, 2024 in ckan/ckan • Updated Mar 13, 2024

Package

pip ckan (pip)

Affected versions

< 2.9.11
>= 2.10.0, < 2.10.4

Patched versions

2.9.11
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.

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

References

@amercader amercader published to ckan/ckan Mar 13, 2024
Published to the GitHub Advisory Database Mar 13, 2024
Reviewed Mar 13, 2024
Published by the National Vulnerability Database Mar 13, 2024
Last updated Mar 13, 2024

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

EPSS score

0.043%
(10th percentile)

CVE ID

CVE-2024-27097

GHSA ID

GHSA-8g38-3m6v-232j

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.