Vulnerability in libphp-phpmailer - security update

libphp-phpmailer Updated 02 Oct 2025

Summary

13/12/2015
N/A
Yes i
Unrated
Not published

DSA-3416-1: libphp-phpmailer - security update. Affects libphp-phpmailer versions < 5.1-1.1. Fixed in 5.1-1.1. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libphp-phpmailer is a PHP library used for email transfer, commonly employed by various Content Management Systems (CMSs). It provides functionality for sending emails and interacting with SMTP servers. However, a vulnerability has been discovered in this library that allows an attacker to inject malicious messages by exploiting the acceptance of email addresses and SMTP commands containing line breaks.

Vulnerability Detail

The vulnerability in libphp-phpmailer arises from its failure to properly validate and sanitize email addresses and SMTP commands that contain line breaks. This oversight enables an attacker to inject arbitrary messages into the email content, potentially leading to various malicious activities such as phishing, spamming, or the execution of arbitrary code on the recipient's system.

How To Fix

Minimum fixed version

5.1-1.1

This is the first release that contains the fix.

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

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

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended course of action is to apply the provided fix by upgrading the libphp-phpmailer package.

Conclusion

In conclusion, libphp-phpmailer is susceptible to a vulnerability that allows attackers to inject malicious messages into email content. To mitigate this risk, it is crucial to upgrade the libphp-phpmailer package to the fixed version. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for libphp-phpmailer →

Share this vulnerability

FAQ

libphp-phpmailer is a PHP library used for email transfer, commonly employed by various Content Management Systems (CMSs). It provides functionality for sending emails and interacting with SMTP servers.

The vulnerability allows an attacker to inject arbitrary messages into the email content, potentially leading to various malicious activities such as phishing, spamming, or the execution of arbitrary code on the recipient's system.

To fix this vulnerability, it is recommended to upgrade the libphp-phpmailer package to the appropriate fixed version. Instructions for upgrading can be found in the official documentation of the respective distribution.

There is no specific workaround mentioned for this vulnerability. The recommended course of action is to apply the provided fix by upgrading the libphp-phpmailer package.

For more information about this vulnerability, you can refer to the official Debian Security Advisory DSA-3416-1.

Related vulnerabilities

Recent vulnerabilities recorded for libphp-phpmailer.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

5.1-1.1

This is the first release that contains the fix.

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

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