{"containers":{"cna":{"affected":[{"product":"github.com/valyala/fasthttp","vendor":"n/a","versions":[{"lessThan":"1.34.0","status":"affected","version":"unspecified","versionType":"custom"}]}],"credits":[{"lang":"en","value":"egovorukhin"}],"datePublic":"2022-03-17T00:00:00.000Z","descriptions":[{"lang":"en","value":"The package github.com/valyala/fasthttp before 1.34.0 are vulnerable to Directory Traversal via the ServeFile function, due to improper sanitization. It is possible to be exploited by using a backslash %5c character in the path. **Note:** This security issue impacts Windows users only."}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"description":"Directory Traversal","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2022-03-17T11:21:09.000Z","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","shortName":"snyk"},"references":[{"tags":["x_refsource_MISC"],"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"},{"tags":["x_refsource_MISC"],"url":"https://github.com/valyala/fasthttp/issues/1226"},{"tags":["x_refsource_MISC"],"url":"https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1"},{"tags":["x_refsource_MISC"],"url":"https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8"},{"tags":["x_refsource_MISC"],"url":"https://github.com/valyala/fasthttp/releases/tag/v1.34.0"}],"title":"Directory Traversal","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-03-17T11:15:49.753937Z","ID":"CVE-2022-21221","STATE":"PUBLIC","TITLE":"Directory Traversal"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"github.com/valyala/fasthttp","version":{"version_data":[{"version_affected":"<","version_value":"1.34.0"}]}}]},"vendor_name":"n/a"}]}},"credit":[{"lang":"eng","value":"egovorukhin"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"The package github.com/valyala/fasthttp before 1.34.0 are vulnerable to Directory Traversal via the ServeFile function, due to improper sanitization. It is possible to be exploited by using a backslash %5c character in the path. **Note:** This security issue impacts Windows users only."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Directory Traversal"}]}]},"references":{"reference_data":[{"name":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866","refsource":"MISC","url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"},{"name":"https://github.com/valyala/fasthttp/issues/1226","refsource":"MISC","url":"https://github.com/valyala/fasthttp/issues/1226"},{"name":"https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1","refsource":"MISC","url":"https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1"},{"name":"https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8","refsource":"MISC","url":"https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8"},{"name":"https://github.com/valyala/fasthttp/releases/tag/v1.34.0","refsource":"MISC","url":"https://github.com/valyala/fasthttp/releases/tag/v1.34.0"}]}}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-03T02:31:59.051Z"},"title":"CVE Program Container","references":[{"tags":["x_refsource_MISC","x_transferred"],"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/valyala/fasthttp/issues/1226"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/valyala/fasthttp/commit/6b5bc7bb304975147b4af68df54ac214ed2554c1"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/valyala/fasthttp/commit/15262ecf3c602364639d465daba1e7f3604d00e8"},{"tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/valyala/fasthttp/releases/tag/v1.34.0"}]}]},"cveMetadata":{"assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","assignerShortName":"snyk","cveId":"CVE-2022-21221","datePublished":"2022-03-17T11:21:09.487Z","dateReserved":"2022-02-24T00:00:00.000Z","dateUpdated":"2024-09-16T18:34:58.514Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"}