CVE-2024-28859
PHP vulnerability analysis and mitigation

Overview

Symfony1, a community fork of symfony 1.4, contains a vulnerability (CVE-2024-28859) in versions 1.3.0 to 1.5.17-master that enables remote code execution through a gadget chain in the Swift Mailer dependency. The vulnerability was discovered on March 15, 2024, and affects installations where developers unserialize untrusted user input (GitHub Advisory).

Technical details

The vulnerability stems from Swift Mailer classes implementing __destruct() methods that can be exploited when PHP destroys objects in memory. An attacker can manipulate $this->_keys to access unintended array/object properties, particularly exploiting classes implementing the ArrayAccess interface. The vulnerability has a CVSS v3.1 score of 5.0 (Medium) with vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L (NVD).

Impact

When exploited, the vulnerability allows attackers to execute arbitrary PHP commands leading to remote code execution. While the vulnerability presents no direct threat, it becomes dangerous when developers unserialize untrusted user data in their projects (GitHub Advisory).

Exploitability

The vulnerability requires a Symfony1 installation where developers unserialize user input in their code. The exploit leverages the Swift Mailer dependency, which is bundled by default in the vendor directory since version 1.3.0. A proof-of-concept exploit exists that demonstrates the ability to execute system commands through carefully crafted serialized objects (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.5.18. Users are strongly advised to upgrade to this version. For installations using composer, updating to the latest version will automatically include the patched version of Swift Mailer (6.2.5 or higher) which contains the necessary security fixes (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-71488HIGH7.5
  • PHP logoPHP
  • league/commonmark
NoYesAug 06, 2026
CVE-2026-67434HIGH7.3
  • PHP logoPHP
  • squizlabs/php_codesniffer
NoYesAug 06, 2026
CVE-2026-71478MEDIUM6.1
  • PHP logoPHP
  • league/commonmark
NoYesAug 06, 2026
CVE-2026-71435MEDIUM6.1
  • PHP logoPHP
  • statamic/cms
NoYesAug 06, 2026
CVE-2026-71434MEDIUM5.3
  • PHP logoPHP
  • statamic/cms
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management