GHSA-rq6q-hjvh-5mwh: Neos/swiftmailer Remote Code Execution Vulnerability

CRITICAL
Published
Advisory Summary

GHSA-rq6q-hjvh-5mwh is a CRITICAL remote code execution vulnerability (General Security Weakness) affecting Neos/swiftmailer libraries in the Packagist ecosystem. The issue involves flow swift mailer package remote code execution. Remediation is available by upgrading affected packages to version 5.4.5.

GHSA-rq6q-hjvh-5mwh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-rq6q-hjvh-5mwh
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Neos/swiftmailer
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-rq6q-hjvh-5mwh

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

neos/swiftmailer fixed: 5.4.5
Upgrade neos/swiftmailer to 5.4.5
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 neos/swiftmailer

How to Check if You Are Affected

To determine whether your application is affected by GHSA-rq6q-hjvh-5mwh, inspect your project dependencies for Neos/swiftmailer:

inspect dependencies for neos/swiftmailer

Analyze the terminal output to locate any version of Neos/swiftmailer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.5), 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 Neos/swiftmailer, 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

A remote code execution vulnerability has been found in the Swift Mailer library (swiftmailer/swiftmailer) recently. [See this advisory for details](http://legalhackers.com/advisories/SwiftMailer-Exploit-Remote-Code-Exec-CVE-2016-10074-Vuln.html). If you are not using the default mail() transport, this particular problem does not affect you. Upgrading is of course still recommended!

GHSA-rq6q-hjvh-5mwh Affected Neos/swiftmailer Versions

1 component(s)
Fixed Versions:
5.4.5
Product / Package Ecosystem Affected Versions Fixed Version
neos/swiftmailer
Packagist
< 5.4.5
5.4.5

References

Frequently Asked Questions

What is GHSA-rq6q-hjvh-5mwh?
GHSA-rq6q-hjvh-5mwh is a security vulnerability in Neos/swiftmailer involving Flow Swift Mailer package Remote code execution under General Security Weakness.
Which Neos/swiftmailer versions are affected?
Affected versions include releases prior to 5.4.5 across affected packages: neos/swiftmailer.
What version fixes GHSA-rq6q-hjvh-5mwh?
Upgrading to 5.4.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is neos/swiftmailer affected?
Yes, neos/swiftmailer is affected in releases prior to 5.4.5. Upgrade your dependency to 5.4.5 or later.
What CWE is associated with GHSA-rq6q-hjvh-5mwh?
GHSA-rq6q-hjvh-5mwh is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-rq6q-hjvh-5mwh?
Run the dependency tree command: 'inspect dependencies for neos/swiftmailer'. 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-rq6q-hjvh-5mwh",
  "modified" : "2024-05-17T23:06:50Z",
  "published" : "2024-05-17T23:06:50Z",
  "aliases" : [ ],
  "summary" : "Flow Swift Mailer package Remote code execution",
  "details" : "A remote code execution vulnerability has been found in the Swift Mailer library (swiftmailer/swiftmailer) recently. [See this advisory for details](http://legalhackers.com/advisories/SwiftMailer-Exploit-Remote-Code-Exec-CVE-2016-10074-Vuln.html). If you are not using the default mail() transport, this particular problem  does not affect you. Upgrading is of course still recommended!",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "neos/swiftmailer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/neos/swiftmailer/2017-01-06.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/neos/swiftmailer"
  }, {
    "type" : "WEB",
    "url" : "https://www.neos.io/blog/flow-sa-2017-01.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-17T23:06:50Z",
    "nvd_published_at" : null
  }
}