CVEfocus › CVE database › CVE-2022-40958

CVE-2022-40958

CVSS 6.5 MediumEPSS 1.2% (higher than 68% of CVEs)Published 2022-12-22Updated 2025-04-15Assigner: mozilla

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.

CWE-74

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

29Fixed
4Fix pending
2Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04firefoxNot affected
vulnerable_code_not_present
Ubuntu 22.04thunderbirdFixed1:102.4.2+build2-0ubuntu0.22.04.1UBUNTU-CVE-2022-40958
Ubuntu 20.04firefoxFixed105.0+build2-0ubuntu0.20.04.1UBUNTU-CVE-2022-40958
Ubuntu 20.04thunderbirdFixed1:102.4.2+build2-0ubuntu0.20.04.1UBUNTU-CVE-2022-40958
Ubuntu 18.04firefoxFixed105.0+build2-0ubuntu0.18.04.1UBUNTU-CVE-2022-40958
Ubuntu 18.04thunderbirdFixed1:102.4.2+build2-0ubuntu0.18.04.1UBUNTU-CVE-2022-40958
Ubuntu 16.04firefoxFix pending
Ubuntu 16.04thunderbirdFix pending
Ubuntu 14.04firefoxFix pending
Ubuntu 14.04thunderbirdFix pending
Debian 14firefox-esrFixed102.3.0esr-1DEBIAN-CVE-2022-40958
Debian 14thunderbirdFixed1:102.3.0-1DEBIAN-CVE-2022-40958
Debian 13firefox-esrFixed102.3.0esr-1DEBIAN-CVE-2022-40958
Debian 13thunderbirdFixed1:102.3.0-1DEBIAN-CVE-2022-40958
Debian 12firefox-esrFixed102.3.0esr-1DEBIAN-CVE-2022-40958
Debian 12thunderbirdFixed1:102.3.0-1DEBIAN-CVE-2022-40958
Red Hat Enterprise Linux 9firefoxFixed0:102.3.0-6.el9_0RHSA-2022:6700
Red Hat Enterprise Linux 9thunderbirdFixed0:102.3.0-3.el9_0RHSA-2022:6717
Red Hat Enterprise Linux 8firefoxFixed0:102.3.0-6.el8_6RHSA-2022:6702
Red Hat Enterprise Linux 8thunderbirdFixed0:102.3.0-3.el8_6RHSA-2022:6708
Red Hat Enterprise Linux 7firefoxFixed0:102.3.0-6.el7_9RHSA-2022:6711
Red Hat Enterprise Linux 7thunderbirdFixed0:102.3.0-3.el7_9RHSA-2022:6710
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6thunderbirdWill not fix
Out of support scope
AlmaLinux 9firefoxFixed102.3.0-6.el9_0.almaALSA-2022:6700
AlmaLinux 9thunderbirdFixed102.3.0-3.el9_0.almaALSA-2022:6717
AlmaLinux 8firefoxFixed102.3.0-6.el8_6.almaALSA-2022:6702
AlmaLinux 8thunderbirdFixed102.3.0-3.el8_6.almaALSA-2022:6708
Rocky Linux 8firefoxFixed0:102.3.0-6.el8_6RLSA-2022:6702
Rocky Linux 8thunderbirdFixed0:102.3.0-3.el8_6RLSA-2022:6708
Alpine Linux 3.23firefox-esrFixed102.3.0-r0ALPINE-CVE-2022-40958
Alpine Linux 3.22firefox-esrFixed102.3.0-r0ALPINE-CVE-2022-40958
Alpine Linux 3.21firefox-esrFixed102.3.0-r0ALPINE-CVE-2022-40958
Alpine Linux 3.20firefox-esrFixed102.3.0-r0ALPINE-CVE-2022-40958
Alpine Linux 3.19firefox-esrFixed102.3.0-r0ALPINE-CVE-2022-40958
Alpine Linux 3.18firefox-esrFixed102.3.0-r0ALPINE-CVE-2022-40958

What the vendor says

As published in the CVE record by mozilla, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.