# CVE-2026-31894: WeGIA affected by arbitrary file read via symlink in backup restore

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-11T19:05:51.687Z
- Modified: 2026-06-17T10:34:42.777Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- LabRedesCefetRJ WeGIA: >= 3.6.5, < 3.6.6
- wegia wegia: 3.6.5

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-6mmm-27h8-8g55> (exploit, mitigation, vendor-advisory)
- <https://github.com/LabRedesCefetRJ/WeGIA/commit/79e7a164eddb527e3b331037b7a4defb8c115d50> (patch)

## Sources

- CVE List: [CVE-2026-31894](https://www.cve.org/CVERecord?id=CVE-2026-31894), CVE Terms of Use, modified 2026-03-12
- NVD: [CVE-2026-31894](https://nvd.nist.gov/vuln/detail/CVE-2026-31894), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31894 · Whole record: https://cve.day/CVE-2026-31894.json · Rebuilt by cve.day 2026-11-25T22:59:15.770Z
