CVE-2022-31041 Insufficient content-type validation for uploaded files in open-forms
Attackers can bypass file extension validation to upload malicious files, potentially compromising internal networks when staff process these files.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-31041?
CVE-2022-31041 is a high-severity vulnerability in open-formulieren open-forms, published on 13 Jun 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2022-31041?
It affects 1 product.
Products include Maykinmedia Open Forms.
How do I fix CVE-2022-31041?
No fix has been published for CVE-2022-31041 yet. Limit exposure of the affected software until one is available.
Is CVE-2022-31041 being exploited?
There is no known exploitation of CVE-2022-31041 in the wild and no public exploit code.
Other vulnerabilities in open-formulieren open-forms
Sources
Also known as GHSA-h85r-xv4w-cg8g.