# CVE-2022-40958

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-12-22 · Modified: 2025-04-15
- Aliases: UBUNTU-CVE-2022-40958, DEBIAN-CVE-2022-40958, ALPINE-CVE-2022-40958
- Record: https://cvemate.com/vulnerability/CVE-2022-40958 · JSON: https://cvemate.com/vulnerability/CVE-2022-40958/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- EPSS: 1.486%, percentile 74.922%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine firefox-esr (Alpine Linux): \< 102.3.0-r0
- debian firefox-esr (Debian): \< 102.3.0esr-1
- debian thunderbird (Debian): \< 1:102.3.0-1
- ubuntu firefox (Ubuntu): \< 105.0+build2-0ubuntu0.18.04.1 \| \< 105.0+build2-0ubuntu0.20.04.1
- ubuntu thunderbird (Ubuntu): \< 1:102.4.2+build2-0ubuntu0.18.04.1 \| \< 1:102.4.2+build2-0ubuntu0.20.04.1 \| \< 1:102.4.2+build2-0ubuntu0.22.04.1
- mozilla firefox: ≥ unspecified, \< 105 \| \< 105.0
- mozilla firefox esr: ≥ unspecified, \< 102.3 \| \< 102.3
- mozilla thunderbird: ≥ unspecified, \< 102.3 \| \< 102.3

## References

- <https://www.mozilla.org/security/advisories/mfsa2022-40/>
- <https://www.mozilla.org/security/advisories/mfsa2022-41/>
- <https://www.mozilla.org/security/advisories/mfsa2022-42/>
- <https://bugzilla.mozilla.org/show_bug.cgi?id=1779993>
- <https://ubuntu.com/security/CVE-2022-40958>
- <https://www.mozilla.org/en-US/security/advisories/mfsa2022-40/#CVE-2022-40958>
- <https://www.mozilla.org/en-US/security/advisories/mfsa2022-41/#CVE-2022-40958>
- <https://www.mozilla.org/en-US/security/advisories/mfsa2022-42/#CVE-2022-40958>
- <https://ubuntu.com/security/notices/USN-5649-1>
- <https://ubuntu.com/security/notices/USN-5724-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-40958>
- <https://security-tracker.debian.org/tracker/CVE-2022-40958>
- <https://security.alpinelinux.org/vuln/CVE-2022-40958>

---

Data as of 2026-12-05T06:33:09.827Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
