Intel

AIKIDO-2024-10380

symfony/symfony is vulnerable to Improper Neutralization of Null Byte

Improper Neutralization of Null Byte Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 28, 2024

25

Low Risk

This Affects:

phpsymfony/symfony
2.0.0 - 5.4.37
Fixed in 5.4.38
6.0.0 - 6.4.5
Fixed in 6.4.6
7.0.0 - 7.0.5
Fixed in 7.0.6
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to null byte injection. In PHP 7, the DateTime::createFromFormat function allows null byte injection, while in PHP 8, it throws a ValueError that is not properly caught. This vulnerability can allow attackers to manipulate date and time input, potentially leading to unexpected behavior or security issues. The fix addresses this by preventing null byte injection in PHP 7.x by throwing a TransformationFailedException, ensuring proper input validation and safeguarding against such attacks.

Who does this affect?

You are affected if you are using a version which is within vulnerability ranges and you are not using PHP 8.

Background info

symfony/symfony is vulnerable to Improper Neutralization of Null Byte in versions 2.0.0 - 5.4.37, 6.0.0 - 6.4.5 and 7.0.0 - 7.0.5.

How to fix this

Upgrade the symfony/symfony library to a patch version.