Skip to main content

Improper Input Validation


Severity Medium
Score 6.5/10


An issue was discovered in Symfony 2.7.0 to 2.7.37, 2.8.0 to 2.8.30, 3.0.x and 3.1.x, 3.2.0 to 3.2.13, 3.3.0 to 3.3.12 , 3.4.x before 3.4.0-RC1, and 4.0.x before 4.0.0-RC1. When a form is submitted by the user, the request handler classes of the Form component merge POST data and uploaded files data into one array. This big array forms the data that are then bound to the form. At this stage there is no difference anymore between submitted POST data and uploaded files. A user can send a crafted HTTP request where the value of a "FileType" is sent as normal POST data that could be interpreted as a local file path on the server-side (for example, "file:///etc/passwd"). If the application did not perform any additional checks about the value submitted to the "FileType", the contents of the given file on the server could have been exposed to the attacker.

  • LOW
  • NONE
  • NONE
  • LOW
  • HIGH
  • NONE

CWE-20 - Improper Input Validation

The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Advisory Timeline

  • Published