Unrated
Security advisory
The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-31836
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 02:39 UTC · Revision 1
Source evidence
The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.
osv:CVE-2022-31836
Complete source record
{
"id": "67bd38904ee7dab77267f1cc5dc6a60944b8074cd12b493e8a1dc03c6debb441",
"url": "https://osv.dev/vulnerability/CVE-2022-31836",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-31836",
"summary": "The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.",
"evidence": "osv:CVE-2022-31836",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2022-31836",
"aliases": [
"CVE-2022-31836",
"GHSA-95f9-94vc-665h",
"GO-2022-0569"
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/beego/beego",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "d828091699f2d97e505c709c653bc036a986cd27"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.0.3"
}
],
"source": "DESCRIPTION"
},
{
"cpe": "cpe:2.3:a:beego:beego:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.0.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.0.3",
"v2.0.2",
"v2.0.2-beta.1",
"v2.0.1",
"v1.12.2",
"v1.12.0",
"v1.11.1",
"v1.11.0",
"v1.10.1",
"v1.10.0",
"v1.9.2",
"v1.9.0",
"v1.8.3",
"v1.7.2",
"v1.8.2",
"v1.8.1",
"v1.8.0",
"v1.7.1",
"v1.7.0",
"v1.6.1",
"v1.6.0",
"v1.5.0",
"v1.4.3",
"v1.4.2",
"v1.4.1",
"v1.4.0",
"v1.3.0",
"v1.2.0",
"v1.0.1",
"v0.9.0",
"v0.8.0",
"v0.7.0",
"v0.6.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31836.json"
}
}
],
"modified": "2026-10-28T02:30:46.177906771Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31836.json",
"https://github.com/advisories/GHSA-95f9-94vc-665h",
"https://nvd.nist.gov/vuln/detail/CVE-2022-31836",
"https://github.com/beego/beego/issues/4961"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31836.json"
}
},
"related_cves": [
{
"value": "CVE-2022-31836",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 514356,
"published_at": "2022-07-05T00:00:00+00:00"
}