CVE-2026-48747: Symfony: Mailomat Mailer Webhook Parser Reads the HMAC Algorithm from the Request: Signature Algorithm Downgrade

Published Jun 15, 2026
·
Updated

Description

Symfony\Component\Mailer\Bridge\Mailomat\Webhook\MailomatRequestParser::validateSignature() parses the X-MOM-Webhook-Signature request header as algo=signature and passes the wire-supplied $algo directly to hashhmac() when verifying the request against the configured webhook secret. The request therefore selects the HMAC primitive used to authenticate it.

PHP's hashhmac() enforces only that the chosen algorithm is HMAC-compatible. That set still includes primitives with known cryptanalysis (md4, md5, ripemd128, tiger128,3, … — e.g. existential forgery of HMAC-MD4, Contini & Yin, ASIACRYPT 2006). This is the canonical algorithm-confusion shape, analogous to JWT alg=none / alg=HS256 downgrades: any future cryptographic weakness in any HMAC primitive PHP exposes becomes immediately exploitable against a Mailomat webhook receiver, the moment an attacker is in a position to compute a signature for that primitive, without a code change on the Symfony side.

Mailomat's documented webhook security pins SHA-256; the parser did not.

Resolution

MailomatRequestParser::validateSignature() now requires the signature header to be of the form sha256=<hex> and verifies the signature with HMAC-SHA256 keyed by the configured secret using a constant-time comparison. Any other algorithm declared on the wire (including the HMAC primitives PHP would otherwise accept) is rejected.

The patch for this issue is available here for branch 7.4 (and forward-ported to 8.0 and 8.1).

Credits

Symfony would like to thank Omar Alshammari, Essam Alanazi and Alwaleed Alshammari for reporting the issue and Nicolas Grekas for providing the fix.

Other sources

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 7.4.13 and 8.0.13, MailomatRequestParser::validateSignature() parsed X-MOM-Webhook-Signature as algo=signature and passed the request-selected algorithm to hashhmac(), allowing a signature algorithm downgrade instead of enforcing Mailomat's documented SHA-256 webhook signature. This issue is fixed in versions 7.4.13 and 8.0.13.

MITRE

Affected Software

6 affected componentsFixes available
composer/symfony/symfony>=8.0.0<8.0.13
8.0.13
composer/symfony/symfony>=7.2.0<7.4.13
7.4.13
composer/symfony/mailomat-mailer>=8.0.0<8.0.13
8.0.13
composer/symfony/mailomat-mailer>=7.2.0<7.4.13
7.4.13
SensioLabs Symfony>=7.2.0<7.4.13
SensioLabs Symfony>=8.0.0<8.0.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 8.0.13
  2. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 7.4.13
  3. Upgrade

    Upgrade composer/symfony/mailomat-mailer to a version that resolves this vulnerability.

    Fixed in 8.0.13
  4. Upgrade

    Upgrade composer/symfony/mailomat-mailer to a version that resolves this vulnerability.

    Fixed in 7.4.13
  5. Upgrade

    Upgrade symfony/symfony to a version that resolves this vulnerability.

    Fixed in 7.4.13
  6. Upgrade

    Upgrade symfony/symfony to a version that resolves this vulnerability.

    Fixed in 8.0.13
  7. Configuration

    Update Symfony so MailomatRequestParser::validateSignature() requires the X-MOM-Webhook-Signature header to be in the form `sha256=<hex>` and verifies using HMAC-SHA256 keyed by the configured webhook secret with constant-time comparison.

    Symfony Mailer Bridge: MailomatRequestParser::validateSignature() X-MOM-Webhook-Signature format = sha256=<hex> (not algo=signature)

Event History

Jun 15, 2026
Advisory Published
via GitHub·05:32 PM
Data Sourced
via GitHub·05:32 PM
DescriptionWeaknessAffected Software
Jul 14, 2026
CVE Published
via MITRE·07:16 PM
Data Sourced
via MITRE·07:16 PM
DescriptionWeakness
Data Sourced
via NVD·08:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-48747?

CVE-2026-48747 has a risk score of 44, indicating a moderate severity level.

2

How do I fix CVE-2026-48747?

To fix CVE-2026-48747, update to the patched version of Symfony that addresses the issue regarding the validation of the webhook signature.

3

What systems are affected by CVE-2026-48747?

CVE-2026-48747 affects systems using the Symfony Mailer component, specifically those implementing mailomat instead of using predefined algorithms.

4

What vulnerability does CVE-2026-48747 introduce?

CVE-2026-48747 introduces a potential security vulnerability where an attacker can manipulate the `X-MOM-Webhook-Signature` to bypass signature validation.

5

When was CVE-2026-48747 published?

CVE-2026-48747 was published on June 15, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203