High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23772
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:41 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-23772
Complete source record
{
"id": "eff222c8e1907f30ea56ee8d67b4087019da27b82425f87479a4855d685e0d87",
"url": "https://osv.dev/vulnerability/CVE-2021-23772",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-23772",
"summary": "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.",
"evidence": "osv:CVE-2021-23772",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-23772",
"aliases": [
"CVE-2021-23772",
"GHSA-jcxc-rh6w-wf49",
"GO-2022-0272"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/kataras/iris",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "08403f0317e7d54607782a65a5344c589087cf55"
},
{
"fixed": "e213dba0d32ff66653e0ef124bc5088817264b08"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:iris-go:iris:*:*:*:*:*:go:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "12.1.8"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "e213dba0d32ff66653e0ef124bc5088817264b08"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v12.1.8",
"v12.1.7",
"v12.1.6",
"v12.1.5",
"v12.1.4",
"v12.1.3",
"v12.1.2",
"v12.1.1",
"v12.0.1",
"v12.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23772.json"
}
}
],
"modified": "2026-10-20T10:54:33.020090829Z",
"provider": "osv",
"references": [
"https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08",
"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169",
"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:iris-go:iris:12.2.0:alpha2:*:*:*:go:*:*",
"cpe:2.3:a:iris-go:iris:12.2.0:alpha3:*:*:*:go:*:*",
"cpe:2.3:a:iris-go:iris:12.2.0:alpha4:*:*:*:go:*:*",
"cpe:2.3:a:iris-go:iris:12.2.0:alpha5:*:*:*:go:*:*",
"cpe:2.3:a:iris-go:iris:12.2.0:alpha:*:*:*:go:*:*"
],
"vendor_product": "iris-go:iris",
"extracted_events": [
{
"range": [
{
"introduced": "12.2.0-alpha"
},
{
"last_affected": "12.2.0-alpha"
},
{
"introduced": "12.2.0-alpha2"
},
{
"last_affected": "12.2.0-alpha2"
},
{
"introduced": "12.2.0-alpha3"
},
{
"last_affected": "12.2.0-alpha3"
},
{
"introduced": "12.2.0-alpha4"
},
{
"last_affected": "12.2.0-alpha4"
},
{
"introduced": "12.2.0-alpha5"
},
{
"last_affected": "12.2.0-alpha5"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-23772",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385554,
"published_at": "2021-12-24T12:15:07.697+00:00"
}