# CVE-2026-31895: WeGIA has a SQL Injection via Direct Query Interpolation in restaurar_produto.php

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-11T19:08:18.763Z
- Modified: 2026-06-17T10:34:42.893Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

WeGIA is a web manager for charitable institutions. Prior to version 3.6.6, WeGIA (Web gerenciador para instituições assistenciais) contains a SQL injection vulnerability in html/matPat/restaurar_produto.php. The id_produto parameter from $_GET is directly interpolated into SQL queries without parameterization or sanitization. This vulnerability is fixed in 3.6.6.

(As written by CVE List.)

## Affected

- LabRedesCefetRJ WeGIA: < 3.6.6
- wegia wegia: before 3.6.6

## References

- <https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-m39r-p62f-vmqm> (exploit, mitigation, vendor-advisory)

## Sources

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

---

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