# CVE-2014-5244: Symfony vulnerable to denial of service via a malicious HTTP Host header

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-1333
- **Aliases:** GHSA-v77v-x634-9m56
- **Published:** 2024-05-30T00:38:38.000Z
- **Modified:** 2024-05-30T02:26:52.493Z

## Who should check

- Projects that depend on Packagist package symfony/http-foundation (\>= 2.0.0, \< 2.3.19)
- Projects that depend on Packagist package symfony/symfony (\>= 2.0.0, \< 2.3.19)

## Description

All 2.0.X, 2.1.X, 2.2.X, 2.3.X, 2.4.X, and 2.5.X versions of the Symfony HttpFoundation component are affected by this security issue.

This issue has been fixed in Symfony 2.3.19, 2.4.9, and 2.5.4. Note that no fixes are provided for Symfony 2.0, 2.1, and 2.2 as they are not maintained anymore.

Description
When an arbitrarily long hostname is sent by a client, its parsing in \`Request::getHost()\` can lead to a DoS attack, due to the way we validate the hostname via a regular expression.

Resolution
The regular expression used to parse and validate the hostname from the HTTP request has been modified to avoid too much sensitivity to the submitted value length.

The patch for this issue is available here: https://github.com/symfony/symfony/pull/11828

## Affected and fixed versions

- Packagist `symfony/http-foundation`: affected \>= 2.0.0, \< 2.3.19; fixed 2.3.19, 2.4.9, 2.5.4 (osv)
- Packagist `symfony/symfony`: affected \>= 2.0.0, \< 2.3.19; fixed 2.3.19, 2.4.9, 2.5.4 (osv)

## Mitigation

- Upgrade symfony/http-foundation to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line).
- Upgrade symfony/symfony to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2014-5244. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2014-5244.md
Affected: symfony/http-foundation >= 2.0.0, < 2.3.19; symfony/symfony >= 2.0.0, < 2.3.19
Fixed in: 2.3.19, 2.4.9, 2.5.4

Steps:
1. Search this machine and project for symfony/http-foundation (Packagist), symfony/symfony (Packagist): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2014-5244 being exploited?

There is no confirmed exploitation: CVE-2014-5244 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2014-5244?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2014-5244?

symfony/http-foundation \>= 2.0.0, \< 2.3.19; symfony/symfony \>= 2.0.0, \< 2.3.19.

### Is there a fix for CVE-2014-5244?

Yes. Fixed in 2.3.19, 2.4.9, 2.5.4. Upgrade symfony/http-foundation to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line). Upgrade symfony/symfony to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2014-5244?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/symfony/symfony/pull/11828>
- patch: <https://github.com/symfony/symfony/commit/1ee96a8b1b0987ffe2a62dca7ad268bf9edfa9b8>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2014-5244.yaml>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2014-5244.yaml>
- other: <https://symfony.com/blog/cve-2014-5244-denial-of-service-with-a-malicious-http-host-header>
- other: <https://symfony.com/cve-2014-5244>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-v77v-x634-9m56> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2014-5244> · JSON: <https://flawdb.com/api/v1/entries/CVE-2014-5244>
