ghsa-cvx5-m8vg-vxgc
Vulnerability from github
Published
2022-04-28 21:16
Modified
2022-04-28 21:16
Severity ?
Summary
Arbitrary filesystem write access from velocity.
Details
Impact
The velocity scripts is not properly sandboxed against using the Java File API to perform read or write operations on the filesystem. Now 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.
Patches
The problem has been patched on versions 12.6.7, 12.10.3 and 13.0RC1.
Workarounds
There's no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights.
References
https://jira.xwiki.org/browse/XWIKI-5168
For more information
If you have any questions or comments about this advisory: * Open an issue in Jira XWiki * Email us at XWiki Security mailing-list
{ "affected": [ { "package": { "ecosystem": "Maven", "name": "org.xwiki.commons:xwiki-commons-velocity" }, "ranges": [ { "events": [ { "introduced": "2.3.0" }, { "fixed": "12.6.7" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "Maven", "name": "org.xwiki.commons:xwiki-commons-velocity" }, "ranges": [ { "events": [ { "introduced": "12.7.0" }, { "fixed": "12.10.3" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2022-24897" ], "database_specific": { "cwe_ids": [ "CWE-22", "CWE-668" ], "github_reviewed": true, "github_reviewed_at": "2022-04-28T21:16:40Z", "nvd_published_at": "2022-05-02T22:15:00Z", "severity": "HIGH" }, "details": "### Impact\n\nThe velocity scripts is not properly sandboxed against using the Java File API to perform read or write operations on the filesystem. Now 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. \n\n### Patches\nThe problem has been patched on versions 12.6.7, 12.10.3 and 13.0RC1.\n\n### Workarounds\nThere\u0027s no easy workaround for fixing this vulnerability other than upgrading and being careful when giving Script rights.\n\n### References\nhttps://jira.xwiki.org/browse/XWIKI-5168\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki](https://jira.xwiki.org)\n* Email us at [XWiki Security mailing-list](mailto:security@xwiki.org)\n", "id": "GHSA-cvx5-m8vg-vxgc", "modified": "2022-04-28T21:16:40Z", "published": "2022-04-28T21:16:40Z", "references": [ { "type": "WEB", "url": "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-24897" }, { "type": "WEB", "url": "https://github.com/xwiki/xwiki-commons/pull/127" }, { "type": "WEB", "url": "https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8" }, { "type": "PACKAGE", "url": "https://github.com/xwiki/xwiki-commons" }, { "type": "WEB", "url": "https://jira.xwiki.org/browse/XWIKI-5168" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "type": "CVSS_V3" } ], "summary": "Arbitrary filesystem write access from velocity." }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.