Vulnerability in libphp-swiftmailer - security update

libphp-swiftmailer Updated 02 Oct 2025

Summary

19/01/2017
N/A
Yes i
Unrated
Not published

DLA-792-1: libphp-swiftmailer - security update. Affects libphp-swiftmailer versions < 4.1.5-1+deb7u1. Fixed in 4.1.5-1+deb7u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libphp-swiftmailer is a package used for sending emails in PHP applications. It provides a convenient interface for creating and sending email messages. However, a security vulnerability has been discovered in the mail transport component of Swift Mailer. This vulnerability allows remote attackers to execute arbitrary code by injecting extra parameters into the mail command through a crafted email address in the From, ReturnPath, or Sender header.

Vulnerability Detail

The vulnerability in libphp-swiftmailer arises from a lack of proper input validation in the mail transport component. By including a backslash double quote (") in a specially crafted email address, an attacker can pass extra parameters to the mail command, leading to the execution of arbitrary code. This can have severe consequences, including unauthorized access to sensitive information, remote code execution, and potential compromise of the affected system.

How To Fix

Minimum fixed version

4.1.5-1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libphp-swiftmailer

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the security update as soon as possible to mitigate the risk of exploitation.

Conclusion

The vulnerability in libphp-swiftmailer allows remote attackers to execute arbitrary code by injecting extra parameters into the mail command. To mitigate this risk, it is crucial to upgrade to the latest version of libphp-swiftmailer. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libphp-swiftmailer →

Share this vulnerability

FAQ

libphp-swiftmailer is a PHP package used for sending emails in web applications. It provides a convenient interface for creating and sending email messages.

The vulnerability allows remote attackers to execute arbitrary code on the affected system. This can lead to unauthorized access, data breaches, and potential compromise of the entire system.

To fix this vulnerability, you should upgrade your libphp-swiftmailer package to version 4.1.5-1+deb7u1 or later. This update includes the necessary security patches.

No, there are no known workarounds for this vulnerability. It is crucial to apply the security update to mitigate the risk.

You can find more information about Debian LTS security advisories, including how to apply updates and frequently asked questions, at https://wiki.debian.org/LTS.

Related vulnerabilities

Recent vulnerabilities recorded for libphp-swiftmailer.

How To Fix

Minimum fixed version

4.1.5-1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libphp-swiftmailer

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback