| 1 |
# CVSS-latex |
| 2 |
|
| 3 |
This aims to become a LaTeX package allowing anyone to use and nicely print the CVSS ratings for a given CVSS string. |
| 4 |
|
| 5 |
## Usage |
| 6 |
|
| 7 |
|
| 8 |
### Direct forms |
| 9 |
|
| 10 |
```latex |
| 11 |
\cvssScore{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N} |
| 12 |
\cvssLevel{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N} |
| 13 |
\cvssLevelpretty{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H} |
| 14 |
\cvssTag{CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H} |
| 15 |
|
| 16 |
The vuln has a \textbf{\cvssLevel{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N}}-level and we can output it inline. |
| 17 |
``` |
| 18 |
|
| 19 |
|
| 20 |
 |
| 21 |
|
| 22 |
### Imbricated Form |
| 23 |
|
| 24 |
```latex |
| 25 |
\cvssFrame{Low} |
| 26 |
\category{9.9} |
| 27 |
|
| 28 |
We can even combine them: |
| 29 |
\category{\cvssScore{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N}} |
| 30 |
\cvssFrame{\category{\cvssScore{CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N}}} |
| 31 |
``` |
| 32 |
|
| 33 |
 |
| 34 |
|
| 35 |
|
| 36 |
## To-do |
| 37 |
|
| 38 |
- [x] Fix the expansion error preventing nested commands like `\category{\computeCVSS{AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N}}` |
| 39 |
- [x] Add support for CVSS complete string (starting wiht `CVSS:3.1`) |
| 40 |
- [ ] Add CVSS values as variables (future CVSS version) |
| 41 |
- [ ] Add support for full CVSS vector (temporal and environmental score) |
| 42 |
- [x] Turn this into a latex package |
| 43 |
|
| 44 |
|
| 45 |
## Licence |
| 46 |
This package is licensed under the [LPPL-1.3c](https://www.latex-project.org/lppl/lppl-1-3c/). |
| 47 |
The author of this package is [Pierre VIVEGNIS](https://ctan.org/author/vivegnis). |