Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-28859

CVE-2024-28859: Friendsofsymfony1 Symfony1 RCE Vulnerability

CVE-2024-28859 is a remote code execution vulnerability in Friendsofsymfony1 Symfony1 caused by a Swift Mailer gadget chain. This article covers technical details, affected versions, security impact, and mitigation.

Published: April 8, 2026

CVE-2024-28859 Overview

CVE-2024-28859 is a critical insecure deserialization vulnerability affecting Symfony1, a community fork of the legacy symfony 1.4 framework. The vulnerability exists due to a gadget chain in the bundled Swift Mailer dependency that can enable remote code execution when developers unserialize untrusted user input within their applications.

Symfony1 has been bundled with Swift Mailer since version 1.3.0, with the library included by default in the vendor directory. The vulnerable Swift Mailer classes implement __destruct() methods that are invoked when PHP destroys objects in memory. An attacker can exploit the array access mechanism triggered during foreach($this->_keys ...) iterations by manipulating objects that implement the ArrayAccess interface, allowing arbitrary PHP command execution.

Critical Impact

This vulnerability enables remote code execution if an application deserializes untrusted user data. While not directly exploitable, it provides a potent attack vector when combined with unsafe deserialization patterns in application code.

Affected Products

  • friendsofsymfony1 symfony1 (versions prior to 1.5.18)
  • Applications bundled with vulnerable Swift Mailer versions (< 5.4.13 or < 6.2.5)
  • PHP applications using Symfony1 that deserialize user-controlled input

Discovery Timeline

  • 2024-03-15 - CVE CVE-2024-28859 published to NVD
  • 2025-12-05 - Last updated in NVD database

Technical Details for CVE-2024-28859

Vulnerability Analysis

This vulnerability is classified as CWE-502 (Deserialization of Untrusted Data). The attack requires network access with high complexity, requiring no privileges or user interaction, but can change the scope of the attack to impact resources beyond the vulnerable component.

The gadget chain exploits PHP's object lifecycle during deserialization. When a serialized object is unserialized, PHP reconstructs the object and later calls magic methods like __destruct() when the object is garbage collected. Swift Mailer's implementation allows attackers to craft malicious serialized payloads that, when unserialized, can execute arbitrary PHP code through carefully constructed object references.

Root Cause

The root cause lies in the __destruct() methods implemented in Swift Mailer classes. These destructors iterate over internal arrays using constructs like foreach($this->_keys ...). Since PHP allows any object type to be included in $this->_keys, an attacker can inject objects implementing the ArrayAccess interface. When the foreach loop accesses these injected objects, it triggers the ArrayAccess::offsetGet() method, which can be chained to execute arbitrary code.

Attack Vector

The attack vector is network-based, though exploitation requires specific conditions in the target application. An attacker must:

  1. Identify an endpoint where the application deserializes user-controlled data
  2. Craft a malicious serialized payload containing the Swift Mailer gadget chain
  3. Submit the payload to the vulnerable endpoint
  4. The payload executes during PHP's object destruction phase

The security patch updated the Swift Mailer dependency to use a forked version with minimum versions that address the gadget chain:

text
 [submodule "lib/vendor/swiftmailer"]
 	path = lib/vendor/swiftmailer
-	url = https://github.com/swiftmailer/swiftmailer.git
+	url = https://github.com/FriendsOfSymfony1/swiftmailer.git
 	branch = 5.x
 [submodule "lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine"]
 	path = lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine

Source: GitHub Commit

The composer.json was also updated to require the patched versions:

text
     "license": "MIT",
     "require": {
         "php" : "^7.4 || ^8.1",
-        "swiftmailer/swiftmailer": "^5.2 || ^6.0"
+        "friendsofsymfony1/swiftmailer": "^5.4.13 || ^6.2.5"
     },
     "require-dev": {
         "psr/log": "*"

Source: GitHub Commit

Detection Methods for CVE-2024-28859

Indicators of Compromise

  • Unusual serialized data in HTTP requests, particularly containing Swift Mailer class references
  • PHP error logs showing unexpected object destructor calls or ArrayAccess method invocations
  • Application logs with serialization-related errors or exceptions
  • Network traffic containing base64-encoded or URL-encoded serialized PHP objects

Detection Strategies

  • Monitor web application logs for requests containing serialized PHP objects (look for patterns like O: followed by class names)
  • Implement Web Application Firewall (WAF) rules to detect and block serialized PHP payloads in request parameters
  • Use static analysis tools to identify code paths where unserialize() is called on user-controlled data
  • Audit application code for any usage of unserialize(), eval(), or similar dangerous functions with external input

Monitoring Recommendations

  • Enable detailed PHP error logging to capture deserialization exceptions and unexpected object instantiation
  • Configure intrusion detection systems to alert on patterns associated with PHP object injection attacks
  • Monitor for unusual process spawning or command execution originating from the web server process
  • Track dependency versions in your software bill of materials (SBOM) to identify vulnerable Swift Mailer installations

How to Mitigate CVE-2024-28859

Immediate Actions Required

  • Upgrade Symfony1 to version 1.5.18 or later immediately
  • Audit application code for any unserialize() calls that process user input
  • Replace unserialize() with json_decode() where possible for handling user data
  • If deserialization is required, implement strict input validation and use PHP's allowed_classes option

Patch Information

The vulnerability has been addressed in Symfony1 version 1.5.18. The patch updates the Swift Mailer dependency to use the FriendsOfSymfony1 fork with minimum versions 5.4.13 or 6.2.5, which contain fixes for the gadget chain. The security advisory and patch details are available in the GitHub Security Advisory. The specific commit implementing the fix can be reviewed at GitHub Commit edb850f.

Workarounds

  • There are no known workarounds for this vulnerability; upgrading to version 1.5.18 is the recommended remediation
  • As a defense-in-depth measure, avoid using unserialize() on any user-controlled input
  • Consider implementing a content security policy to restrict code execution capabilities
  • Use PHP's disable_functions directive to restrict dangerous functions like exec(), system(), and passthru()
bash
# Update Symfony1 using Composer
composer require friendsofsymfony1/symfony1:^1.5.18

# Verify the Swift Mailer version meets minimum requirements
composer show friendsofsymfony1/swiftmailer

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSymfony1

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability5.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • GitHub Commit Update
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-28861: Symfony 1 RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English