PYSEC-2026-110
Vulnerability from pysec - Published: 2026-02-16 11:15 - Updated: 2026-05-20 09:19Emails sent by pretix can utilize placeholders that will be filled with customer data. For example, when {name} is used in an email template, it will be replaced with the buyer's name for the final email. This mechanism contained two security-relevant bugs:
-
It was possible to exfiltrate information about the pretix system through specially crafted placeholder names such as {{event.init.code.co_filename}}. This way, an attacker with the ability to control email templates (usually every user of the pretix backend) could retrieve sensitive information from the system configuration, including even database passwords or API keys. pretix does include mechanisms to prevent the usage of such malicious placeholders, however due to a mistake in the code, they were not fully effective for the email subject.
-
Placeholders in subjects and plain text bodies of emails were wrongfully evaluated twice. Therefore, if the first evaluation of a placeholder again contains a placeholder, this second placeholder was rendered. This allows the rendering of placeholders controlled by the ticket buyer, and therefore the exploitation of the first issue as a ticket buyer. Luckily, the only buyer-controlled placeholder available in pretix by default (that is not validated in a way that prevents the issue) is {invoice_company}, which is very unusual (but not impossible) to be contained in an email subject template. In addition to broadening the attack surface of the first issue, this could theoretically also leak information about an order to one of the attendees within that order. However, we also consider this scenario very unlikely under typical conditions.
Out of caution, we recommend that you rotate all passwords and API keys contained in your pretix.cfg https://docs.pretix.eu/self-hosting/config/ file.
| Name | purl | pretix | pkg:pypi/pretix |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "pretix",
"purl": "pkg:pypi/pretix"
},
"ranges": [
{
"events": [
{
"introduced": "4.16.0"
},
{
"fixed": "2026.1.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2023.10.0",
"2023.10.1.post1",
"2023.10.2",
"2023.6.0",
"2023.6.1",
"2023.6.3",
"2023.7.0",
"2023.7.1",
"2023.7.3",
"2023.8.0",
"2023.8.1",
"2023.9.0",
"2023.9.1",
"2024.1.0",
"2024.1.1",
"2024.10.0",
"2024.11.0",
"2024.2.0",
"2024.3.0",
"2024.4.0",
"2024.5.0",
"2024.5.1",
"2024.6.0",
"2024.6.1",
"2024.7.0",
"2024.7.1",
"2024.8.0",
"2024.9.0",
"2025.1.0",
"2025.10.0",
"2025.10.1",
"2025.10.2",
"2025.2.0",
"2025.3.0",
"2025.4.0",
"2025.5.0",
"2025.6.0",
"2025.7.0",
"2025.7.1",
"2025.7.2",
"2025.7.3",
"2025.8.0",
"2025.8.1",
"2025.8.2",
"2025.8.3",
"2025.9.0",
"2025.9.1",
"2025.9.2",
"2025.9.3",
"2025.9.4",
"2026.1.0",
"4.16.0",
"4.16.1",
"4.17.0",
"4.17.1",
"4.18.0",
"4.18.1",
"4.18.2",
"4.18.2.post1",
"4.19.0",
"4.20.0",
"4.20.1",
"4.20.2.post1",
"4.20.4"
]
}
],
"aliases": [
"CVE-2026-2415"
],
"details": "Emails sent by pretix can utilize placeholders that will be filled with customer data. For example, when {name}\n is used in an email template, it will be replaced with the buyer\u0027s \nname for the final email. This mechanism contained two security-relevant\n bugs:\n\n\n\n * \nIt was possible to exfiltrate information about the pretix system through specially crafted placeholder names such as {{event.__init__.__code__.co_filename}}.\n This way, an attacker with the ability to control email templates \n(usually every user of the pretix backend) could retrieve sensitive \ninformation from the system configuration, including even database \npasswords or API keys. pretix does include mechanisms to prevent the usage of such \nmalicious placeholders, however due to a mistake in the code, they were \nnot fully effective for the email subject.\n\n\n\n\n * \nPlaceholders in subjects and plain text bodies of emails were \nwrongfully evaluated twice. Therefore, if the first evaluation of a \nplaceholder again contains a placeholder, this second placeholder was \nrendered. This allows the rendering of placeholders controlled by the \nticket buyer, and therefore the exploitation of the first issue as a \nticket buyer. Luckily, the only buyer-controlled placeholder available \nin pretix by default (that is not validated in a way that prevents the \nissue) is {invoice_company}, which is very unusual (but not\n impossible) to be contained in an email subject template. In addition \nto broadening the attack surface of the first issue, this could \ntheoretically also leak information about an order to one of the \nattendees within that order. However, we also consider this scenario \nvery unlikely under typical conditions.\n\n\nOut of caution, we recommend that you rotate all passwords and API keys contained in your pretix.cfg https://docs.pretix.eu/self-hosting/config/ \u00a0file.",
"id": "PYSEC-2026-110",
"modified": "2026-05-20T09:19:11.567511Z",
"published": "2026-02-16T11:15:56.047Z",
"references": [
{
"type": "FIX",
"url": "https://pretix.eu/about/en/blog/20260216-release-2026-1-1/"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.