{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58159 exists.","fix":"No fix has been published for CVE-2025-58159 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-58159 is a critical vulnerability in Wegia Wegia, published on 29 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-58159 and fix it if it is affected.\n\nWhat it is: CVE-2025-58159 is a critical vulnerability in Wegia Wegia, published on 29 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-58159 exists.\n\nAffected product: Wegia Wegia. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-58159/ (Markdown: https://insights.sbomify.com/CVE-2025-58159/index.md)","id":"CVE-2025-58159","markdown":"https://insights.sbomify.com/CVE-2025-58159/index.md","name":"CVE-2025-58159","record":{"aliases":["GHSA-wj2c-237g-cgqp"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"WeGIA web manager","requires_auth":"low_privilege","summary":"Authenticated attackers can upload malicious PHP files to execute arbitrary code on the server due to insufficient file validation.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"wegia","vendor":"wegia"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"description":"WeGIA is a Web manager for charitable institutions. Prior to version 3.4.11, a remote code execution vulnerability was identified, caused by improper validation of uploaded files. The application allows an attacker to upload files with arbitrary filenames, including those with a .php extension. Because the uploaded file is written directly to disk without adequate sanitization or extension restrictions, a spreadsheet file followed by PHP code can be uploaded and executed on the server, leading to arbitrary code execution. This is due to insufficient mitigation of CVE-2025-22133. This issue has been patched in version 3.4.11.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"WeGIA Authenticated Arbitrary File Upload Leading To Remote Code Execution (RCE)","id":"CVE-2025-58159","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"wegia:wegia","products":["wegia:wegia"],"type":"file_upload","year":"2025"},"n_packages":0,"n_references":1,"next":{"headline":"Tracing logging user input may result in poisoning logs with ANSI escape sequences","id":"CVE-2025-58160"},"packages":[],"prev":{"headline":"Harness Affected by Arbitrary File Write in Gitness LFS server","id":"CVE-2025-58158"},"products":["WeGIA"],"published":"2025-08-29","related":[{"cvss_score":10,"headline":"WeGIA Vulnerable to Remote Code Execution (RCE) via OS Command Injection","id":"CVE-2026-28409","kev_date_added":null,"published":"2026-02-27"},{"cvss_score":10,"headline":"WeGIA has a bypass for the fix for CVE-2025-22133 - Arbitrary File Upload leads to Remote Code Execution (RCE)","id":"CVE-2025-58745","kev_date_added":null,"published":"2025-09-08"},{"cvss_score":10,"headline":"WeGIA Path Traversal at endpoint 'html/socio/sistema/download_remessa.php' via parameter 'file'","id":"CVE-2025-55169","kev_date_added":null,"published":"2025-08-12"},{"cvss_score":10,"headline":"WeGIA vulnerable to SQL Injection (Blind Time-Based) in `processa_deletar_socio.php` parameter `id_socio`","id":"CVE-2025-53823","kev_date_added":null,"published":"2025-07-14"},{"cvss_score":10,"headline":"WeGIA has Unauthenticated Time-Based Blind SQL Injection in almox Parameter","id":"CVE-2025-53091","kev_date_added":null,"published":"2025-06-27"},{"cvss_score":10,"headline":"Unauthenticated SQL Injection on get_socios.php endpoint","id":"CVE-2025-46828","kev_date_added":null,"published":"2025-05-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-09-02","vendors":["LabRedesCefetRJ"]},"summary":"Authenticated attackers can upload malicious PHP files to execute arbitrary code on the server due to insufficient file validation.","url":"https://insights.sbomify.com/CVE-2025-58159/"}