CVE-2016-9122
Go JOSE Signature Validation Bypass
Also known as GHSA-77gc-fj98-665h, GO-2022-0945
Published 9 y ago · modified 4 mo ago · JSON
Summary
go-jose before 1.0.4 suffers from multiple signatures exploitation. The go-jose library supports messages with multiple signatures. However, when validating a signed message the API did not indicate which signature was valid, which could potentially lead to confusion. For example, users of the library might mistakenly read protected header values from an attached signature that was different from the one originally validated.
Exploit prediction (EPSS)
1.97% probability of exploitation in the next 30 days, higher than 80% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | gopkg.in/square/go-jose.v1 | <1.1.0 | 1.1.0 |
Affected products
- n/a Go JOSE All versions before 1.0.4
Classification
- Weakness
- CWE-284 Improper Access Control
References
- hackerone.com /reports/169629 · x_refsource_MISC, x_transferred
- github.com /square/go-jose/commit/2c5656adca9909843c4ff50acf1d2cf8f32da7e6 · x_refsource_MISC, x_transferred
- openwall.com /lists/oss-security/2016/11/03/1 · x_refsource_MISC, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2016-9122 · advisory
- github.com /square/go-jose/pull/111 · web
- github.com /square/go-jose/commit/789a4c4bd4c118f7564954f441b29c153ccd6a96 · web
- github.com /square/go-jose/commit/c7581939a3656bb65e89d64da0a52364a33d2507 · web
- github.com /square/go-jose · package
- openwall.com /lists/oss-security/2016/11/03/1 · web
Sources
- CVE List: CVE-2016-9122
- GitHub Advisory: GHSA-77gc-fj98-665h
- NVD: CVE-2016-9122
- OSV: GO-2022-0945
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.