CVE-2022-40958
Medium · 6.5CVSS
6.5
EPSS
1.2%
Published
Dec 22, 2022
CISA due date
—
Cloudanix analysis
A browser flaw lets attackers on related websites tamper with login cookies and potentially take over user sessions.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Injection of a cookie containing special characters from a shared non-secure subdomain allows overwriting of cookies set in a secure context, enabling session fixation and related cookie manipulation attacks.
Why it matters to the business
Attackers may hijack user sessions in browser-based applications, resulting in unauthorized access, account compromise, and potential data exposure for organizations relying on affected Mozilla products.
How an attack unfolds
An attacker positioned on a shared subdomain crafts and injects a malicious cookie using special characters to overwrite legitimate secure cookies, achieving session fixation without needing direct access to the target domain.
How to fix it
Upgrade Mozilla Firefox to version 105 or later, Firefox ESR to 102.3 or later, and Thunderbird to 102.3 or later. Apply updates across all affected installations as soon as possible.
How to confirm the fix worked
Verify installed browser and mail client versions against the fixed releases; confirm that cookie-setting behavior from non-secure subdomains no longer affects secure-context cookies through targeted testing.
Typical attack path
- Identify a shared subdomain that is not a secure context
- Craft a cookie payload containing special characters designed to overwrite target cookies
- Deliver the cookie injection to a victim browser visiting the subdomain
- Use the fixed session identifier to impersonate the victim in the secure context
How to detect it
Examine web server or proxy logs for anomalous cookie-setting requests originating from non-secure subdomains; review browser forensic artifacts for unexpected cookie values after visits to shared domains.
What your security team should do
- Immediately deploy the fixed versions to all endpoints
- Review and enforce secure cookie attributes (Secure, HttpOnly, SameSite) in web applications
- Monitor vulnerability disclosure feeds for any change in exploit maturity or KEV listing
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:8 | firefox | 0 | 102.3.0-6.el8_6.alma |
| AlmaLinux:8 | thunderbird | 0 | 102.3.0-3.el8_6.alma |
| AlmaLinux:9 | firefox | 0 | 102.3.0-6.el9_0.alma |
| AlmaLinux:9 | thunderbird | 0 | 102.3.0-3.el9_0.alma |
| Debian:10 | firefox-esr | 0 | 102.3.0esr-1~deb10u2 |
| Debian:10 | thunderbird | 0 | 1:102.3.0-1~deb10u1 |
| Debian:11 | firefox-esr | 0 | 102.3.0esr-1~deb11u1 |
| Debian:11 | thunderbird | 0 | 1:102.3.0-1~deb11u1 |
| Debian:12 | firefox-esr | 0 | 102.3.0esr-1 |
| Debian:12 | thunderbird | 0 | 1:102.3.0-1 |
| Debian:13 | firefox-esr | 0 | 102.3.0esr-1 |
| Debian:13 | thunderbird | 0 | 1:102.3.0-1 |
| Mageia:8 | firefox | 0 | 102.3.0-1.mga8 |
| Mageia:8 | firefox-l10n | 0 | 102.3.0-1.mga8 |
| Mageia:8 | nspr | 0 | 4.35-1.mga8 |
| Mageia:8 | nss | 0 | 3.83.0-1.mga8 |
| Mageia:8 | rootcerts | 0 | 20220907.00-1.mga8 |
| Mageia:8 | thunderbird | 0 | 102.3.0-1.mga8 |
| Mageia:8 | thunderbird-l10n | 0 | 102.3.0-1.mga8 |
| Red Hat:enterprise_linux:7::client | firefox | 0 | 0:102.3.0-6.el7_9 |
| Red Hat:enterprise_linux:7::client | firefox-debuginfo | 0 | 0:102.3.0-6.el7_9 |
| Red Hat:enterprise_linux:7::client | thunderbird | 0 | 0:102.3.0-3.el7_9 |
| Red Hat:enterprise_linux:7::client | thunderbird-debuginfo | 0 | 0:102.3.0-3.el7_9 |
| Red Hat:enterprise_linux:7::server | firefox | 0 | 0:102.3.0-6.el7_9 |
| Red Hat:enterprise_linux:7::server | firefox-debuginfo | 0 | 0:102.3.0-6.el7_9 |
| Red Hat:enterprise_linux:7::server | thunderbird | 0 | 0:102.3.0-3.el7_9 |
| Red Hat:enterprise_linux:7::server | thunderbird-debuginfo | 0 | 0:102.3.0-3.el7_9 |
| Red Hat:enterprise_linux:7::workstation | firefox | 0 | 0:102.3.0-6.el7_9 |
| Red Hat:enterprise_linux:7::workstation | firefox-debuginfo | 0 | 0:102.3.0-6.el7_9 |
| Red Hat:enterprise_linux:7::workstation | thunderbird | 0 | 0:102.3.0-3.el7_9 |
| Red Hat:enterprise_linux:7::workstation | thunderbird-debuginfo | 0 | 0:102.3.0-3.el7_9 |
| Red Hat:enterprise_linux:8::appstream | firefox | 0 | 0:102.3.0-6.el8_6 |
| Red Hat:enterprise_linux:8::appstream | firefox-debuginfo | 0 | 0:102.3.0-6.el8_6 |
| Red Hat:enterprise_linux:8::appstream | firefox-debugsource | 0 | 0:102.3.0-6.el8_6 |
| Red Hat:enterprise_linux:8::appstream | thunderbird | 0 | 0:102.3.0-3.el8_6 |
| Red Hat:enterprise_linux:8::appstream | thunderbird-debuginfo | 0 | 0:102.3.0-3.el8_6 |
| Red Hat:enterprise_linux:8::appstream | thunderbird-debugsource | 0 | 0:102.3.0-3.el8_6 |
| Red Hat:enterprise_linux:9::appstream | firefox | 0 | 0:102.3.0-6.el9_0 |
| Red Hat:enterprise_linux:9::appstream | firefox-debuginfo | 0 | 0:102.3.0-6.el9_0 |
| Red Hat:enterprise_linux:9::appstream | firefox-debugsource | 0 | 0:102.3.0-6.el9_0 |
| Red Hat:enterprise_linux:9::appstream | thunderbird | 0 | 0:102.3.0-3.el9_0 |
| Red Hat:enterprise_linux:9::appstream | thunderbird-debuginfo | 0 | 0:102.3.0-3.el9_0 |
| Red Hat:enterprise_linux:9::appstream | thunderbird-debugsource | 0 | 0:102.3.0-3.el9_0 |
| Red Hat:rhel_e4s:8.1::appstream | firefox | 0 | 0:102.3.0-6.el8_1 |
| Red Hat:rhel_e4s:8.1::appstream | firefox-debuginfo | 0 | 0:102.3.0-6.el8_1 |
| Red Hat:rhel_e4s:8.1::appstream | firefox-debugsource | 0 | 0:102.3.0-6.el8_1 |
| Red Hat:rhel_e4s:8.1::appstream | thunderbird | 0 | 0:102.3.0-3.el8_1 |
| Red Hat:rhel_e4s:8.1::appstream | thunderbird-debuginfo | 0 | 0:102.3.0-3.el8_1 |
| Red Hat:rhel_e4s:8.1::appstream | thunderbird-debugsource | 0 | 0:102.3.0-3.el8_1 |
| Red Hat:rhel_eus:8.2::appstream | firefox | 0 | 0:102.3.0-6.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | firefox-debuginfo | 0 | 0:102.3.0-6.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | firefox-debugsource | 0 | 0:102.3.0-6.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | thunderbird | 0 | 0:102.3.0-3.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | thunderbird-debuginfo | 0 | 0:102.3.0-3.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | thunderbird-debugsource | 0 | 0:102.3.0-3.el8_2 |
| Red Hat:rhel_eus:8.4::appstream | firefox | 0 | 0:102.3.0-6.el8_4 |
| Red Hat:rhel_eus:8.4::appstream | firefox-debuginfo | 0 | 0:102.3.0-6.el8_4 |
| Red Hat:rhel_eus:8.4::appstream | firefox-debugsource | 0 | 0:102.3.0-6.el8_4 |
| Red Hat:rhel_eus:8.4::appstream | thunderbird | 0 | 0:102.3.0-3.el8_4 |
| Red Hat:rhel_eus:8.4::appstream | thunderbird-debuginfo | 0 | 0:102.3.0-3.el8_4 |
| Red Hat:rhel_eus:8.4::appstream | thunderbird-debugsource | 0 | 0:102.3.0-3.el8_4 |
| Rocky Linux:8 | firefox | 0 | 0:102.3.0-6.el8_6 |
| Rocky Linux:8 | thunderbird | 0 | 0:102.3.0-3.el8_6 |
| SUSE:Enterprise Storage 6 | MozillaFirefox | 0 | 102.3.0-150000.150.59.2 |
| SUSE:Enterprise Storage 7 | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Enterprise Storage 7 | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | MozillaFirefox | 0 | 102.3.0-150000.150.59.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | MozillaFirefox | 0 | 102.3.0-150000.150.59.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:Linux Enterprise High Performance Computing 15-ESPOS | MozillaFirefox | 0 | 102.3.0-150000.150.59.2 |
| SUSE:Linux Enterprise High Performance Computing 15-LTSS | MozillaFirefox | 0 | 102.3.0-150000.150.59.2 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP4 | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP4 | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP3 | MozillaThunderbird | 0 | 102.4.0-150200.8.85.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP4 | MozillaThunderbird | 0 | 102.4.0-150200.8.85.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | MozillaFirefox | 0 | 102.3.0-112.133.1 |
| SUSE:Linux Enterprise Server 12 SP3-BCL | MozillaFirefox | 0 | 102.3.0-112.133.1 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | MozillaFirefox | 0 | 102.3.0-112.133.1 |
| SUSE:Linux Enterprise Server 12 SP5 | MozillaFirefox | 0 | 102.3.0-112.133.1 |
| SUSE:Linux Enterprise Server 15 SP1-BCL | MozillaFirefox | 0 | 102.3.0-150000.150.59.2 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | MozillaFirefox | 0 | 102.3.0-150000.150.59.2 |
| SUSE:Linux Enterprise Server 15 SP2-BCL | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Linux Enterprise Server 15 SP2-BCL | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:Linux Enterprise Server 15-LTSS | MozillaFirefox | 0 | 102.3.0-150000.150.59.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | MozillaFirefox | 0 | 102.3.0-112.133.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | MozillaFirefox | 0 | 102.3.0-112.133.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 | MozillaFirefox | 0 | 102.3.0-150000.150.59.2 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | MozillaFirefox | 0 | 102.3.0-150000.150.59.2 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | MozillaFirefox | 0 | 102.3.0-112.133.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP3 | MozillaThunderbird | 0 | 102.4.0-150200.8.85.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP4 | MozillaThunderbird | 0 | 102.4.0-150200.8.85.1 |
| SUSE:Manager Proxy 4.1 | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Manager Proxy 4.1 | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:Manager Retail Branch Server 4.1 | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Manager Retail Branch Server 4.1 | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:Manager Server 4.1 | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| SUSE:Manager Server 4.1 | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| SUSE:OpenStack Cloud 9 | MozillaFirefox | 0 | 102.3.0-112.133.1 |
| SUSE:OpenStack Cloud Crowbar 9 | MozillaFirefox | 0 | 102.3.0-112.133.1 |
| Ubuntu:18.04:LTS | firefox | 0 | 105.0+build2-0ubuntu0.18.04.1 |
| Ubuntu:18.04:LTS | thunderbird | 0 | 1:102.4.2+build2-0ubuntu0.18.04.1 |
| Ubuntu:20.04:LTS | firefox | 0 | 105.0+build2-0ubuntu0.20.04.1 |
| Ubuntu:20.04:LTS | thunderbird | 0 | 1:102.4.2+build2-0ubuntu0.20.04.1 |
| Ubuntu:22.04:LTS | thunderbird | 0 | 1:102.4.2+build2-0ubuntu0.22.04.1 |
| openSUSE:Leap 15.3 | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| openSUSE:Leap 15.3 | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| openSUSE:Leap 15.3 | MozillaThunderbird | 0 | 102.4.0-150200.8.85.1 |
| openSUSE:Leap 15.4 | MozillaFirefox | 0 | 102.3.0-150200.152.61.1 |
| openSUSE:Leap 15.4 | MozillaFirefox-branding-SLE | 0 | 102-150200.9.10.1 |
| openSUSE:Leap 15.4 | MozillaThunderbird | 0 | 102.4.0-150200.8.85.1 |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 105.0.3-1.1 |
| openSUSE:Tumbleweed | MozillaThunderbird | 0 | 102.3.0-1.1 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2025-14331 Same-origin policy bypass in the Request Handling component. Also affects firefox
- CVE-2025-14325 JIT miscompilation in the JavaScript Engine: JIT component. Also affects firefox
- CVE-2025-14330 JIT miscompilation in the JavaScript Engine: JIT component. Also affects firefox
- CVE-2025-14333 Memory safety bugs present in Firefox ESR 140.5, Thunderbird ESR 140.5, Firefox 145 and… Also affects firefox
- CVE-2025-14328 Privilege escalation in the Netmonitor component. Also affects firefox
- CVE-2025-14329 Privilege escalation in the Netmonitor component. Also affects firefox
- CVE-2025-14323 Privilege escalation in the DOM: Notifications component. Also affects firefox
- CVE-2025-14321 Use-after-free in the WebRTC: Signaling component. Also affects firefox