Critical
Security advisory
Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-18925
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:28 UTC · Revision 1
Source evidence
Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron.
osv:CVE-2018-18925
Complete source record
{
"id": "3b5f7c38f446429d9e6f71d7068e4ea5709d2f183f119b6c12124055f84b8256",
"url": "https://osv.dev/vulnerability/CVE-2018-18925",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-18925",
"summary": "Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a \"..\" session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron.",
"evidence": "osv:CVE-2018-18925",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2018-18925",
"aliases": [
"CVE-2018-18925"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gogs/gogs",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "3a4c981e3167875a3b60d0cee00ee85272608439"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.11.66"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"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-18925.json"
}
}
],
"modified": "2026-10-20T10:50:22.856229985Z",
"provider": "osv",
"references": [
"https://github.com/gogs/gogs/issues/5469"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-18925",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 381636,
"published_at": "2018-11-04T05:29:00.397+00:00"
}