Arbitrary filesystem write access from velocity.
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
Czego dotyczy
Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.
| Platforma | Paczka | Podatne wersje | Poprawka w wersji |
|---|---|---|---|
| Java / Kotlin (Maven) | org.xwiki.commons:xwiki-commons-velocity | >= 2.3.0, < 12.6.7, >= 12.7.0, < 12.10.3 | 12.6.7, 12.10.3 |
Odnośniki
- https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-cvx5-m8vg-vxgc
- https://nvd.nist.gov/vuln/detail/CVE-2022-24897
- https://github.com/xwiki/xwiki-commons/pull/127
- https://github.com/xwiki/xwiki-commons/commit/215951cfb0f808d0bf5b1097c9e7d1e503449ab8
- https://github.com/xwiki/xwiki-commons
- https://jira.xwiki.org/browse/XWIKI-5168
- Wektor CVSS
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H- Słabość (CWE)
CWE-22, CWE-668- Platforma
- Java / Kotlin (Maven)
- Paczka
org.xwiki.commons:xwiki-commons-velocity- Ujawniono
- 28.04.2022
- Aktualizacja
- 11.10.2026 11:21
Źródła i licencje
OSV / GitHub Advisory Database - GHSA-cvx5-m8vg-vxgc - CC BY 4.0
Historia podatności: org.xwiki.commons:xwiki-commons-velocity
Wszystkie opisane podatności tej paczki (Java / Kotlin (Maven)), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.
- Wszystkich wpisów
- 2
- Pierwsza → ostatnia
- 04.2022 04.2024
- Bez poprawki
- 0
- Wykorzystywana w atakach
- 0
Rozkład istotności
- Krytyczna 1
- Wysoka 1
Ujawnienia w latach
- 2022: 1
- 2023: 0
- 2024: 1
- 2025: 0
- 2026: 0
-
Arbitrary filesystem write access from velocity. ten wpis
Dowiedz się, które podatności dotyczą Twojej aplikacji
Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.