8.8
CWE
59
Advisory Published
Updated

CVE-2021-23772: Arbitrary File Write

First published: Fri Dec 24 2021(Updated: )

This affects all versions of package github.com/kataras/iris; all versions of package github.com/kataras/iris/v12. The unsafe handling of file names during upload using UploadFormFiles method may enable attackers to write to arbitrary locations outside the designated target folder.

Credit: report@snyk.io

Affected SoftwareAffected VersionHow to fix
Iris Go<=12.1.8
Iris Go=12.2.0-alpha
Iris Go=12.2.0-alpha2
Iris Go=12.2.0-alpha3
Iris Go=12.2.0-alpha4
Iris Go=12.2.0-alpha5
Golang<1.7.5

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-23772?

    CVE-2021-23772 has been classified as a medium severity vulnerability due to its potential impact on file upload security.

  • How do I fix CVE-2021-23772?

    To fix CVE-2021-23772, update to the latest version of the Iris framework that addresses the file upload handling issue.

  • Who is affected by CVE-2021-23772?

    CVE-2021-23772 affects all versions of the Iris framework, including versions up to 12.1.8 and 12.2.0-alpha series.

  • What is the nature of the vulnerability in CVE-2021-23772?

    CVE-2021-23772 relates to the unsafe handling of file names during upload, allowing attackers to exploit this to write to arbitrary locations.

  • Is CVE-2021-23772 still a risk in newer releases of Iris?

    No, CVE-2021-23772 is not a risk in the latest releases of the Iris framework that have implemented proper file upload security measures.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203