{"api_version":"1","generated_at":"2026-07-23T23:03:24+00:00","cve":"CVE-2022-24897","urls":{"html":"https://cve.report/CVE-2022-24897","api":"https://cve.report/api/cve/CVE-2022-24897.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24897","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24897"},"summary":{"title":"CVE-2022-24897","description":"APIs to evaluate content with Velocity is a package for APIs to evaluate content with Velocity. Starting with version 2.3 and prior to 12.6.7, 12.10.3, and 13.0, the velocity scripts are not properly sandboxed against using the Java File API to perform read or write operations on the filesystem. Writing an attacking script in Velocity requires the Script rights in XWiki so not all users can use it, and it also requires finding an XWiki API which returns a File. The problem has been patched in versions 12.6.7, 12.10.3, and 13.0. There is no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-05-02 22:15:00","updated_at":"2023-07-06 13:35:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc","name":"https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc","refsource":"CONFIRM","tags":[],"title":"Arbitrary filesystem write access from velocity. · Advisory · xwiki/xwiki-commons · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://jira.xwiki.org/browse/XWIKI-5168","name":"https://jira.xwiki.org/browse/XWIKI-5168","refsource":"MISC","tags":[],"title":"[XWIKI-5168] Arbitrary filesystem write access from velocity. - XWiki.org JIRA","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/xwiki/xwiki-commons/pull/127","name":"https://github.com/xwiki/xwiki-commons/pull/127","refsource":"MISC","tags":[],"title":"XWIKI-5168: Don't allow some methods in velocity introspector by surli · Pull Request #127 · xwiki/xwiki-commons · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8","name":"https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8","refsource":"MISC","tags":[],"title":"XWIKI-5168: Don't allow some methods in velocity introspector (#127) · xwiki/xwiki-commons@215951c · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24897","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24897","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"24897","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"xwiki","cpe5":"xwiki","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-24897","STATE":"PUBLIC","TITLE":"Arbitrary filesystem write access from Velocity"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"xwiki-commons","version":{"version_data":[{"version_value":">= 2.3, < 12.6.7"},{"version_value":"12.7-rc-1, < 12.10.3"}]}}]},"vendor_name":"xwiki"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"APIs to evaluate content with Velocity is a package for APIs to evaluate content with Velocity. Starting with version 2.3 and prior to 12.6.7, 12.10.3, and 13.0, the velocity scripts are not properly sandboxed against using the Java File API to perform read or write operations on the filesystem. Writing an attacking script in Velocity requires the Script rights in XWiki so not all users can use it, and it also requires finding an XWiki API which returns a File. The problem has been patched in versions 12.6.7, 12.10.3, and 13.0. There is no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"references":{"reference_data":[{"name":"https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc","refsource":"CONFIRM","url":"https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc"},{"name":"https://github.com/xwiki/xwiki-commons/pull/127","refsource":"MISC","url":"https://github.com/xwiki/xwiki-commons/pull/127"},{"name":"https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8","refsource":"MISC","url":"https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8"},{"name":"https://jira.xwiki.org/browse/XWIKI-5168","refsource":"MISC","url":"https://jira.xwiki.org/browse/XWIKI-5168"}]},"source":{"advisory":"GHSA-cvx5-m8vg-vxgc","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-05-02 22:15:00","lastModifiedDate":"2023-07-06 13:35:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":1.6,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6},"severity":"MEDIUM","exploitabilityScore":6.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:xwiki:xwiki:*:*:*:*:*:*:*:*","versionStartIncluding":"12.7","versionEndExcluding":"12.10.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","versionStartIncluding":"2.3","versionEndExcluding":"12.6.7","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"24897","Ordinal":"228316","Title":"CVE-2022-24897","CVE":"CVE-2022-24897","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"24897","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}