CVE-2022-40958 Other in Firefox

Medium 6.5 Published Updated

Attackers can overwrite secure cookies via special characters in shared subdomains, enabling session fixation and account takeover in Firefox and Thunderbird.

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-40958?

CVE-2022-40958 is a medium-severity vulnerability in Mozilla Firefox, published on 22 Dec 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

By injecting a cookie with certain special characters, an attacker on a shared subdomain which is not a secure context could set and thus overwrite cookies from a secure context, leading to session fixation and other attacks. This vulnerability affects Firefox ESR < 102.3, Thunderbird < 102.3, and Firefox < 105.

Weakness: CWE-74

Which versions are affected by CVE-2022-40958?

It affects 3 products.

Products include Mozilla Firefox, Mozilla Firefox Esr, Mozilla Thunderbird.

How do I fix CVE-2022-40958?

Upgrade to a fixed version.

Is CVE-2022-40958 being exploited?

There is no known exploitation of CVE-2022-40958 in the wild and no public exploit code.

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-40958, GHSA-7mxj-29p2-6g84, UBUNTU-CVE-2022-40958.

Is CVE-2022-40958 in your software?

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

Check your SBOMs for free