CVE-2024-45299 alf.io's preloaded data as json is not escaped correctly

Medium 6.5 Published Updated

Administrators can inject malicious scripts via unescaped JSON data in alf.io, potentially leading to code execution despite CSP restrictions.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-45299?

CVE-2024-45299 is a medium-severity cross-site scripting vulnerability in alfio-event alf.io, published on 6 Sep 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

alf.io is an open source ticket reservation system for conferences, trade shows, workshops, and meetups. Prior to version 2.0-M5, the preloaded data as json is not escaped correctly, the administrator / event admin could break their own install by inserting non correctly escaped text. The Content-Security-Policy directive blocks any potential script execution. The administrator or event administrator can override the texts for customization purpose. The texts are not properly escaped. Version 2.0-M5 fixes this issue.

Weakness: CWE-116

Which versions are affected by CVE-2024-45299?

It affects 1 product.

Products include Alf Alf.

How do I fix CVE-2024-45299?

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

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-45299 being exploited?

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

Sources

Also known as GHSA-mcx6-25f8-8rqw.

Is CVE-2024-45299 in your software?

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

Check your SBOMs for free