Out-of-bounds Read in go-cvss
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-125 and the CVSS impact.
Summary
go-cvss is a Go module to manipulate Common Vulnerability Scoring System (CVSS). In affected versions when a full CVSS v2.0 vector string is parsed using `ParseVector`, an Out-of-Bounds Read is possible due to a lack of tests. The Go module will then panic. The problem is patched in tag `v0.4.0`, by the commit `d9d478ff0c13b8b09ace030db9262f3c2fe031f4`. Users are advised to upgrade. Users unable to upgrade may avoid this issue by parsing only CVSS v2.0 vector strings that do not have all attributes defined (e.g. `AV:N/AC:L/Au:N/C:P/I:P/A:C/E:U/RL:OF/RC:C/CDP:MH/TD:H/CR:M/IR:M/AR:M`). As stated in [SECURITY.md](https://github.com/pandatix/go-cvss/blob/master/SECURITY.md), the CPE v2.3 to refer to this Go module is `cpe:2.3:a:pandatix:go_cvss:*:*:*:*:*:*:*:*`. The entry has already been requested to the NVD CPE dictionary.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pandatix | go-cvss | 0.2.0 to before 0.4.0 | 0.4.0 | Patch available | CNA |
| — | github.com/pandatix/go-cvss (Go) | 0.2.0 to before 0.4.0 | 0.4.0 | Patch available | GHSA-xhmf-mmv2-4hhx |
- go-cvss Vendorpandatix Affected 0.2.0 to before 0.4.0 Fixed in 0.4.0 Patch available CNA
- github.com/pandatix/go-cvss (Go) Vendor— Affected 0.2.0 to before 0.4.0 Fixed in 0.4.0 Patch available GHSA-xhmf-mmv2-4hhx
Remediation
- Fix · CNA go-cvss (pandatix) Fixed in 0.4.0
- Fix · GHSA-xhmf-mmv2-4hhx github.com/pandatix/go-cvss (Go) Fixed in 0.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39213
- 2026-10-03 Alias added: GHSA-xhmf-mmv2-4hhx
References
Advisory 2
Sources
- CVE-2022-39213 · CVE Program
- CVE-2022-39213 · NVD
- FIRST EPSS
- GHSA-xhmf-mmv2-4hhx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences