Skip to content

RVSS returns wrong score when Scope is set to Changed and Safety to Human #1

@roizpi

Description

@roizpi

After testing different RVSS values with Scope value set to Changed (S:C) and Safety set to Human (H:H). When mixing different values of Confidentiality, Integrity and Availability, all the RVSS Groups
are scoring 0.
If either Scope or Safety values are set differently, it returns the correct values.

Here are some examples to reproduce the issue:

$ rvss RVSS:1.0/AV:L/AC:L/PR:N/UI:R/Y:T/S:C/C:L/I:L/A:H/H:H
Base Score:	0.0
Temporal:	0.0
Environment:	0.0

$ rvss RVSS:1.0/AV:L/AC:L/PR:N/UI:R/Y:T/S:C/C:H/I:N/A:H/H:H
Base Score:	0.0
Temporal:	0.0
Environment:	0.0

Output when only changing Integrity to any value, and S:C H:H are set.

$ rvss RVSS:1.0/AV:PI/AC:L/PR:N/UI:R/Y:T/S:C/C:H/I:N/A:H/H:H
Base Score:	0.0
Temporal:	0.0
Environment:	0.0

$ rvss RVSS:1.0/AV:PI/AC:L/PR:N/UI:R/Y:T/S:C/C:H/I:L/A:H/H:H
Base Score:	0.0
Temporal:	0.0
Environment:	0.0

$ rvss RVSS:1.0/AV:PI/AC:L/PR:N/UI:R/Y:T/S:C/C:H/I:H/A:H/H:H
Base Score:	0.0
Temporal:	0.0
Environment:	0.0

If at least two Impact subgroup values are set to None, the results seems correct

$ rvss RVSS:1.0/AV:L/AC:L/PR:H/UI:R/Y:T/S:C/C:L/I:N/A:N/H:H                                                                
Base Score:	6.5
Temporal:	6.5
Environment:	6.5

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions