CVSS
debt(d7/e3/b5/t7)
Closest to 'only careful code review or runtime testing' (d7). The detection_hints indicate automated detection is 'no' — misuse of CVSS (treating all vulns equally, ignoring context) requires manual review of prioritisation decisions. Tools like NVD, MITRE, and CVSS calculators provide scores but don't detect whether teams are using them correctly in their remediation workflows.
Closest to 'simple parameterised fix' (e3). Per quick_fix, correcting CVSS misuse involves adopting a tiered prioritisation framework (9.0+ immediate, 7.0-8.9 this sprint, etc.). This is a process/policy change within vulnerability management, not a code rewrite — adjusting how teams interpret and act on scores they already have.
Closest to 'persistent productivity tax' (b5). CVSS applies across web and cli contexts per applies_to, affecting all vulnerability management decisions. Once a team establishes a CVSS-based prioritisation approach (good or bad), it shapes ongoing security work — every new vulnerability gets filtered through this mental model, creating sustained impact on multiple workstreams.
Closest to 'serious trap' (t7). The misconception explicitly states developers wrongly believe 'high CVSS score means must patch immediately.' This contradicts how risk assessment works elsewhere (context matters) — a 9.8 in a sandboxed tool may be less urgent than a 6.5 on an internet-facing system. Confusing base/temporal/environmental scores compounds this serious conceptual trap.
Also Known As
TL;DR
Explanation
CVSS (currently v3.1) provides a standardised way to rate the severity of security vulnerabilities. Scores are derived from base metrics: attack vector, complexity, privileges required, user interaction, scope, and impact on confidentiality, integrity, and availability. Scores: 0.1–3.9 Low, 4.0–6.9 Medium, 7.0–8.9 High, 9.0–10.0 Critical. PHP Clarity Lab shows the typical CVSS score for the vulnerability class, not a score specific to your code.
Common Misconception
Why It Matters
Common Mistakes
- Prioritising purely by CVSS base score without considering exploitability in your specific environment.
- Confusing base score (theoretical worst case) with temporal or environmental score (actual risk).
- Treating CVSS as a pass/fail threshold rather than a starting point for contextual risk analysis.
- Not tracking CVSS temporal score changes — a 0-day with no patch has higher urgency than a fully patched 10.0.
Code Examples
// Treating any CVSS < 7 as non-urgent without context:
if ($vuln->cvss_score >= 7.0) {
schedule_patch($vuln, 'urgent');
} else {
schedule_patch($vuln, 'next_quarter'); // risky: 6.9 SSRF on public endpoint ignored
}
# CVSS v3.1 example — Log4Shell (CVE-2021-44228)
# CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H → Score: 10.0 CRITICAL
#
# AV:N — Network exploitable (remotely)
# AC:L — Low attack complexity
# PR:N — No privileges required
# UI:N — No user interaction
# S:C — Scope Changed (affects other components)
# C/I/A: High — full confidentiality/integrity/availability impact
# PHP app scoring a finding:
# Reflected XSS on a low-privilege page with no auth:
# CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N → ~6.1 Medium
# Tools:
# https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator
# https://www.first.org/cvss/calculator/3.1