Vulnerability · Published Dec 24, 2021 · Assigned by snyk
CVE-2021-23772Arbitrary File Write
High 7.5
In plain English
A high-severity security flaw in github.com/kataras/iris. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.9%top 20.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/kataras/iris | no fix listed | GHSA-jcxc-rh6w-wf49 |
| Go | github.com/kataras/iris | no fix listed | GO-2022-0272 |
| Go | github.com/kataras/iris/v12 | 12.2.0-alpha8 | GHSA-jcxc-rh6w-wf49 |
| Go | github.com/kataras/iris/v12 | 12.2.0-alpha8 | GO-2022-0272 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | github.com/kataras/iris | 0 – before unspecified |
| n/a | github.com/kataras/iris/v12 | 0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169 x_refsource_MISC
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170 x_refsource_MISC
- https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08 x_refsource_MISC