CVE-2026-47212·PHP vulnerability
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 6.4.40, 7.4.12, and 8.0.12, TwilioRequestParser::doParse() received the configured webhook secret but ignored the X-Twilio-Signature HMAC header, allowing unauthenticated POST requests to inject forged Twilio status payloads. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.
- Severity
- medium
- Software
- PHP
- Fixed in
- 8.0.12
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.24% — higher than 15% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 8.0.0
Until: 8.0.12
Fixed in: 8.0.12
How to fix this CVE
Update Symfony to version 8.0.12 or later to patch the Twilio webhook signature validation bypass in the TwilioRequestParser component. The vulnerability allows attackers to forge webhook payloads by circumventing HMAC authentication checks. Ensure all PHP dependencies are updated through your package manager or Composer after patching.
sudo dnf update phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST request to Twilio webhook endpoint lacking the 'X-Twilio-Signature' header or containing an invalid HMAC value, paired with a Twilio-formatted JSON payload (containing fields like 'MessageSid', 'AccountSid', 'From', 'To') and receiving a 200/202 responseWAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement a WAF rule requiring the X-Twilio-Signature header on all POST requests to Twilio webhook endpoints; reject requests with missing or malformed signature headers before they reach the application. Example: `SecRule REQUEST_METHOD "POST" "chain" --id:1001 SecRule REQUEST_URI "@contains /twilio" "chain" SecRule REQUEST_HEADERS:X-Twilio-Signature "@rx ^(?!.{1,})$" "deny,status:401"`How to check if you are affected
- Step 1: Check the installed Symfony version by running `php -r "require 'vendor/autoload.php'; echo \Symfony\Component\HttpFoundation\Request::class;"` or inspecting composer.lock for symfony/symfony version constraints
- Step 2: Identify if TwilioRequestParser is in use by searching your codebase for `TwilioRequestParser` or checking if symfony/twilio-notifier is required
- Step 3: Review web server and PHP logs for POST requests to endpoints using TwilioRequestParser without valid X-Twilio-Signature headers; look for patterns like `POST /path/to/twilio/webhook` with response code 200 despite missing authentication headers
- Step 4: Verify the patch by running `php -r "require 'vendor/autoload.php'; echo \Symfony\Component\Notifier\Bridge\Twilio\TwilioTransport::class;"` after updating, then confirm composer.lock shows symfony/symfony >= 8.0.12
FAQ
What is CVE-2026-47212?
This vulnerability affects Symfony's TwilioRequestParser class, which fails to validate the X-Twilio-Signature HMAC header despite having the webhook secret available. This allows attackers to inject forged Twilio webhook payloads without authentication.
Is CVE-2026-47212 being actively exploited?
No, there are no known active exploits or public proof-of-concepts for this vulnerability at this time, though it remains a medium-severity risk for applications using Symfony's Twilio integration.
What versions of PHP are affected by CVE-2026-47212?
The vulnerability affects Symfony framework versions 8.0.0 through 8.0.11 (PHP 8.1+), as well as earlier branches 6.4.0-6.4.39 and 7.4.0-7.4.11. The PHP language itself is not the vector; the Symfony framework library is the vulnerable component.
How do I check if my server is vulnerable to CVE-2026-47212?
Run `grep '"symfony/symfony"' composer.lock | head -3` to check the installed version. If it shows a version between 8.0.0 and 8.0.11 (inclusive), and the Twilio notifier bridge is active, your application is vulnerable.
Does Defensia detect CVE-2026-47212?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Symfony is installed on a monitored server, CVE-2026-47212 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
- https://github.com/symfony/symfony/commit/8545fb2af6c07dfb5ef0fc8d9bccf86db2c94356
- https://github.com/symfony/symfony/releases/tag/v6.4.40
- https://github.com/symfony/symfony/releases/tag/v7.4.12
- https://github.com/symfony/symfony/releases/tag/v8.0.12
- https://github.com/symfony/symfony/security/advisories/GHSA-55rj-x2vc-4whq
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-47212. Free for 1 server.
Get started free