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

Critical 9.3 Published Updated

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.

PackageAffectedFixed in
github.com/emicklei/go-restful GoAll versions2.16.0
github.com/emicklei/go-restful GoAll versions2.16.0
github.com/emicklei/go-restful GoAll versions2.16.0+incompatible
github.com/emicklei/go-restful/v2 GoAll versions to 2.7.1None
github.com/emicklei/go-restful/v2 GoAll versions to 2.7.1None
github.com/emicklei/go-restful/v2 GoFrom 2.7.1None
3 more packages
github.com/emicklei/go-restful/v3 GoFrom 3.0.03.8.0
github.com/emicklei/go-restful/v3 GoFrom 3.0.03.8.0
github.com/emicklei/go-restful/v3 GoFrom 3.0.03.8.0
Linux distribution packages (31)
openshift-gitops-kam Red Hat:openshift_gitops:1.8::el8All versions0:1.8.3-6.el8
openshift-gitops-kam-redistributable Red Hat:openshift_gitops:1.8::el8All versions0:1.8.3-6.el8
openshift-gitops-kam Red Hat:openshift_gitops:1.9::el9All versions0:1.9.0-102.el8
openshift-gitops-kam-redistributable Red Hat:openshift_gitops:1.9::el9All versions0:1.9.0-102.el8
containerd SUSE:Enterprise Storage 7.1All versions1.7.8-150000.103.1
runc SUSE:Enterprise Storage 7.1All versions1.1.10-150000.55.1
catatonit SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions0.2.0-150000.3.6.1
containerd SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions1.7.8-150000.103.1
runc SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions1.1.10-150000.55.1
catatonit SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions0.2.0-150000.3.6.1
containerd SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.7.8-150000.103.1
runc SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.1.10-150000.55.1
containerd SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions1.7.8-150000.103.1
runc SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions1.1.10-150000.55.1
containerd SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.7.8-150000.103.1
runc SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.1.10-150000.55.1
containerd SUSE:Linux Enterprise Micro 5.1All versions1.7.8-150000.103.1
runc SUSE:Linux Enterprise Micro 5.1All versions1.1.10-150000.55.1
containerd SUSE:Linux Enterprise Micro 5.2All versions1.7.8-150000.103.1
runc SUSE:Linux Enterprise Micro 5.2All versions1.1.10-150000.55.1
containerd SUSE:Linux Enterprise Micro 5.3All versions1.7.8-150000.103.1
runc SUSE:Linux Enterprise Micro 5.3All versions1.1.10-150000.55.1
containerd SUSE:Linux Enterprise Micro 5.4All versions1.7.8-150000.103.1
runc SUSE:Linux Enterprise Micro 5.4All versions1.1.10-150000.55.1
containerd SUSE:Linux Enterprise Micro 5.5All versions1.7.8-150000.103.1
runc SUSE:Linux Enterprise Micro 5.5All versions1.1.10-150000.55.1
containerd SUSE:Linux Enterprise Module for Containers 12All versions1.7.8-16.91.7
containerized-data-importer SUSE:Linux Enterprise Module for Containers 15 SP3All versions1.43.2-150300.8.9.3
containerd SUSE:Linux Enterprise Module for Containers 15 SP4All versions1.7.8-150000.103.1
containerized-data-importer SUSE:Linux Enterprise Module for Containers 15 SP4All versions1.51.0-150400.4.3.1
runc SUSE:Linux Enterprise Module for Containers 15 SP4All versions1.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.

All Fedoraproject Fedora vulnerabilities

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.

Is CVE-2022-1996 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free