Intel

AIKIDO-2024-10380

symfony/symfony is vulnerable to Improper Neutralization of Null Byte

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 28, 2024
October 28, 2024

25

CVSS Score

Low

Improper Neutralization of Null Byte

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.

How do I fix this?

Upgrade the symfony/symfony library to a patch version.

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.

Versions

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

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.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea