CVE-2022-38475
Medium · 6.5CVSS
6.5
EPSS
0.5%
Published
Dec 22, 2022
CISA due date
—
Cloudanix analysis
A flaw in older versions of the Firefox browser could let a website change information in memory that it should not be able to touch, which might let attackers interfere with how the browser works.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Allows writing a value to the first element of a zero-length JavaScript array without accessing an invalid memory address, bypassing intended bounds checks in the JavaScript engine.
Why it matters to the business
May enable attackers to corrupt application state or bypass security controls in web applications, leading to data integrity issues or unauthorized actions for users of affected browsers.
How an attack unfolds
An attacker serves a crafted web page containing malicious JavaScript that triggers the array write flaw to manipulate memory or bypass protections; no named threat actors or ransomware campaigns are associated.
How to fix it
Update Mozilla Firefox to version 104 or later on all affected systems.
How to confirm the fix worked
Confirm installed Firefox version is 104 or higher; attempt reproduction with boundary-testing JavaScript arrays in a controlled environment.
Typical attack path
- Host a malicious webpage targeting vulnerable Firefox versions
- Lure a user to visit the page via phishing or compromised sites
- Execute JavaScript that performs the zero-length array write
- Leverage the resulting state to achieve further unauthorized actions or corruption
How to detect it
Inspect browser process logs, crash reports, or JavaScript execution traces for unusual array write operations; no public exploit artifacts or threat actor IOCs are known.
What your security team should do
- Immediately deploy Firefox 104 or newer across the environment
- Enforce automatic browser updates via policy where possible
- Review web proxy or EDR logs for anomalous JavaScript behavior targeting array operations
The record
An attacker could have written a value to the first element in a zero-length JavaScript array. Although the array was zero-length, the value was not written to an invalid memory address. This vulnerability affects Firefox < 104.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | firefox | 0 | 104.0+build3-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 | 104.0+build3-0ubuntu0.20.04.1 |
| Ubuntu:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:20.04:LTS | thunderbird | 0 | 1:102.2.2+build1-0ubuntu0.20.04.1 |
| Ubuntu:22.04:LTS | mozjs78 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs91 | 0 | No fix |
| Ubuntu:22.04:LTS | thunderbird | 0 | 1:102.2.2+build1-0ubuntu0.22.04.1 |
| 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 | 104.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