{"api_version":"1","generated_at":"2026-04-23T13:20:00+00:00","cve":"CVE-2022-25297","urls":{"html":"https://cve.report/CVE-2022-25297","api":"https://cve.report/api/cve/CVE-2022-25297.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25297","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25297"},"summary":{"title":"CVE-2022-25297","description":"This affects the package drogonframework/drogon before 1.7.5. The unsafe handling of file names during upload using HttpFile::save() method may enable attackers to write files to arbitrary locations outside the designated target folder.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-02-21 08:15:00","updated_at":"2022-02-28 19:22:00"},"problem_types":["CWE-552"],"metrics":[],"references":[{"url":"https://github.com/drogonframework/drogon/pull/1174","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Prevent malformed upload path causing arbitrary write by Kirill89 · Pull Request #1174 · drogonframework/drogon · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/drogonframework/drogon/commit/3c785326c63a34aa1799a639ae185bc9453cb447","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Prevent malformed upload path causing arbitrary write (#1174) · drogonframework/drogon@3c78532 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://snyk.io/vuln/SNYK-UNMANAGED-DROGONFRAMEWORKDROGON-2407243","name":"N/A","refsource":"CONFIRM","tags":[],"title":"Arbitrary File Write in drogonframework/drogon | CVE-2022-25297 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25297","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25297","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Snyk Security Team","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"25297","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"drogon","cpe5":"drogon","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-02-21T07:58:30.827909Z","ID":"CVE-2022-25297","STATE":"PUBLIC","TITLE":"Arbitrary File Write"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"drogonframework/drogon","version":{"version_data":[{"version_affected":"<","version_value":"1.7.5"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Arbitrary File Write"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-UNMANAGED-DROGONFRAMEWORKDROGON-2407243","name":"https://snyk.io/vuln/SNYK-UNMANAGED-DROGONFRAMEWORKDROGON-2407243"},{"refsource":"MISC","url":"https://github.com/drogonframework/drogon/commit/3c785326c63a34aa1799a639ae185bc9453cb447","name":"https://github.com/drogonframework/drogon/commit/3c785326c63a34aa1799a639ae185bc9453cb447"},{"refsource":"MISC","url":"https://github.com/drogonframework/drogon/pull/1174","name":"https://github.com/drogonframework/drogon/pull/1174"}]},"description":{"description_data":[{"lang":"eng","value":"This affects the package drogonframework/drogon before 1.7.5. The unsafe handling of file names during upload using HttpFile::save() method may enable attackers to write files to arbitrary locations outside the designated target folder."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},"credit":[{"lang":"eng","value":"Snyk Security Team"}]},"nvd":{"publishedDate":"2022-02-21 08:15:00","lastModifiedDate":"2022-02-28 19:22:00","problem_types":["CWE-552"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.5},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:drogon:drogon:*:*:*:*:*:*:*:*","versionEndExcluding":"1.7.5","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}