{"id":"CVE-2022-25299","state":"PUBLISHED","title":"Arbitrary File Write","description":"This affects the package cesanta/mongoose before 7.6. The unsafe handling of file names during upload using mg_http_upload() method may enable attackers to write files to arbitrary locations outside the designated target folder.","publishedAt":"2022-02-18T12:55:21.998Z","updatedAt":"2024-09-16T17:52:54.754Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"snyk"},"assigner":"snyk","products":["n/a cesanta/mongoose"],"affected":[{"vendor":"n/a","product":"cesanta/mongoose","versions":[{"version":"unspecified","status":"affected","lessThan":"7.6","versionType":"custom"}]}],"references":["https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180","https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:46.971Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/25xxx/CVE-2022-25299.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-25299","state":"PUBLISHED","datePublished":"2022-02-18T12:55:21.998Z","dateUpdated":"2024-09-16T17:52:54.754Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2022-02-16T00:00:00.000Z"},"containers":{"cna":{"title":"Arbitrary File Write","descriptions":[{"lang":"en","value":"This affects the package cesanta/mongoose before 7.6. The unsafe handling of file names during upload using mg_http_upload() method may enable attackers to write files to arbitrary locations outside the designated target folder."}],"affected":[{"vendor":"n/a","product":"cesanta/mongoose","versions":[{"version":"unspecified","status":"affected","lessThan":"7.6","versionType":"custom"}]}],"references":[{"url":"https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180","tags":["x_refsource_MISC"]},{"url":"https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"description":"Arbitrary File Write","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"snyk","dateUpdated":"2022-02-18T12:55:21.000Z","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730"},"credits":[{"lang":"en","value":"Snyk Security Team"}],"datePublic":"2022-02-18T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-02-18T12:50:23.330853Z","ID":"CVE-2022-25299","STATE":"PUBLIC","TITLE":"Arbitrary File Write"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"cesanta/mongoose","version":{"version_data":[{"version_affected":"<","version_value":"7.6"}]}}]},"vendor_name":"n/a"}]}},"credit":[{"lang":"eng","value":"Snyk Security Team"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"This affects the package cesanta/mongoose before 7.6. The unsafe handling of file names during upload using mg_http_upload() method may enable attackers to write files to arbitrary locations outside the designated target folder."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Arbitrary File Write"}]}]},"references":{"reference_data":[{"name":"https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180","refsource":"MISC","url":"https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180"},{"name":"https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945","refsource":"MISC","url":"https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://snyk.io/vuln/SNYK-UNMANAGED-CESANTAMONGOOSE-2404180","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/cesanta/mongoose/commit/c65c8fdaaa257e0487ab0aaae9e8f6b439335945","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T04:36:06.664Z"}}]}}}