CVE-2024-56363 APTRS has SSTI vulnerability

High 7.8 Published Updated

Attackers can execute arbitrary Python code by injecting Jinja2 syntax into user-supplied template fields in APTRS.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-56363?

CVE-2024-56363 is a high-severity code injection vulnerability in APTRS, published on 23 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

APTRS (Automated Penetration Testing Reporting System) is a Python and Django-based automated reporting tool designed for penetration testers and security organizations. In 1.0, there is a vulnerability in the web application's handling of user-supplied input that is incorporated into a Jinja2 template. Specifically, 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.

Weakness: CWE-97

Which versions are affected by CVE-2024-56363?

How do I fix CVE-2024-56363?

No fix has been published for CVE-2024-56363 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-56363 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-56363 exists.

Sources

Also known as GHSA-h4w2-hvcg-938j.

Is CVE-2024-56363 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free