{
  "affected": [
    {
      "database_specific": {
        "unresolved_ranges": [
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.11.82.1218"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.11.82.1218"
              }
            ]
          }
        ]
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce"
            }
          ],
          "repo": "https://github.com/gogs/gogs",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce"
            }
          ],
          "repo": "https://github.com/gogs/gogs",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "In pkg/tool/path.go in Gogs before 0.11.82.1218, a directory traversal in the file-upload functionality can allow an attacker to create a file under data/sessions on the server, a similar issue to CVE-2018-18925.",
  "id": "CVE-2018-20303",
  "modified": "2026-03-13T21:48:03.564806432Z",
  "published": "2018-12-20T00:29:00.350Z",
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gogs/gogs/issues/5558"
    },
    {
      "type": "EVIDENCE",
      "url": "https://pentesterlab.com/exercises/cve-2018-18925/"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ]
}