Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/kataras/iris/v12/context
  4. ›
  5. CVE-2021-23772

CVE-2021-23772: Improper Link Resolution Before File Access ('Link Following')

January 6, 2022 (updated February 9, 2023)

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.

References

  • github.com/advisories/GHSA-jcxc-rh6w-wf49
  • github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08
  • nvd.nist.gov/vuln/detail/CVE-2021-23772
  • pkg.go.dev/vuln/GO-2022-0272
  • snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169
  • snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170

Code Behaviors & Features

Detect and mitigate CVE-2021-23772 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 12.2.0-alpha8

Fixed versions

  • v12.2.0-alpha8

Solution

Upgrade to version 12.2.0-alpha8 or above. *Note*: 12.2.0-alpha8 may be an unstable version. Use caution.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

go/github.com/kataras/iris/v12/context/CVE-2021-23772.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.