Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/kataras/iris/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. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.0.2

Solution

Unfortunately, there is no solution available yet.

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/context/CVE-2021-23772.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:27 +0000.