CVE-2020-26138
JSON

5.3medium

FormField with square brackets in field name skips validation

Severity
5.3medium CVSS:3.1 by NVD
Exploit likelihood
1.34% (higher than 72% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-7mv4-4xpg-xq44BIT-SILVERSTRIPE-2020-26138

Description

In SilverStripe through 4.6.0-rc1, a FormField with square brackets in the field name skips validation.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
silverstripe/framework (Packagist)from 3.0.0 before 4.7.4GitHub Advisory Database
silverstripe silverstripebefore 4.6.0, 4.6.0NVD
silverstripe (Bitnami)before 4.6.0, from 4.6.0-rc1 up to 4.6.0-rc1Bitnami Vulnerability Database

All scores

GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

In SilverStripe through 4.6.0-rc1, a FormField with square brackets in the field name skips validation.

GitHub Advisory Database

FileField with array notation skips validation

The FileField class is commonly used for file upload in custom code on a Silverstripe website. This field is designed to be used with a single file upload.

PHP allows for submitting multiple values by adding square brackets to the field name. When this is done to a FileField, it will be coerced into allowing multiple files by using this notation. This is not a supported feature, though nothing is done to prevent this.

In this scenario, validation such as limiting allowed extensions is not applied, and the FileField->saveInto() behaviour is not triggered. If custom controller logic is used to process the file uploads, it might implicitly rely on validation to be provided by the Form system, which is not the case.

NVD (es)

En SilverStripe versiones hasta 4.6.0-rc1, un FormField con corchetes en el nombre del campo omite la comprobación

References

Sources

SourceRecordLicence
CVE ListCVE-2020-26138 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-7mv4-4xpg-xq44 changed 2024-02-17CC-BY-4.0
NVDCVE-2020-26138 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-SILVERSTRIPE-2020-26138 changed 2024-03-06Apache-2.0