CVE-2022-31745
Medium · 4.3CVSS
4.3
EPSS
0.4%
Published
Dec 22, 2022
CISA due date
—
Cloudanix analysis
A browser memory handling mistake could let a specially made website slightly change information if someone visits it, but the chance is low and requires the person to interact with the page.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The garbage collector can become confused about valid objects when array shift operations are avoided, resulting in memory corruption within the browser process.
Why it matters to the business
Limited risk of data manipulation or application instability for users visiting crafted web content, with low overall operational disruption due to the requirement for user interaction and restricted impact.
How an attack unfolds
An attacker hosts a webpage containing JavaScript that performs non-standard array operations to trigger garbage collector confusion; when a user visits the page the browser's memory state becomes inconsistent, allowing the attacker to achieve limited integrity effects.
How to fix it
Upgrade Mozilla Firefox to version 101 or later on all endpoints; enable automatic updates where possible and verify deployed versions centrally.
How to confirm the fix worked
Confirm all Firefox installations report version 101 or higher; retest affected functionality with known triggering JavaScript patterns after upgrade.
Typical attack path
- Host a malicious webpage with crafted JavaScript array operations
- Lure a user to visit the page via phishing or compromised site
- Trigger garbage collector activity through page content
- Exploit resulting object confusion to perform limited memory writes
How to detect it
Monitor browser process crash logs and memory error reports for patterns matching non-standard array handling; correlate with web proxy logs showing visits to suspicious domains.
What your security team should do
- Prioritize browser updates across the fleet within standard patch windows
- Block or warn on untrusted external links until patches are applied
- Review endpoint update compliance dashboards for Firefox
The record
If array shift operations are not used, the Garbage Collector may have become confused about valid objects. This vulnerability affects Firefox < 101.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | firefox | 0 | 101.0.1+build1-0ubuntu0.18.04.1 |
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | firefox | 0 | 101.0.1+build1-0ubuntu0.20.04.1 |
| Ubuntu:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs78 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs91 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | mozjs78 | 0 | No fix |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 101.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