CVE-2022-1996 Authorization Bypass Through User-Controlled Key in emicklei/go-restful
An attacker can bypass authorization controls by manipulating user-controlled keys in the go-restful library, potentially accessing unauthorized resources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-1996?
CVE-2022-1996 is a critical authentication bypass vulnerability in Fedoraproject Fedora, published on 6 Jun 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Authorization Bypass Through User-Controlled Key in GitHub repository emicklei/go-restful prior to v3.8.0.
Weakness: CWE-639
Which versions are affected by CVE-2022-1996?
9 open source packages ship an affected version, including github.com/emicklei/go-restful, github.com/emicklei/go-restful/v2 and github.com/emicklei/go-restful/v3. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/emicklei/go-restful Go | All versions | 2.16.0 |
github.com/emicklei/go-restful Go | All versions | 2.16.0 |
github.com/emicklei/go-restful Go | All versions | 2.16.0+incompatible |
github.com/emicklei/go-restful/v2 Go | All versions to 2.7.1 | None |
github.com/emicklei/go-restful/v2 Go | All versions to 2.7.1 | None |
github.com/emicklei/go-restful/v2 Go | From 2.7.1 | None |
3 more packages
github.com/emicklei/go-restful/v3 Go | From 3.0.0 | 3.8.0 |
github.com/emicklei/go-restful/v3 Go | From 3.0.0 | 3.8.0 |
github.com/emicklei/go-restful/v3 Go | From 3.0.0 | 3.8.0 |
Linux distribution packages (31)
openshift-gitops-kam Red Hat:openshift_gitops:1.8::el8 | All versions | 0:1.8.3-6.el8 |
openshift-gitops-kam-redistributable Red Hat:openshift_gitops:1.8::el8 | All versions | 0:1.8.3-6.el8 |
openshift-gitops-kam Red Hat:openshift_gitops:1.9::el9 | All versions | 0:1.9.0-102.el8 |
openshift-gitops-kam-redistributable Red Hat:openshift_gitops:1.9::el9 | All versions | 0:1.9.0-102.el8 |
containerd SUSE:Enterprise Storage 7.1 | All versions | 1.7.8-150000.103.1 |
runc SUSE:Enterprise Storage 7.1 | All versions | 1.1.10-150000.55.1 |
catatonit SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 0.2.0-150000.3.6.1 |
containerd SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 1.7.8-150000.103.1 |
runc SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 1.1.10-150000.55.1 |
catatonit SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 0.2.0-150000.3.6.1 |
containerd SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.7.8-150000.103.1 |
runc SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.1.10-150000.55.1 |
containerd SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 1.7.8-150000.103.1 |
runc SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 1.1.10-150000.55.1 |
containerd SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.7.8-150000.103.1 |
runc SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.1.10-150000.55.1 |
containerd SUSE:Linux Enterprise Micro 5.1 | All versions | 1.7.8-150000.103.1 |
runc SUSE:Linux Enterprise Micro 5.1 | All versions | 1.1.10-150000.55.1 |
containerd SUSE:Linux Enterprise Micro 5.2 | All versions | 1.7.8-150000.103.1 |
runc SUSE:Linux Enterprise Micro 5.2 | All versions | 1.1.10-150000.55.1 |
containerd SUSE:Linux Enterprise Micro 5.3 | All versions | 1.7.8-150000.103.1 |
runc SUSE:Linux Enterprise Micro 5.3 | All versions | 1.1.10-150000.55.1 |
containerd SUSE:Linux Enterprise Micro 5.4 | All versions | 1.7.8-150000.103.1 |
runc SUSE:Linux Enterprise Micro 5.4 | All versions | 1.1.10-150000.55.1 |
containerd SUSE:Linux Enterprise Micro 5.5 | All versions | 1.7.8-150000.103.1 |
runc SUSE:Linux Enterprise Micro 5.5 | All versions | 1.1.10-150000.55.1 |
containerd SUSE:Linux Enterprise Module for Containers 12 | All versions | 1.7.8-16.91.7 |
containerized-data-importer SUSE:Linux Enterprise Module for Containers 15 SP3 | All versions | 1.43.2-150300.8.9.3 |
containerd SUSE:Linux Enterprise Module for Containers 15 SP4 | All versions | 1.7.8-150000.103.1 |
containerized-data-importer SUSE:Linux Enterprise Module for Containers 15 SP4 | All versions | 1.51.0-150400.4.3.1 |
runc SUSE:Linux Enterprise Module for Containers 15 SP4 | All versions | 1.1.10-150000.55.1 |
Products include Fedoraproject Fedora, Go-Restful Project Go-Restful.
How do I fix CVE-2022-1996?
Upgrade github.com/emicklei/go-restful to a fixed version for your release line: 2.16.0 or 2.16.0+incompatible.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2022-1996 being exploited?
There is no known exploitation of CVE-2022-1996 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as AZL-41344, CLEANSTART-2025-WF62094, CLEANSTART-2026-GY43798, CLEANSTART-2026-PI41655, DEBIAN-CVE-2022-1996, GHSA-r48q-9g5r-8q2h and 13 more.