PT-2024-36805 · Ckeditor+2 · Ckeditor+2

Hrishikeshkotwalkar

·

Published

2024-12-23

·

Updated

2025-11-13

·

CVE-2024-56363

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions APTRS version 1.0
Description The issue is related to the web application's handling of user-supplied input that is incorporated into a Jinja2 template. When user input is improperly sanitized or validated, an attacker can inject Jinja2 syntax into the template, causing the server to execute arbitrary code. For example, an attacker might be able to inject expressions like {{ config }}, {{ self.class.mro[1].subclasses() }}, or more dangerous payloads that trigger execution of arbitrary Python code. The vulnerability can be reproduced by submitting crafted input to all the template fields handled by ckeditor, that are passed directly to a Jinja2 template. If the input is rendered without sufficient sanitization, it results in the execution of malicious Jinja2 code on the server.
Recommendations To resolve the issue in APTRS version 1.0, update to version 1.0.1, which includes a fix for the high-severity SSTI to code execution vulnerability. As a temporary workaround, consider restricting access to the template fields handled by ckeditor to minimize the risk of exploitation. Additionally, ensure that all user input is properly sanitized and validated before being incorporated into Jinja2 templates.

Exploit

Fix

Weakness Enumeration

Related Identifiers

CVE-2024-56363
GHSA-H4W2-HVCG-938J

Affected Products

Aptrs
Jinja2
Ckeditor