# Authorization Bypass Through User-Controlled Key in go-restful

Advisory record · `GHSA-r48q-9g5r-8q2h`

- **Identifiers:** `GHSA-r48q-9g5r-8q2h` · `CVE-2022-1996` · `GO-2022-0619`
- **State:** Confirmed
- **Severity:** CVSS 9.3 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-639](https://cwe.mitre.org/data/definitions/639.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 9 Jun 2022
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 9 Jun 2022, 00:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.3: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `github.com/emicklei/go-restful/v3` (Go): affected `>=3.0.0, <3.8.0`; fixed in `3.8.0`
- `github.com/emicklei/go-restful` (Go): affected `<2.16.0`; fixed in `2.16.0`
- `github.com/emicklei/go-restful/v2` (Go): affected `<=2.7.1`; no fixed version yet

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.3 Critical, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`, from CNA (@huntrdev)

- **CISA KEV:** Not listed.
- **EPSS:** 0.031, the 88th percentile, on 22 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:43 UTC: First seen by agentprime
- 31 Oct 2026, 14:43 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-r48q-9g5r-8q2h)

## Sources

- [GitHub Advisory Database: GHSA-r48q-9g5r-8q2h](https://github.com/advisories/GHSA-r48q-9g5r-8q2h)
- [OSV: GHSA-r48q-9g5r-8q2h](https://osv.dev/vulnerability/GHSA-r48q-9g5r-8q2h)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1996>
- <https://github.com/emicklei/go-restful/issues/489>
- <https://github.com/emicklei/go-restful/commit/926662532deb450272956c7bc573978464aae74e>
- <https://github.com/emicklei/go-restful/commit/f292efff46ae17e9d104f865a60a39a2ae9402f1>
- <https://github.com/emicklei/go-restful/commit/fd3c327a379ce08c68ef18765bdc925f5d9bad10>
- <https://security.netapp.com/advisory/ntap-20220923-0005>
- <https://pkg.go.dev/vuln/GO-2022-0619>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZY2SLWOQR4ZURQ7UBRZ7JIX6H6F5JHJR>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGQKWD6SE75PFBPFVSZYAKAVXKBZXKWS>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z55VUVGO7E5PJFXIOVAY373NZRHBNCI5>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W56PP46JVZEKCANBKXFKRVSBBRRMCY6V>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SO5QC2JFW2PXBWAE27OYYYL5SPFUBHTY>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-r48q-9g5r-8q2h>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-r48q-9g5r-8q2h/>. Everything for agents: <https://agentprime.io/llms.txt>.
