{"id":"CVE-2020-26138","aliases":["BIT-silverstripe-2020-26138","GHSA-7mv4-4xpg-xq44"],"url":"https://o3.security/vulnerability/CVE-2020-26138","summary":"FormField with square brackets in field name skips validation","details":"FileField with array notation skips validation\n\nThe 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.\n\nPHP 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.\n\nIn 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.","published":"2021-06-08T18:15:07.947Z","modified":"2026-08-07T15:12:13.715760Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Packagist","name":"silverstripe/framework","fixedVersion":"4.7.4"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://forum.silverstripe.org/c/releases"},{"type":"ADVISORY","url":"https://www.silverstripe.org/blog/tag/release"},{"type":"ADVISORY","url":"https://www.silverstripe.org/download/security-releases/"},{"type":"EVIDENCE","url":"https://www.silverstripe.org/download/security-releases/cve-2020-26138"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26138"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2020-26138.yaml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T15:12:13.715760Z"}}