Reference documentation and code samples for the Grafeas V1 Client class CVSS.
Common Vulnerability Scoring System.
For details, seehttps://www.first.org/cvss/specification-documentThis is a message we will try to use for storing various versions of CVSS
rather than making a separate proto for storing a specific version.
Generated from protobuf messagegrafeas.v1.CVSS
Namespace
Grafeas \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ base_score
float
The base score is a function of the base metric scores.
↳ exploitability_score
float
↳ impact_score
float
↳ attack_vector
int
Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
↳ attack_complexity
int
↳ authentication
int
↳ privileges_required
int
↳ user_interaction
int
↳ scope
int
↳ confidentiality_impact
int
↳ integrity_impact
int
↳ availability_impact
int
getBaseScore
The base score is a function of the base metric scores.
Returns
Type
Description
float
setBaseScore
The base score is a function of the base metric scores.
Parameter
Name
Description
var
float
Returns
Type
Description
$this
getExploitabilityScore
Generated from protobuf fieldfloat exploitability_score = 2;
Returns
Type
Description
float
setExploitabilityScore
Generated from protobuf fieldfloat exploitability_score = 2;
Parameter
Name
Description
var
float
Returns
Type
Description
$this
getImpactScore
Generated from protobuf fieldfloat impact_score = 3;
Returns
Type
Description
float
setImpactScore
Generated from protobuf fieldfloat impact_score = 3;
Parameter
Name
Description
var
float
Returns
Type
Description
$this
getAttackVector
Base Metrics
Represents the intrinsic characteristics of a vulnerability that are
constant over time and across user environments.
Returns
Type
Description
int
setAttackVector
Base Metrics
Represents the intrinsic characteristics of a vulnerability that are
constant over time and across user environments.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getAttackComplexity
Generated from protobuf field.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;
Returns
Type
Description
int
setAttackComplexity
Generated from protobuf field.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getAuthentication
Generated from protobuf field.grafeas.v1.CVSS.Authentication authentication = 6;
Returns
Type
Description
int
setAuthentication
Generated from protobuf field.grafeas.v1.CVSS.Authentication authentication = 6;
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPrivilegesRequired
Generated from protobuf field.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;
Returns
Type
Description
int
setPrivilegesRequired
Generated from protobuf field.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getUserInteraction
Generated from protobuf field.grafeas.v1.CVSS.UserInteraction user_interaction = 8;
Returns
Type
Description
int
setUserInteraction
Generated from protobuf field.grafeas.v1.CVSS.UserInteraction user_interaction = 8;
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getScope
Generated from protobuf field.grafeas.v1.CVSS.Scope scope = 9;
Returns
Type
Description
int
setScope
Generated from protobuf field.grafeas.v1.CVSS.Scope scope = 9;
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getConfidentialityImpact
Generated from protobuf field.grafeas.v1.CVSS.Impact confidentiality_impact = 10;
Returns
Type
Description
int
setConfidentialityImpact
Generated from protobuf field.grafeas.v1.CVSS.Impact confidentiality_impact = 10;
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getIntegrityImpact
Generated from protobuf field.grafeas.v1.CVSS.Impact integrity_impact = 11;
Returns
Type
Description
int
setIntegrityImpact
Generated from protobuf field.grafeas.v1.CVSS.Impact integrity_impact = 11;
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getAvailabilityImpact
Generated from protobuf field.grafeas.v1.CVSS.Impact availability_impact = 12;
Returns
Type
Description
int
setAvailabilityImpact
Generated from protobuf field.grafeas.v1.CVSS.Impact availability_impact = 12;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Grafeas V1 Client - Class CVSS (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/grafeas/latest/V1.CVSS)\n- [1.2.1](/php/docs/reference/grafeas/1.2.1/V1.CVSS)\n- [1.1.3](/php/docs/reference/grafeas/1.1.3/V1.CVSS)\n- [1.0.0](/php/docs/reference/grafeas/1.0.0/V1.CVSS)\n- [0.10.3](/php/docs/reference/grafeas/0.10.3/V1.CVSS)\n- [0.9.0](/php/docs/reference/grafeas/0.9.0/V1.CVSS)\n- [0.8.3](/php/docs/reference/grafeas/0.8.3/V1.CVSS)\n- [0.7.1](/php/docs/reference/grafeas/0.7.1/V1.CVSS)\n- [0.6.0](/php/docs/reference/grafeas/0.6.0/V1.CVSS)\n- [0.5.0](/php/docs/reference/grafeas/0.5.0/V1.CVSS)\n- [0.4.4](/php/docs/reference/grafeas/0.4.4/V1.CVSS) \nReference documentation and code samples for the Grafeas V1 Client class CVSS.\n\nCommon Vulnerability Scoring System.\n\nFor details, see \u003chttps://www.first.org/cvss/specification-document\u003e\nThis is a message we will try to use for storing various versions of CVSS\nrather than making a separate proto for storing a specific version.\n\nGenerated from protobuf message `grafeas.v1.CVSS`\n\nNamespace\n---------\n\nGrafeas \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getBaseScore\n\nThe base score is a function of the base metric scores.\n\n### setBaseScore\n\nThe base score is a function of the base metric scores.\n\n### getExploitabilityScore\n\nGenerated from protobuf field `float exploitability_score = 2;`\n\n### setExploitabilityScore\n\nGenerated from protobuf field `float exploitability_score = 2;`\n\n### getImpactScore\n\nGenerated from protobuf field `float impact_score = 3;`\n\n### setImpactScore\n\nGenerated from protobuf field `float impact_score = 3;`\n\n### getAttackVector\n\nBase Metrics\nRepresents the intrinsic characteristics of a vulnerability that are\nconstant over time and across user environments.\n\n### setAttackVector\n\nBase Metrics\nRepresents the intrinsic characteristics of a vulnerability that are\nconstant over time and across user environments.\n\n### getAttackComplexity\n\nGenerated from protobuf field `.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;`\n\n### setAttackComplexity\n\nGenerated from protobuf field `.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;`\n\n### getAuthentication\n\nGenerated from protobuf field `.grafeas.v1.CVSS.Authentication authentication = 6;`\n\n### setAuthentication\n\nGenerated from protobuf field `.grafeas.v1.CVSS.Authentication authentication = 6;`\n\n### getPrivilegesRequired\n\nGenerated from protobuf field `.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;`\n\n### setPrivilegesRequired\n\nGenerated from protobuf field `.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;`\n\n### getUserInteraction\n\nGenerated from protobuf field `.grafeas.v1.CVSS.UserInteraction user_interaction = 8;`\n\n### setUserInteraction\n\nGenerated from protobuf field `.grafeas.v1.CVSS.UserInteraction user_interaction = 8;`\n\n### getScope\n\nGenerated from protobuf field `.grafeas.v1.CVSS.Scope scope = 9;`\n\n### setScope\n\nGenerated from protobuf field `.grafeas.v1.CVSS.Scope scope = 9;`\n\n### getConfidentialityImpact\n\nGenerated from protobuf field `.grafeas.v1.CVSS.Impact confidentiality_impact = 10;`\n\n### setConfidentialityImpact\n\nGenerated from protobuf field `.grafeas.v1.CVSS.Impact confidentiality_impact = 10;`\n\n### getIntegrityImpact\n\nGenerated from protobuf field `.grafeas.v1.CVSS.Impact integrity_impact = 11;`\n\n### setIntegrityImpact\n\nGenerated from protobuf field `.grafeas.v1.CVSS.Impact integrity_impact = 11;`\n\n### getAvailabilityImpact\n\nGenerated from protobuf field `.grafeas.v1.CVSS.Impact availability_impact = 12;`\n\n### setAvailabilityImpact\n\nGenerated from protobuf field `.grafeas.v1.CVSS.Impact availability_impact = 12;`"]]