CVE-2022-22755
High · 8.8CVSS
8.8
EPSS
0.6%
Published
Dec 22, 2022
CISA due date
—
Cloudanix analysis
A flaw in the browser let a malicious website keep running code even after the user closed the tab, potentially exposing private information.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Use-after-free in XSL transform handling allows JavaScript execution to persist within the same-origin policy after tab closure.
Why it matters to the business
Users visiting malicious sites could have sensitive data exposed or sessions hijacked with low attacker effort; widespread browser deployment means broad exposure until patched.
How an attack unfolds
An attacker hosts a malicious XSL document on a web server; when a Firefox user loads the page, the XSLT processing triggers the use-after-free, permitting continued JavaScript execution even after the tab closes.
How to fix it
Upgrade all instances of Firefox to version 97 or later.
How to confirm the fix worked
Verify installed Firefox version is 97 or newer; confirm absence of the described XSL transform behavior via regression testing or update logs.
Typical attack path
- Host malicious XSL document on attacker-controlled web server
- Lure victim to load the page in vulnerable Firefox
- Trigger XSL transform to activate use-after-free condition
- Execute arbitrary JavaScript within same-origin bounds after tab closure
How to detect it
Review browser process logs and crash reports for unexpected JavaScript activity after tab termination; correlate with network requests to suspicious XSL-serving domains.
What your security team should do
- Prioritize immediate update of all Firefox deployments to version 97 or newer
- Block known malicious domains serving XSL content at network perimeter
- Enable automatic browser updates organization-wide
The record
By using XSL Transforms, a malicious webserver could have served a user an XSL document that would continue to execute JavaScript (within the bounds of the same-origin policy) even after the tab was closed. This vulnerability affects Firefox < 97.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | firefox | 0 | 97.0+build2-0ubuntu0.18.04.1 |
| Ubuntu:20.04:LTS | firefox | 0 | 97.0+build2-0ubuntu0.20.04.1 |
| Ubuntu:22.04:LTS | firefox | 0 | 97.0+build2-0ubuntu1 |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 97.0-1.1 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2023-25736 An invalid downcast from `nsHTMLDocument` to `nsIContent` could have lead to undefined… Also affects firefox
- CVE-2023-25733 The return value from `gfx::SourceSurfaceSkia::Map()` wasn't being verified which could… Also affects firefox
- CVE-2023-32210 Documents were incorrectly assuming an ordering of principal objects when ensuring we… Also affects firefox
- CVE-2023-32216 Memory safety bugs present in Firefox 112. Also affects firefox
- CVE-2023-32209 A maliciously crafted favicon could have led to an out of memory crash. Also affects firefox
- CVE-2023-32208 Service workers could reveal script base URL due to dynamic `import()`. Also affects firefox
- CVE-2023-29551 Memory safety bugs present in Firefox 111. Also affects firefox
- CVE-2023-32207 A missing delay in popup notifications could have made it possible for an attacker to… Also affects firefox