Advisory

GHSA-v77v-x634-9m56

Also known as: CVE-2014-5244

Summary

Symfony vulnerable to denial of service via a malicious HTTP Host header

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-05-30 00:38 UTC
Modified
2024-05-30 02:26 UTC

Affected packages and fixes

symfony/http-foundation

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.3.19 (ecosystem)

Fixed versions

2.3.19

Fix

The export has no generic command for this ecosystem.

symfony/http-foundation

Packagist · All systems

Affected

  • introduced 2.4.0, fixed 2.4.9 (ecosystem)

Fixed versions

2.4.9

Fix

The export has no generic command for this ecosystem.

symfony/http-foundation

Packagist · All systems

Affected

  • introduced 2.5.0, fixed 2.5.4 (ecosystem)

Fixed versions

2.5.4

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.3.19 (ecosystem)

Fixed versions

2.3.19

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.4.0, fixed 2.4.9 (ecosystem)

Fixed versions

2.4.9

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.5.0, fixed 2.5.4 (ecosystem)

Fixed versions

2.5.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences