CVE-2022-31041CWE-20CWE-434

Insufficient content-type validation for uploaded files in open-forms

High · published June 13, 2022

CVSS v3.1
7.6
EPSS
1%
Percentile
56.4
In the wild
Unconfirmed
What it is

Open Forms is an application for creating and publishing smart forms. Open Forms supports file uploads as one of the form field types. These fields can be configured to allow only certain file extensions to be uploaded by end users (e.g. only PDF / Excel / ...). The input validation of uploaded files is insufficient in versions prior to 1.0.9 and 1.1.1. Users could alter or strip file extensions to bypass this validation. This results in files being uploaded to the server that are of a different file type than indicated by the file name extension. These files may be downloaded (manually or automatically) by staff and/or other applications for further processing. Malicious files can therefore find their way into internal/trusted networks. Versions 1.0.9 and 1.1.1 contain patches for this issue. As a workaround, an API gateway or intrusion detection solution in front of open-forms may be able to scan for and block malicious content before it reaches the Open Forms application.

The record
Technical detail
CVSS v3.1
7.6 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00806 · 56.4th percentile
Weaknesses
CWE-20 · Improper Input Validation; CWE-434 · Unrestricted Upload of File with Dangerous Type
Published
2022-06-13T12:35Z
EPSS history
Timeline
  • 13 JUN 12:35Z
    Insufficient content-type validation for uploaded files in open-forms
    cvelistv5