CVE-2023-50461: Directmailteam/direct mail Configuration Injection Vulnerability

HIGH
Advisory Identifier: GHSA-p6xx-fhfw-7mj7
CVSS 8.8
Published
Advisory Summary

CVE-2023-50461 is a HIGH (CVSS 8.8) configuration injection vulnerability (General Security Weakness) affecting Directmailteam/direct mail libraries in the Packagist ecosystem. The issue involves configuration injection in extension "direct mail" (direct_mail). Remediation is available by upgrading affected packages to version 9.5.2, 7.0.3, 6.0.3.

CVE-2023-50461 at a Glance

CVE Identifier CVE-2023-50461
GHSA Identifier GHSA-p6xx-fhfw-7mj7
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification General Security Weakness
Affected Product Directmailteam/direct mail
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-50461

To remediate this vulnerability, upgrade all affected Directmailteam/direct mail dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

directmailteam/direct-mail fixed: 9.5.2
Upgrade directmailteam/direct-mail to 9.5.2
directmailteam/direct-mail fixed: 7.0.3
Upgrade directmailteam/direct-mail to 7.0.3
directmailteam/direct-mail fixed: 6.0.3
Upgrade directmailteam/direct-mail to 6.0.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for directmailteam/direct-mail

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-50461, inspect your project dependencies for Directmailteam/direct mail:

inspect dependencies for directmailteam/direct-mail

Analyze the terminal output to locate any version of Directmailteam/direct mail in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.5.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Directmailteam/direct mail, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The “Configuration” backend module of the extension allows an authenticated user to write arbitrary page TSConfig for folders configured as “Direct Mail”. Exploiting the vulnerability 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 having access to the Direct Mail "Configuration" backend module is needed in order to exploit this vulnerability.

CVE-2023-50461 Affected Directmailteam/direct mail Versions

3 component(s)
Fixed Versions:
9.5.27.0.36.0.3
Product / Package Ecosystem Affected Versions Fixed Version
directmailteam/direct-mail
Packagist
≥ 8.0.0
< 9.5.2
9.5.2
directmailteam/direct-mail
Packagist
≥ 7.0.0
< 7.0.3
7.0.3
directmailteam/direct-mail
Packagist
< 6.0.3
6.0.3

References

Frequently Asked Questions

What is CVE-2023-50461?
CVE-2023-50461 is a security vulnerability in Directmailteam/direct mail involving Configuration Injection in extension "Direct Mail" (direct_mail) under General Security Weakness.
Which Directmailteam/direct mail versions are affected?
Affected versions include releases prior to 9.5.2, 7.0.3, 6.0.3 across affected packages: directmailteam/direct-mail.
What version fixes CVE-2023-50461?
Upgrading to 9.5.2, 7.0.3, 6.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is directmailteam/direct-mail affected?
Yes, directmailteam/direct-mail is affected in releases prior to 9.5.2, 7.0.3, 6.0.3. Upgrade your dependency to 9.5.2, 7.0.3, 6.0.3 or later.
What is the CVSS score of CVE-2023-50461?
CVE-2023-50461 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-50461?
CVE-2023-50461 is classified under General Security Weakness.
How can I check Packagist dependencies for CVE-2023-50461?
Run the dependency tree command: 'inspect dependencies for directmailteam/direct-mail'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p6xx-fhfw-7mj7",
  "modified" : "2023-12-13T23:10:38Z",
  "published" : "2023-12-13T23:10:38Z",
  "aliases" : [ "CVE-2023-50461" ],
  "summary" : "Configuration Injection in extension \"Direct Mail\" (direct_mail)",
  "details" : "The “Configuration” backend module of the extension allows an authenticated user to write arbitrary page TSConfig for folders configured as “Direct Mail”. Exploiting the vulnerability may lead to Configuration Injection (TYPO3 10.4 and above) and to Arbitrary Code Execution (TYPO3 9.5 and below).\n\nA valid backend user account having access to the Direct Mail \"Configuration\" backend  module is needed in order to exploit this vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "directmailteam/direct-mail"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "9.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "directmailteam/direct-mail"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "directmailteam/direct-mail"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/directmailteam/direct-mail/CVE-2023-50461.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kartolo/direct_mail"
  }, {
    "type" : "WEB",
    "url" : "https://typo3.org/security/advisory/typo3-ext-sa-2023-011"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-13T23:10:38Z",
    "nvd_published_at" : null
  }
}