# CVE-2026-2415: Unsafe variable evaluation in email templates

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v4.0, CNA) `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/RE:L/U:Red`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High; Exploit maturity: Proof of concept; RE: L; U: Red
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.38% (percentile 23, 2026-11-26)
- **CWE:** CWE-627
- **Aliases:** GHSA-r8p8-qw9w-j9qv, PYSEC-2026-110
- **Published:** 2026-02-16T10:15:09.149Z
- **Modified:** 2026-06-17T10:30:55.160Z

## Who should check

- Projects that depend on PyPI package pretix (\>= 2026.1.0, \< 2026.1.1)
- Anyone running pretix \>= 4.16.0, \< 2025.9.0; \>= 2025.9.0, \< 2025.10.0; \>= 2025.10.0, \< 2026.1.0; \>= 2026.1.0, \< 2026.1.1

## Description

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

## Affected and fixed versions

- PyPI `pretix`: affected \>= 2026.1.0, \< 2026.1.1; fixed 2026.1.1, 2025.10.2, 2025.9.4 (osv)
- pretix: \>= 4.16.0, \< 2025.9.0; \>= 2025.9.0, \< 2025.10.0; \>= 2025.10.0, \< 2026.1.0; \>= 2026.1.0, \< 2026.1.1 (cvelist)

## Mitigation

- Upgrade pretix to one of 2026.1.1, 2025.10.2, 2025.9.4 (or later in the same release line).
- Vendor workaround: Limit backend access to trusted users, do not use user-controlled variables in the email template subjects.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-2415. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-2415.md
Affected: pretix >= 2026.1.0, < 2026.1.1
Fixed in: 2026.1.1, 2025.10.2, 2025.9.4

Steps:
1. Search this machine and project for pretix (PyPI), pretix: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-2415 being exploited?

There is no confirmed exploitation: CVE-2026-2415 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.38% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-2415?

High: CVSS 7.5 (v4.0, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-2415?

pretix \>= 2026.1.0, \< 2026.1.1.

### Is there a fix for CVE-2026-2415?

Yes. Fixed in 2026.1.1, 2025.10.2, 2025.9.4. Upgrade pretix to one of 2026.1.1, 2025.10.2, 2025.9.4 (or later in the same release line). Vendor workaround: Limit backend access to trusted users, do not use user-controlled variables in the email template subjects.

### How do I check if I'm affected by CVE-2026-2415?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://pretix.eu/about/en/blog/20260216-release-2026-1-1/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-2415>
- vendor: <https://github.com/advisories/GHSA-r8p8-qw9w-j9qv>
- patch: <https://github.com/pretix/pretix/commit/ba11d24f8dfa4e9d8f03493e56fd8b43983fe297>
- patch: <https://github.com/pretix/pretix/commit/c85afbc621b5f0b1afa618627c45f89323eb0154>
- patch: <https://github.com/pretix/pretix/commit/edac35ed4c5466eb63a202575c337d117ddf1c8e>
- other: <https://github.com/pretix/pretix>
- other: <https://pretix.eu/about/en/blog/20260216-release-2026-1-1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-2415>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-r8p8-qw9w-j9qv> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-110> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-2415> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-2415>
