What the base vector encodes#
Advisory databases publish a vector string, and the score is computed from it. The GitHub advisory for CVE-2022-42889 (GHSA-599f-7c49-w659, Apache Commons Text) carries this severity field:
"severity": [{ "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" }]
The OSV schema defines CVSS_V3 as "A CVSS vector string representing the unique characteristics and severity of the vulnerability". Each pair is a base metric: attack vector Network, attack complexity Low, no privileges, no user interaction, unchanged scope, and high impact on confidentiality, integrity and availability. The affected range is introduced 1.5, fixed 1.10.0.
The cvss Python package (version 3.6, from PyPI) turns that vector into numbers. Its README at v3.6 shows CVSS3(vector).scores() returning the base, temporal and environmental scores in that order:
$ python score.py 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
scores (base, temporal, environmental): (9.8, 9.8, 9.8)
severities: ('Critical', 'Critical', 'Critical')
With no temporal or environmental metrics set, all three scores are equal. The advisory's prose is narrower than its vector. Its details field says applications "may be vulnerable to remote code execution or unintentional contact with remote servers if untrusted configuration values are used." The score assumes an attacker can supply the string that gets interpolated. Whether they can is a fact about your code and network.
The Go security team, which publishes no severity labels for this reason, puts it plainly on its vulnerability management page: "The impact of a vulnerability is rarely universal, which means that severity indicators can often be deceptive."
Environmental metrics restate the base vector for one deployment#
CVSS 3.1 has a third metric group for the consumer. The CVSS 3.1 JSON schema, which carries FIRST's copyright, lists the fields next to the base ones: confidentialityRequirement, integrityRequirement, availabilityRequirement, modifiedAttackVector, modifiedPrivilegesRequired and the other modified base metrics, then environmentalScore. In vector notation they are CR, IR, AR and MAV, MPR and so on, as the package's metric table names them. The modified metrics override base values for your setting; the requirement metrics weight the impact by how much the affected system's confidentiality, integrity and availability matter to you.
The constructed service used here is a report renderer built against commons-text 1.9. It calls StringSubstitutor.createInterpolator() in two places:
static final StringSubstitutor SUB = StringSubstitutor.createInterpolator();
// Path 1: templates shipped in the repository.
static String renderTemplate(String name) throws Exception {
return SUB.replace(Files.readString(Path.of("templates", name)));
}
// Path 2: the report title from the request.
static String renderTitle(String title) {
return SUB.replace(title);
}
Suppose the only call were path 1. The interpolated text would come from files baked into the deployment, and an attacker would first need write access to the repository or the host. That evidence supports MAV:L and MPR:H. If the renderer holds internal reports but nothing regulated, CR:M/IR:M/AR:L is a defensible weighting. The package computes the change:
$ python score.py 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/MAV:L/MPR:H/CR:M/IR:M/AR:L'
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/CR:M/IR:M/AR:L/MAV:L/MPR:H
scores (base, temporal, environmental): (9.8, 9.8, 6.4)
severities: ('Critical', 'Critical', 'Medium')
The base score is still 9.8, because base metrics describe the vulnerability. The environmental score is 6.4, Medium, for this deployment only. Requirement metrics can also hold the score up: the same base vector with CR:H/IR:H/AR:M, for a service that stores customer data, stays at 9.8.
An adjustment you did not check moves the score the wrong way#
The tempting shortcut is to set MAV:L/MPR:H because "the service is internal" or "it only renders our templates," without looking at every call site. The 6.4 above is only as good as that claim, and path 2 breaks it.
The server takes title from the query string and passes it to the same interpolator. It also binds every interface, so it answered on the host's network address, not only on loopback. A request with a url lookup in the title made the server fetch a URL of the caller's choice. A local listener on port 18431 stood in for an attacker's server:
$ curl "http://192.0.2.2:18432/report?title=%24%7Burl%3AUTF-8%3Ahttp%3A%2F%2F127.0.0.1%3A18431%2Fcanary%7D"
canary-body
Generated on 2026-11-25 for ${env:USER}
$ tail -1 canary.log
127.0.0.1 - - [25/Nov/2026 08:43:16] "GET /canary HTTP/1.1" 200 -
An unauthenticated network request controlled the interpolated string, so the base values AV:N and PR:N hold for this deployment and the modified metrics have no basis. The same request against the same code built with commons-text 1.10.0 returned the title unexpanded, ${url:UTF-8:http://127.0.0.1:18431/canary}, and the listener logged nothing. That matches the advisory's remedy: "upgrade to Apache Commons Text 1.10.0, which disables the problematic interpolators by default."
The run also shows which evidence an environmental vector needs. MAV needs the listener's bind address and the network path from an attacker to it. MPR needs the authentication in front of the call site. Both need every call site of the vulnerable function, not the first one found. When a rescored finding is closed, attach the vector string and those facts to the record, so the next reader can recompute the score instead of trusting it.
Decide from the vector and the evidence behind it#
| What the finding says | Evidence to collect | Decision |
|---|---|---|
| Base 9.8, network attack vector, vulnerable function reachable from a request | The call site and the request field that reaches it | Fix now; the base score applies to you |
| Base 9.8, every call site reads only deployment-controlled input | All call sites, the input source for each, who can write it | Record an environmental vector such as MAV:L/MPR:H; schedule the upgrade |
| Environmental score proposed with no call-site or network evidence | The bind address, the auth in front of it, a search for every call | Keep the base score until the evidence exists |
| High base score, system holds regulated or customer data | The data the process can read | Set CR/IR high; the environmental score stays near the base |
| Vulnerable package present, vulnerable function never called | A reachability check or a call-graph scan | Treat as a routine upgrade; note that the score never applied |
When the same CVE is in CISA's catalog of exploited vulnerabilities, the guide to KEV listings in a scan covers what that adds to the score. For how a severity label should drive response time in review, see review severity calibration.