{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2020-36565",
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "state": "PUBLISHED",
        "assignerShortName": "Go",
        "requesterUserId": "7d08541a-cd0a-42e2-8f81-76e6ceb65fc3",
        "dateReserved": "2022-07-29T18:52:35.508Z",
        "datePublished": "2022-12-07T16:14:43.946Z",
        "dateUpdated": "2024-08-04T17:30:08.318Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
                "shortName": "Go",
                "dateUpdated": "2023-06-12T19:04:06.359Z"
            },
            "title": "Directory traversal on Windows in github.com/labstack/echo/v4",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Due to improper sanitization of user input on Windows, the static file handler allows for directory traversal, allowing an attacker to read files outside of the target directory that the server has permission to read."
                }
            ],
            "affected": [
                {
                    "vendor": "github.com/labstack/echo/v4",
                    "product": "github.com/labstack/echo/v4",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "github.com/labstack/echo/v4",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "4.1.18-0.20201215153152-4422e3b66b9f",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "platforms": [
                        "windows"
                    ],
                    "programRoutines": [
                        {
                            "name": "common.static"
                        },
                        {
                            "name": "Echo.Static"
                        },
                        {
                            "name": "Group.Static"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE 22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/labstack/echo/pull/1718"
                },
                {
                    "url": "https://github.com/labstack/echo/commit/4422e3b66b9fd498ed1ae1d0242d660d0ed3faaa"
                },
                {
                    "url": "https://pkg.go.dev/vuln/GO-2021-0051"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "@little-cui (Apache ServiceComb)"
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-04T17:30:08.318Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://github.com/labstack/echo/pull/1718",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/labstack/echo/commit/4422e3b66b9fd498ed1ae1d0242d660d0ed3faaa",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://pkg.go.dev/vuln/GO-2021-0051",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}