High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-20303
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:49 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-20303
Complete source record
{
"id": "60d088f562e72cc40db5beab9dd60e09ca9b4f4def21db99fa747f7e4a230b67",
"url": "https://osv.dev/vulnerability/CVE-2018-20303",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-20303",
"summary": "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.",
"evidence": "osv:CVE-2018-20303",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2018-20303",
"aliases": [
"CVE-2018-20303",
"GHSA-9hxg-w7qf-hh93"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gogs/gogs",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v0.11.79",
"v0.11.66",
"v0.11.53",
"v0.11.43",
"v0.11.34",
"v0.11.33",
"v0.11.29",
"v0.11.19",
"v0.11.4",
"v0.11",
"v0.11rc",
"v0.10.18",
"v0.10.8",
"v0.10",
"v0.10rc",
"v0.9.141",
"v0.9.128",
"v0.9.113",
"v0.9.97",
"v0.9.71",
"v0.9.60",
"v0.9.48",
"v0.9.46",
"v0.9.13",
"v0.9.0",
"v0.8.43",
"v0.8.25",
"v0.8.10",
"v0.8.0",
"v0.7.33",
"v0.7.22",
"v0.7.19",
"v0.7.6",
"v0.7.0",
"v0.6.15",
"v0.6.9",
"v0.6.3",
"v0.6.1",
"v0.5.13",
"v0.5.11",
"v0.5.9",
"v0.5.8",
"v0.5.5",
"v0.5.2",
"v0.5.0",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.1",
"v0.3.0",
"v0.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20303.json"
}
}
],
"modified": "2026-10-20T10:48:03.637672161Z",
"provider": "osv",
"references": [
"https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce",
"https://github.com/gogs/gogs/issues/5558",
"https://pentesterlab.com/exercises/cve-2018-18925/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*"
],
"vendor_product": "gogs:gogs",
"extracted_events": [
{
"range": [
{
"fixed": "0.11.82.1218"
}
],
"source": "CPE_RANGE"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "0.11.82.1218"
}
],
"source": "DESCRIPTION"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-20303",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 379988,
"published_at": "2018-12-20T00:29:00.35+00:00"
}