Heuristic:0x4m4 Hexstrike ai CVSS Exploitability Component Scoring
| Knowledge Sources | |
|---|---|
| Domains | CVE_Intelligence, Vulnerability_Management, Security |
| Last Updated | 2026-10-10 00:00 GMT |
Overview
Fallback heuristic for calculating CVE exploitability scores from individual CVSS v3.x components when the official exploitability subscore is unavailable.
Description
When the NVD API does not provide the CVSS exploitability subscore, HexStrike's CVEIntelligenceManager calculates one from the individual CVSS components. The formula weights four components: Attack Vector (NETWORK=0.4, ADJACENT=0.3, LOCAL=0.2, PHYSICAL=0.1), Attack Complexity (LOW=0.3, HIGH=0.1), Privileges Required (NONE=0.2, LOW=0.1), and User Interaction (NONE=0.1). The sum is capped at 1.0. Additionally, if the description contains keywords like "remote code execution", "buffer overflow", or "authentication bypass", bonus points are added (+0.2 or +0.15) to reflect higher real-world exploitability.
Usage
Use this heuristic when analyzing CVE exploitability and the NVD-provided exploitability subscore is zero or missing. Applied by CVEIntelligenceManager.analyze_cve_exploitability.
The Insight (Rule of Thumb)
- Action: Sum weighted CVSS component scores: score = AV + AC + PR + UI
- Values:
- Attack Vector: NETWORK=0.4, ADJACENT_NETWORK=0.3, LOCAL=0.2, PHYSICAL=0.1
- Attack Complexity: LOW=0.3, HIGH=0.1
- Privileges Required: NONE=0.2, LOW=0.1
- User Interaction: NONE=0.1
- Bonus: RCE/buffer overflow = +0.2, auth bypass/privilege escalation = +0.15
- Trade-off: Network-accessible, low-complexity, no-auth, no-interaction vulnerabilities score highest (0.4+0.3+0.2+0.1 = 1.0).
- Levels: >=0.8 = HIGH, >=0.6 = MEDIUM, >=0.3 = LOW, <0.3 = VERY_LOW
Reasoning
The weights reflect real-world exploitability. Network-based attacks (0.4) are the most exploitable because they require no physical or local access. Low attack complexity (0.3) means the exploit is straightforward to execute. No privileges required (0.2) means any attacker can attempt exploitation. No user interaction (0.1) means the exploit doesn't require tricking a user. The bonus for RCE and buffer overflow descriptions (+0.2) reflects that these vulnerability types are more frequently weaponized with public exploit code. The bonus for auth bypass and privilege escalation (+0.15) reflects their high impact potential. When the official CVSS exploitability subscore IS available, it is preferred: exploitability_score = min(exploitability_subscore / 3.9, 1.0).
Code Evidence
Component scoring from `hexstrike_server.py:6232-6261`:
# Calculate based on individual CVSS components
score_components = 0.0
# Attack Vector scoring
if attack_vector == "NETWORK":
score_components += 0.4
elif attack_vector == "ADJACENT_NETWORK":
score_components += 0.3
elif attack_vector == "LOCAL":
score_components += 0.2
elif attack_vector == "PHYSICAL":
score_components += 0.1
# Attack Complexity scoring
if attack_complexity == "LOW":
score_components += 0.3
elif attack_complexity == "HIGH":
score_components += 0.1
# Privileges Required scoring
if privileges_required == "NONE":
score_components += 0.2
elif privileges_required == "LOW":
score_components += 0.1
# User Interaction scoring
if user_interaction == "NONE":
score_components += 0.1
exploitability_score = min(score_components, 1.0)
Description-based bonus from `hexstrike_server.py:6293-6297`:
# Adjust exploitability based on vulnerability type
if any(kw in description_lower for kw in ['remote code execution', 'rce', 'buffer overflow']):
exploitability_score = min(exploitability_score + 0.2, 1.0)
elif any(kw in description_lower for kw in ['authentication bypass', 'privilege escalation']):
exploitability_score = min(exploitability_score + 0.15, 1.0)
Official subscore preference from `hexstrike_server.py:6229-6230`:
if exploitability_subscore > 0:
exploitability_score = min(exploitability_subscore / 3.9, 1.0) # Normalize to 0-1