Common issues & fixes
Salesforce PHP Vulnerability (PHP2Shell): Is Your Org Affected?
Salesforce reports no evidence that PHP2Shell (CVE-2026-109618, CVE-2026-109619) affected its platform. The PHP servers that connect to your org are the risk.
Metrinfo Team · · 8 min read
On 21 October 2026 the PHP project released emergency updates for two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619. They are known together as "PHP2Shell". Both are rated 9.2 under CVSS v4.0, and both can let an attacker run code on a PHP web server without logging in. The same day, Salesforce posted a security advisory on its Trust site.
This post covers what the flaws are, what Salesforce has said, and why your Salesforce org can still be exposed through the PHP servers around it: websites, form handlers and integrations.
At a glance
| Item | Details |
|---|---|
| CVEs | CVE-2026-109618 (out-of-memory corruption), CVE-2026-109619 (stale global state) |
| Severity | CVSS v4.0 9.2, unauthenticated remote code execution |
| Who is at risk | Every PHP installation that serves web requests: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed |
| Fixed in | PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 |
| PHP 8.1 and older | No official releases. Use your vendor's backport, the PHP project's source backport branches, or upgrade |
| Salesforce's position | Monitoring. "No evidence of exploitation affecting Salesforce or customer data" |
| Follow-up | CVE-2026-115560 (23 Oct), a lower-risk issue in session upload progress. Same workaround as CVE-2026-109619 |
What Salesforce has said
Salesforce published a general message on Trust, Security Advisory: PHP Vulnerabilities (CVE-2026-109618 and CVE-2026-109619). It went up on 21 October and is still marked Active. In full:
Salesforce is aware of and actively monitoring the PHP vulnerabilities (CVE-2026-109618 and CVE-2026-109619) and related activity. At this time, we have no evidence of exploitation affecting Salesforce or customer data.
For additional context, please review the Official PHP Security Advisory.
So, for now, there is no known impact on Salesforce or on customer data. Keep the wording in mind, though. Salesforce says it has no evidence of exploitation and is actively monitoring. That is a current status, not an all-clear, and the message is still open. Check the Trust page again before you close your own ticket on this.
The advisory also covers Salesforce's own platform only. It says nothing about the PHP servers your company runs, and those can hold the keys to your org.
The Official PHP Security Advisory
The authoritative source is the PHP project's advisory on php.net, Security advisory: Critical remote code execution vulnerabilities, update now (21 October 2026). Its key points:
- All PHP users are strongly encouraged to update immediately. PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix both flaws.
- Risk is highest for Apache with mod_php. PHP has demonstrated an exploit where one unauthenticated request triggers the attack before any application code runs. Your own code being secure does not help.
- CVE-2026-109618, RCE via OOM corruption (GHSA-w8hw-w9fx-j79w). Out-of-memory handling can interrupt PHP while internal request data is only half set up. Request cleanup may then treat that invalid data as valid.
- CVE-2026-109619, RCE via stale global state (GHSA-6wmf-4rv5-p3rp). Request-owned internal state can survive after its memory has been freed. A later request on the same worker may then use that stale state.
- Linux distributions and LTS vendors got the patches in advance. If PHP comes from your OS package manager, install your vendor's updated package. Minimal source backports exist for PHP 7.4, 8.0 and 8.1 (see Sources).
- The workarounds reduce exposure but do not make a server safe. Every release note says the same: "There are no complete mitigations, updating is the only safe choice."
On 23 October PHP added an informational advisory for CVE-2026-115560. It only affects an unusual setup: an application that switches session.serialize_handler to php at runtime while session upload progress is enabled. Patched releases, 8.5.12 included, are still affected. PHP will fix it in the next regular release. Until then, set session.upload_progress.enabled=0, which is the same workaround already listed for CVE-2026-109619.
How serious is it?
Serious enough that national agencies have issued alerts. CISA, the UK NCSC, Australia's ACSC and Canada's Cyber Centre all urge immediate patching. CISA also advises taking PHP systems offline if they can't be patched right away or run PHP 8.1 or older.
How much exploitation is actually happening is still unclear:
- CISA said it had not observed successful in-the-wild exploitation when it published.
- Palo Alto Networks Unit 42 reports proof-of-concept code. It also describes one intrusion at a European government body: within two hours, the attacker reached password hashes and MFA secrets and tried to escalate to Domain Admin. Its Cortex Xpanse scans counted over 22.6 million potentially vulnerable internet-facing instances.
Why a Salesforce team should care
Salesforce's servers are not the only place your org's data lives. Plenty of Salesforce customers run PHP right next to their org:
- Websites (WordPress, Drupal, Laravel, custom PHP) with Web-to-Lead or Web-to-Case forms, or Account Engagement (Pardot) form handlers that post leads into Salesforce.
- Integrations written in PHP that call the REST or Bulk API, sync orders, or push data from a customer portal.
- Middleware or cron jobs on a shared PHP host that hold an integration user's credentials.
If one of those servers runs a vulnerable PHP version, the attacker doesn't need to break into Salesforce. Remote code execution means they can read whatever the server can read. That includes .env files, config.php, Connected App consumer secrets, OAuth refresh tokens, JWT private keys and integration-user passwords. With those, they can sign in to your org through the API as a legitimate integration. Salesforce's platform would be working exactly as designed.
What to do
1. Find every PHP server that touches your org
Start from the Salesforce side. It tells you which systems connect:
- Setup → Connected Apps OAuth Usage (and Setup → External Client App if you use them) lists every app with active tokens, and the users behind them.
- Setup → Login History: filter on your integration users and look at the source IPs and login types. Map each IP to a server.
- Setup → Named Credentials and Remote Site Settings show outbound callouts. They are less relevant here, but they help you map your integrations.
- List the websites that host your Web-to-Lead, Web-to-Case or Account Engagement forms.
Then ask whoever owns each server for the exact PHP version (php -v, or the package version from the distro).
2. Patch
Upgrade to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or to your vendor's patched package. Restart every PHP worker afterwards, including FPM pools and Apache. On managed hosting, check the host's status page. Several large platforms have published bulletins (see Sources). Note that PHP 8.2 reaches end of life on 31 December 2026, so plan that upgrade now too.
3. If you can't patch today
Apply PHP's interim workarounds from the advisory, and treat them as a stopgap only:
; php.ini (applies before request parsing)
memory_limit = -1
post_max_size = 8M ; or 32M if uploads are required
upload_max_filesize = 8M ; keep it below post_max_size
session.upload_progress.enabled = 0
fatal_error_backtraces = 0 ; PHP 8.5 onlyPut these in php.ini, the FPM pool (php_admin_value[...]) or the server config. Don't rely on ini_set() or .user.ini, because those apply too late. Also enforce request size and part-count limits at the web server or proxy. A WAF rule from your CDN can catch known exploit patterns, but it doesn't fix anything. Cloudflare notes, for example, that its rule doesn't cover sites that changed session.upload_progress.name.
4. If a server was exposed and unpatched, rotate its secrets
Assume anything that server could read may be known to someone else. For each Salesforce credential it held:
- Revoke OAuth tokens: in Connected Apps OAuth Usage, open the app and revoke the user's tokens, or revoke them from the integration user's record.
- Rotate the Connected App consumer secret, and replace the certificate or private key if the integration uses the JWT bearer flow.
- Reset the integration user's password and, if used, its security token.
- Update the patched server with the new values. Then confirm in Login History that only expected IPs are logging in.
5. Look for signs of misuse
- In Salesforce: integration-user logins from unfamiliar IPs or at odd times, unusual API volume, or large exports. Use Event Monitoring or Setup Audit Trail if you have them.
- On the server: PHP worker processes starting shells or downloading tools. This is the main warning sign CISA and Unit 42 point to, and CISA has published SIGMA detection rules for it.
6. Lock it down for next time
This is a good moment to tighten integration users: one per integration, API Only where possible, minimal permissions through a permission set, and IP restrictions on the Connected App. Prefer the JWT bearer or client credentials flow over a stored username and password. Then a stolen secret is worth less, and rotating it means changing one value.
Bottom line
- Salesforce reports no evidence of exploitation affecting Salesforce or customer data, and is still monitoring. Keep an eye on the Trust advisory.
- Your own PHP servers are the real exposure. Patch them to the fixed releases now.
- If a server that holds Salesforce credentials ran unpatched while the flaws were public, rotate those credentials.
If you'd like a second pair of eyes on your org's integrations, from Connected App scopes to integration-user permissions, get in touch.
Sources
- Salesforce Trust: Security Advisory: PHP Vulnerabilities (CVE-2026-109618 and CVE-2026-109619)
- PHP project, official advisory: Security advisory: Critical remote code execution vulnerabilities, update now
- PHP project: Informational advisory: Session upload progress (CVE-2026-115560)
- GitHub Security Advisories: GHSA-w8hw-w9fx-j79w (CVE-2026-109618) and GHSA-6wmf-4rv5-p3rp (CVE-2026-109619)
- PHP source backports: 7.4, 8.0, 8.1
- PHP Foundation: Today's PHP security release and how we're strengthening PHP security
- CISA: Critical Vulnerabilities in PHP Require Immediate Patching
- NCSC (UK): Critical security issue affecting PHP
- Canadian Centre for Cyber Security: AL26-026, Critical vulnerabilities impacting PHP
- Palo Alto Networks Unit 42: Threat Brief: Critical Vulnerabilities in PHP
- Cloudflare: Protections against the php2shell vulnerability
- Hosting bulletins: Vercel, Laravel Forge
- Security
- PHP
- CVE
- Integrations
- OAuth
- Connected Apps
- Web-to-Lead