CVE and CWE
Distinguish a specific vulnerability from a weakness class.
The idea
A CVE identifier names a publicly disclosed vulnerability record. A CWE identifier classifies a kind of software weakness. Use CVE for affected product and version tracking, and CWE to group root causes and improve coding practices. Neither identifier alone proves the service is exploitable.
Follow the flow
Make it concrete
This excerpt isolates the concept. Connect it to the booking API as you work through the exercise.
Specific vulnerability: CVE record + affected versions
Weakness category: CWE classification
Local assessment: deployed version + configuration + exposure
Outcome: update, mitigation, or owned risk decisionDecisions that matter
- Choose a control against a concrete risk and document its owner.
- Exercise negative cases in authorized test fixtures.
- Retain evidence at a specific revision and revisit it when the system changes.
Your turn
How would you use these identifiers after fixing SQL injection in your own test fixture?
Reveal a worked answer
Classify the root weakness with the appropriate CWE when supported by the analysis. Record affected internal revisions and the regression test. Do not invent a CVE: CVE assignment follows the program’s process.