6.9medium
WeGIA affected by arbitrary file read via symlink in backup restore
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.48% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
WeGIA is a web manager for charitable institutions. In 3.6.5, The patched loadBackupDB() extracts tar.gz archives to a temporary directory using PHP's PharData class, then uses glob() and file_get_contents() to read SQL files from the extracted contents. Neither the extraction nor the file reading validates whether archive members are symbolic links. This vulnerability is fixed in 3.6.6.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| LabRedesCefetRJ WeGIA | >= 3.6.5, < 3.6.6 | CVE List |
| wegia wegia | 3.6.5 | NVD |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
WeGIA is a web manager for charitable institutions. In 3.6.5, The patched loadBackupDB() extracts tar.gz archives to a temporary directory using PHP's PharData class, then uses glob() and file_get_contents() to read SQL files from the extracted contents. Neither the extraction nor the file reading validates whether archive members are symbolic links. This vulnerability is fixed in 3.6.6.
NVD (es)
WeGIA es un gestor web para instituciones benéficas. En 3.6.5, la función `loadBackupDB()` parcheada extrae archivos tar.gz a un directorio temporal utilizando la clase `PharData` de PHP, luego usa `glob()` y `file_get_contents()` para leer archivos SQL del contenido extraído. Ni la extracción ni la lectura de archivos validan si los miembros del archivo son enlaces simbólicos. Esta vulnerabilidad está corregida en 3.6.6.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31894 changed 2026-03-12 | CVE Terms of Use |
| NVD | CVE-2026-31894 changed 2026-06-17 | Public domain |