Severity
6.5MEDIUMNVD
OSV5.5
EPSS
0.4%
top 41.11%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 22
Latest updateMay 6

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NExploitability: 2.8 | Impact: 3.6

Affected Packages8 packages

CVEListV5mozilla/firefoxunspecified105
NVDmozilla/firefox< 105.0
CVEListV5mozilla/firefox_esrunspecified102.3
NVDmozilla/firefox_esr< 102.3
CVEListV5mozilla/thunderbirdunspecified102.3

🔴Vulnerability Details

4
GHSA
GHSA-7mxj-29p2-6g84: 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 co2022-12-22
OSV
CVE-2022-40958: 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 co2022-12-22
CVEList
CVE-2022-40958: 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 co2022-12-22
OSV
thunderbird vulnerabilities2022-11-11

📋Vendor Advisories

7
Ubuntu
Thunderbird vulnerabilities2022-11-11
Ubuntu
Firefox vulnerabilities2022-09-30
Red Hat
Mozilla: Bypassing Secure Context restriction for cookies with __Host and __Secure prefix2022-09-20
Debian
CVE-2022-40958: firefox - By injecting a cookie with certain special characters, an attacker on a shared s...2022
Mozilla
Mozilla Foundation Security Advisory 2022-42: CVE-2022-40958

💬Community

1
Bugzilla
Nameless cookies can be used to shadow Secure cookies from an insecure connection2025-05-06
CVE-2022-40958 — Injection in Mozilla Firefox | cvebase