gsd-2021-23772
Vulnerability from gsd
Modified
2023-12-13 01:23
Details
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.
Aliases
Aliases



{
  "GSD": {
    "alias": "CVE-2021-23772",
    "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.",
    "id": "GSD-2021-23772",
    "references": [
      "https://www.suse.com/security/cve/CVE-2021-23772.html"
    ]
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "aliases": [
        "CVE-2021-23772"
      ],
      "details": "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.",
      "id": "GSD-2021-23772",
      "modified": "2023-12-13T01:23:30.175501Z",
      "schema_version": "1.4.0"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "report@snyk.io",
        "DATE_PUBLIC": "2021-12-24T12:00:27.806259Z",
        "ID": "CVE-2021-23772",
        "STATE": "PUBLIC",
        "TITLE": "Arbitrary File Write"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "github.com/kataras/iris",
                    "version": {
                      "version_data": [
                        {
                          "version_affected": "\u003e=",
                          "version_value": "0"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            },
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "github.com/kataras/iris/v12",
                    "version": {
                      "version_data": [
                        {
                          "version_affected": "\u003e=",
                          "version_value": "0"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            }
          ]
        }
      },
      "credit": [
        {
          "lang": "eng",
          "value": "Snyk Security Team"
        }
      ],
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "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."
          }
        ]
      },
      "impact": {
        "cvss": {
          "attackComplexity": "HIGH",
          "attackVector": "NETWORK",
          "availabilityImpact": "HIGH",
          "baseScore": 7.5,
          "baseSeverity": "HIGH",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "privilegesRequired": "LOW",
          "scope": "UNCHANGED",
          "userInteraction": "NONE",
          "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "version": "3.1"
        }
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "Arbitrary File Write"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169",
            "refsource": "MISC",
            "url": "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169"
          },
          {
            "name": "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170",
            "refsource": "MISC",
            "url": "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170"
          },
          {
            "name": "https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08",
            "refsource": "MISC",
            "url": "https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08"
          }
        ]
      }
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c=v12.1.8 || =v12.2.0",
          "affected_versions": "All versions up to 12.1.8, version 12.2.0",
          "cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-59",
            "CWE-937"
          ],
          "date": "2022-01-04",
          "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.",
          "fixed_versions": [],
          "identifier": "CVE-2021-23772",
          "identifiers": [
            "CVE-2021-23772"
          ],
          "not_impacted": "",
          "package_slug": "go/github.com/kataras/iris",
          "pubdate": "2021-12-24",
          "solution": "Unfortunately, there is no solution available yet.",
          "title": "Improper Link Resolution Before File Access (\u0027Link Following\u0027)",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2021-23772",
            "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169",
            "https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08",
            "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170"
          ],
          "uuid": "720c80ae-1c87-443c-9063-2333a427750a",
          "versions": [
            {
              "commit": {
                "sha": "08403f0317e7d54607782a65a5344c589087cf55",
                "tags": [
                  "v12.1.8"
                ],
                "timestamp": "20200216091435"
              },
              "number": "v12.1.8"
            },
            {
              "commit": {
                "sha": "a917ef68fc401f5ca8f421fba50db4e129966b52",
                "tags": [
                  "v12.2.0-alpha"
                ],
                "timestamp": "20200913161857"
              },
              "number": "v12.2.0"
            }
          ]
        },
        {
          "affected_range": "\u003c=v0.0.2",
          "affected_versions": "All versions up to 0.0.2",
          "cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-59",
            "CWE-937"
          ],
          "date": "2023-02-09",
          "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.",
          "fixed_versions": [],
          "identifier": "CVE-2021-23772",
          "identifiers": [
            "GHSA-jcxc-rh6w-wf49",
            "CVE-2021-23772"
          ],
          "not_impacted": "",
          "package_slug": "go/github.com/kataras/iris/context",
          "pubdate": "2022-01-06",
          "solution": "Unfortunately, there is no solution available yet.",
          "title": "Improper Link Resolution Before File Access (\u0027Link Following\u0027)",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2021-23772",
            "https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08",
            "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169",
            "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170",
            "https://pkg.go.dev/vuln/GO-2022-0272",
            "https://github.com/advisories/GHSA-jcxc-rh6w-wf49"
          ],
          "uuid": "a05a5c81-19b5-47f4-bd01-96c622613ef0",
          "versions": [
            {
              "commit": {
                "sha": "48c00f7cc22fa9620f30810b4b63b79dc4ae6d32",
                "tags": [
                  "v0.0.2"
                ],
                "timestamp": "20200903181320"
              },
              "number": "v0.0.2"
            }
          ]
        },
        {
          "affected_range": "\u003c=12.2.0-alpha5",
          "affected_versions": "All versions up to 12.2.0-alpha5",
          "cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-59",
            "CWE-937"
          ],
          "date": "2022-01-06",
          "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.",
          "fixed_versions": [],
          "identifier": "CVE-2021-23772",
          "identifiers": [
            "GHSA-jcxc-rh6w-wf49",
            "CVE-2021-23772"
          ],
          "not_impacted": "",
          "package_slug": "go/github.com/kataras/iris/v12",
          "pubdate": "2022-01-06",
          "solution": "Unfortunately, there is no solution available yet.",
          "title": "Improper Link Resolution Before File Access (\u0027Link Following\u0027)",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2021-23772",
            "https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08",
            "https://github.com/advisories/GHSA-jcxc-rh6w-wf49"
          ],
          "uuid": "32e31ca4-9c7d-4bff-a0da-ddae90d1c72d"
        },
        {
          "affected_range": "\u003cv12.2.0-alpha8",
          "affected_versions": "All versions before 12.2.0-alpha8",
          "cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-59",
            "CWE-937"
          ],
          "date": "2023-02-09",
          "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.",
          "fixed_versions": [
            "v12.2.0-alpha8"
          ],
          "identifier": "CVE-2021-23772",
          "identifiers": [
            "GHSA-jcxc-rh6w-wf49",
            "CVE-2021-23772"
          ],
          "not_impacted": "All versions starting from 12.2.0-alpha8",
          "package_slug": "go/github.com/kataras/iris/v12/context",
          "pubdate": "2022-01-06",
          "solution": "Upgrade to version 12.2.0-alpha8 or above. *Note*: 12.2.0-alpha8 may be an unstable version. Use caution.",
          "title": "Improper Link Resolution Before File Access (\u0027Link Following\u0027)",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2021-23772",
            "https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08",
            "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169",
            "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170",
            "https://pkg.go.dev/vuln/GO-2022-0272",
            "https://github.com/advisories/GHSA-jcxc-rh6w-wf49"
          ],
          "uuid": "3395d974-5976-41ca-9645-64d9ce58e1af",
          "versions": [
            {
              "commit": {
                "sha": "b4b1f73df6f8b1f541d1918f52051a5308edfebd",
                "tags": [
                  "v12.2.0-alpha8"
                ],
                "timestamp": "20220226192704"
              },
              "number": "v12.2.0-alpha8"
            }
          ]
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [
              {
                "children": [],
                "cpe_match": [
                  {
                    "cpe23Uri": "cpe:2.3:a:iris-go:iris:*:*:*:*:*:go:*:*",
                    "cpe_name": [],
                    "versionEndIncluding": "12.1.8",
                    "vulnerable": true
                  },
                  {
                    "cpe23Uri": "cpe:2.3:a:iris-go:iris:12.2.0:alpha:*:*:*:go:*:*",
                    "cpe_name": [],
                    "vulnerable": true
                  },
                  {
                    "cpe23Uri": "cpe:2.3:a:iris-go:iris:12.2.0:alpha2:*:*:*:go:*:*",
                    "cpe_name": [],
                    "vulnerable": true
                  },
                  {
                    "cpe23Uri": "cpe:2.3:a:iris-go:iris:12.2.0:alpha3:*:*:*:go:*:*",
                    "cpe_name": [],
                    "vulnerable": true
                  },
                  {
                    "cpe23Uri": "cpe:2.3:a:iris-go:iris:12.2.0:alpha4:*:*:*:go:*:*",
                    "cpe_name": [],
                    "vulnerable": true
                  },
                  {
                    "cpe23Uri": "cpe:2.3:a:iris-go:iris:12.2.0:alpha5:*:*:*:go:*:*",
                    "cpe_name": [],
                    "vulnerable": true
                  }
                ],
                "operator": "OR"
              },
              {
                "children": [],
                "cpe_match": [
                  {
                    "cpe23Uri": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
                    "cpe_name": [],
                    "versionEndExcluding": "1.7.5",
                    "vulnerable": false
                  }
                ],
                "operator": "OR"
              }
            ],
            "cpe_match": [],
            "operator": "AND"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "report@snyk.io",
          "ID": "CVE-2021-23772"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "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."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-59"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "N/A",
              "refsource": "CONFIRM",
              "tags": [
                "Exploit",
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRIS-2325169"
            },
            {
              "name": "N/A",
              "refsource": "CONFIRM",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/kataras/iris/commit/e213dba0d32ff66653e0ef124bc5088817264b08"
            },
            {
              "name": "N/A",
              "refsource": "CONFIRM",
              "tags": [
                "Exploit",
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMKATARASIRISV12-2325170"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "PARTIAL",
            "baseScore": 6.8,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
            "version": "2.0"
          },
          "exploitabilityScore": 8.6,
          "impactScore": 6.4,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": false
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 2.8,
          "impactScore": 5.9
        }
      },
      "lastModifiedDate": "2022-01-04T20:11Z",
      "publishedDate": "2021-12-24T12:15Z"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...

Loading...
  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.