# CVE-2023-50461: Configuration Injection in extension "Direct Mail" (direct_mail)

> Authenticated attackers can inject configuration to achieve arbitrary code execution in TYPO3 Direct Mail extension.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 14 Sep 2026
- **Updated:** 14 Sep 2026
- **Also known as:** GHSA-p6xx-fhfw-7mj7

## What is CVE-2023-50461?

CVE-2023-50461 is a high-severity code injection vulnerability in TYPO3 direct_mail, published on 14 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

An issue was discovered in the direct_mail (aka Direct Mail) extension through 9.5.1 for TYPO3. The Configuration backend module of the extension allows an authenticated user to write to an arbitrary TSConfig page for folders configured as Direct Mail. Exploiting this may lead to Configuration Injection (TYPO3 10.4 and above) and to Arbitrary Code Execution (TYPO3 9.5 and below). A valid backend user account, with access to the Direct Mail Configuration backend module, is needed to exploit this.

Weakness: CWE-863 (Incorrect Authorization)

## Which versions are affected by CVE-2023-50461?

6 open source packages ship an affected version, including directmailteam/direct-mail.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `directmailteam/direct-mail` | Packagist | All versions | 6.0.3 |
| `directmailteam/direct-mail` | Packagist | All versions | 6.0.3 |
| `directmailteam/direct-mail` | Packagist | From 7.0.0 | 7.0.3 |
| `directmailteam/direct-mail` | Packagist | From 7.0.0 | 7.0.3 |
| `directmailteam/direct-mail` | Packagist | From 8.0.0 | 9.5.2 |
| `directmailteam/direct-mail` | Packagist | From 8.0.0 | 9.5.2 |

## How do I fix CVE-2023-50461?

Upgrade directmailteam/direct-mail to a fixed version for your release line: 6.0.3, 7.0.3 or 9.5.2.

## Is CVE-2023-50461 being exploited?

There is no known exploitation of CVE-2023-50461 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-50461 and fix it if it is affected.

What it is: CVE-2023-50461 is a high-severity code injection vulnerability in TYPO3 direct_mail, published on 14 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-50461 in the wild and no public exploit code.

Affected packages and fixed versions:
- directmailteam/direct-mail (Packagist): affected all versions; fixed in 6.0.3
- directmailteam/direct-mail (Packagist): affected all versions; fixed in 6.0.3
- directmailteam/direct-mail (Packagist): affected from 7.0.0; fixed in 7.0.3
- directmailteam/direct-mail (Packagist): affected from 7.0.0; fixed in 7.0.3
- directmailteam/direct-mail (Packagist): affected from 8.0.0; fixed in 9.5.2
- directmailteam/direct-mail (Packagist): affected from 8.0.0; fixed in 9.5.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-50461/ (Markdown: https://insights.sbomify.com/CVE-2023-50461/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-50461
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-50461
- OSV: https://osv.dev/vulnerability/CVE-2023-50461

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-50461/
Summaries are generated and may contain mistakes; the official description above is the record.
