Skip to content
Fencer Intel
medium 6.5

CVE-2022-40958 json

By injecting a cookie with certain special characters, an attacker on a shared subdomain which is not a secure context could set and thus o…

published 3y ago modified 4mo ago also EUVD-2022-44204

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.2%
EPSS 1.2% chance of exploitation in 30 days, percentile 67%
public exploits
0
none known

Summary

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.

Patch / fix

  • Mozilla Firefox ESR 102.3
  • Mozilla Thunderbird 102.3
  • Mozilla Firefox 105
  • firefox-esr Debian 14, Debian 13, Debian 12 102.3.0esr-1
  • thunderbird Debian 14, Debian 13, Debian 12 1:102.3.0-1

debian advisories DEBIAN-CVE-2022-40958

  • firefox Ubuntu 18.04 LTS 105.0+build2-0ubuntu0.18.04.1
  • firefox Ubuntu 20.04 LTS 105.0+build2-0ubuntu0.20.04.1
  • thunderbird Ubuntu 18.04 LTS 1:102.4.2+build2-0ubuntu0.18.04.1
  • thunderbird Ubuntu 20.04 LTS 1:102.4.2+build2-0ubuntu0.20.04.1
  • thunderbird Ubuntu 22.04 LTS 1:102.4.2+build2-0ubuntu0.22.04.1

ubuntu advisories UBUNTU-CVE-2022-40958

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • thunderbird RHEL 7 102.3.0-3.el7_9
  • thunderbird RHEL 9 102.3.0-3.el9_0
  • thunderbird RHEL 8 102.3.0-3.el8_6
  • firefox RHEL 8 102.3.0-6.el8_6
  • firefox RHEL 9 102.3.0-6.el9_0
  • firefox RHEL 7 102.3.0-6.el7_9
  • thunderbird RHEL 8.2 EUS 102.3.0-3.el8_2
  • thunderbird RHEL 8.1 E4S 102.3.0-3.el8_1

red hat advisories RHSA-2022:6715RHSA-2022:6710RHSA-2022:6716RHSA-2022:6717RHSA-2022:6708RHSA-2022:6713

  • MozillaThunderbird SLE Workstation Extension 15 SP4, SLE Workstation Extension 15 SP3, SLE Module for Package Hub 15 SP4 +3 more 102.4.0-150200.8.85.1
  • MozillaFirefox SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +7 more 102.3.0-150000.150.59.2
  • MozillaFirefox SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +6 more 102.3.0-112.133.1
  • MozillaFirefox SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLES 15 SP2-BCL +10 more 102.3.0-150200.152.61.1
  • MozillaFirefox-branding-SLE SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLES 15 SP2-BCL +10 more 102-150200.9.10.1

suse advisories SUSE-SU-2022:3800-1SUSE-SU-2022:3441-1SUSE-SU-2022:3440-1SUSE-SU-2022:3396-1

  • firefox-esr openSUSE Tumbleweed 128.5.1-1.1
  • MozillaThunderbird openSUSE Tumbleweed 102.3.0-1.1
  • MozillaFirefox openSUSE Tumbleweed 105.0.3-1.1

opensuse advisories openSUSE-SU-2024:14572-1openSUSE-SU-2024:12358-1openSUSE-SU-2024:12398-1

  • firefox AlmaLinux 9 102.3.0-6.el9_0.alma
  • firefox AlmaLinux 8 102.3.0-6.el8_6.alma
  • thunderbird AlmaLinux 8 102.3.0-3.el8_6.alma
  • thunderbird AlmaLinux 9 102.3.0-3.el9_0.alma

almalinux advisories ALSA-2022:6700ALSA-2022:6702ALSA-2022:6708ALSA-2022:6717

  • thunderbird Rocky Linux 8 102.3.0-3.el8_6
  • firefox Rocky Linux 8 102.3.0-6.el8_6

rocky linux advisories RLSA-2022:6708RLSA-2022:6702

  • firefox-esr Alpine 3.23, Alpine 3.22, Alpine 3.21 +3 more 102.3.0-r0

alpine advisories ALPINE-CVE-2022-40958

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2022-40958 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-40958 updated cvss 6.1

Mozilla: Bypassing Secure Context restriction for cookies with __Host and __Secure prefix

  • Red Hat Enterprise Linux 6 firefox, thunderbird
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux AppStream (v. 8) firefox 102.3.0-6.el8_6, thunderbird 102.3.0-3.el8_6
    fixed: vendor fix RHSA-2022:6702
  • Red Hat Enterprise Linux AppStream (v. 9) firefox 102.3.0-6.el9_0, thunderbird 102.3.0-3.el9_0
    fixed: vendor fix RHSA-2022:6700
  • Red Hat Enterprise Linux AppStream E4S (v. 8.1) firefox 102.3.0-6.el8_1, thunderbird 102.3.0-3.el8_1
    fixed: vendor fix RHSA-2022:6703
  • Red Hat Enterprise Linux AppStream EUS (v. 8.2) firefox 102.3.0-6.el8_2, thunderbird 102.3.0-3.el8_2
    fixed: vendor fix RHSA-2022:6707
  • Red Hat Enterprise Linux AppStream EUS (v.8.4) firefox 102.3.0-6.el8_4, thunderbird 102.3.0-3.el8_4
    fixed: vendor fix RHSA-2022:6701
  • Red Hat Enterprise Linux Client (v. 7) firefox 102.3.0-6.el7_9, thunderbird 102.3.0-3.el7_9 Red Hat Enterprise Linux Client Optional (v. 7) firefox 102.3.0-6.el7_9 Red Hat Enterprise Linux Server (v. 7) firefox 102.3.0-6.el7_9 Red Hat Enterprise Linux Server Optional (v. 7) firefox 102.3.0-6.el7_9, thunderbird 102.3.0-3.el7_9 Red Hat Enterprise Linux Workstation (v. 7) firefox 102.3.0-6.el7_9, thunderbird 102.3.0-3.el7_9 Red Hat Enterprise Linux Workstation Optional (v. 7) firefox 102.3.0-6.el7_9
    fixed: vendor fix RHSA-2022:6711

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
last yr.

Exploit prediction

1.18% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CISA ADP 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Affected products

  • Mozilla Firefox ESR
  • Mozilla Thunderbird
  • Mozilla Firefox

Classification

Weakness
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.