# CVE-2015-4495: Mozilla Firefox Security Feature Bypass

> Remote attackers can bypass Same Origin Policy to read arbitrary files or gain privileges via crafted JavaScript in the PDF reader.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 25 May 2022 (CISA KEV)
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 8 Aug 2015
- **Updated:** 21 Oct 2025
- **Also known as:** DEBIAN-CVE-2015-4495, GHSA-cpx9-g67g-v8c5, MGASA-2015-0305, RHSA-2015:1581, SUSE-SU-2015:1379-1, SUSE-SU-2015:1380-1, UBUNTU-CVE-2015-4495, USN-2707-1

## What is CVE-2015-4495?

CVE-2015-4495 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 8 Aug 2015. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

The PDF reader in Mozilla Firefox before 39.0.3, Firefox ESR 38.x before 38.1.1, and Firefox OS before 2.2 allows remote attackers to bypass the Same Origin Policy, and read arbitrary files or gain privileges, via vectors involving crafted JavaScript code and a native setter, as exploited in the wild in August 2015.

Weakness: CWE-346 (Origin Validation Error)

## Which versions are affected by CVE-2015-4495?

It affects 15 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `firefox` | Red Hat:enterprise_linux:5::client | All versions | 0:38.1.1-1.el5_11 |
| `firefox-debuginfo` | Red Hat:enterprise_linux:5::client | All versions | 0:38.1.1-1.el5_11 |
| `firefox` | Red Hat:enterprise_linux:5::server | All versions | 0:38.1.1-1.el5_11 |
| `firefox-debuginfo` | Red Hat:enterprise_linux:5::server | All versions | 0:38.1.1-1.el5_11 |
| `firefox` | Red Hat:enterprise_linux:6::client | All versions | 0:38.1.1-1.el6_7 |
| `firefox-debuginfo` | Red Hat:enterprise_linux:6::client | All versions | 0:38.1.1-1.el6_7 |
| `firefox` | Red Hat:enterprise_linux:6::computenode | All versions | 0:38.1.1-1.el6_7 |
| `firefox-debuginfo` | Red Hat:enterprise_linux:6::computenode | All versions | 0:38.1.1-1.el6_7 |
| `firefox` | Red Hat:enterprise_linux:6::server | All versions | 0:38.1.1-1.el6_7 |
| `firefox-debuginfo` | Red Hat:enterprise_linux:6::server | All versions | 0:38.1.1-1.el6_7 |
| `firefox` | Red Hat:enterprise_linux:6::workstation | All versions | 0:38.1.1-1.el6_7 |
| `firefox-debuginfo` | Red Hat:enterprise_linux:6::workstation | All versions | 0:38.1.1-1.el6_7 |
| `firefox` | Red Hat:enterprise_linux:7::client | All versions | 0:38.1.1-1.el7_1 |
| `firefox-debuginfo` | Red Hat:enterprise_linux:7::client | All versions | 0:38.1.1-1.el7_1 |
| `firefox` | Red Hat:enterprise_linux:7::server | All versions | 0:38.1.1-1.el7_1 |
| `firefox-debuginfo` | Red Hat:enterprise_linux:7::server | All versions | 0:38.1.1-1.el7_1 |
| `firefox` | Red Hat:enterprise_linux:7::workstation | All versions | 0:38.1.1-1.el7_1 |
| `firefox-debuginfo` | Red Hat:enterprise_linux:7::workstation | All versions | 0:38.1.1-1.el7_1 |
| `MozillaFirefox` | SUSE:Linux Enterprise Desktop 11 SP3 | All versions | 31.8.0esr-0.13.2 |
| `MozillaFirefox` | SUSE:Linux Enterprise Desktop 11 SP4 | All versions | 31.8.0esr-0.13.2 |
| `MozillaFirefox` | SUSE:Linux Enterprise Desktop 12 | All versions | 31.8.0esr-40.1 |
| `MozillaFirefox` | SUSE:Linux Enterprise Server 11 SP3 | All versions | 31.8.0esr-0.13.2 |
| `MozillaFirefox` | SUSE:Linux Enterprise Server 11 SP3-TERADATA | All versions | 31.8.0esr-0.13.2 |
| `MozillaFirefox` | SUSE:Linux Enterprise Server 11 SP4 | All versions | 31.8.0esr-0.13.2 |
| `MozillaFirefox` | SUSE:Linux Enterprise Server 12 | All versions | 31.8.0esr-40.1 |
| `MozillaFirefox` | SUSE:Linux Enterprise Server for SAP Applications 11 SP3 | All versions | 31.8.0esr-0.13.2 |
| `MozillaFirefox` | SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | All versions | 31.8.0esr-0.13.2 |
| `MozillaFirefox` | SUSE:Linux Enterprise Server for SAP Applications 12 | All versions | 31.8.0esr-40.1 |
| `MozillaFirefox` | SUSE:Linux Enterprise Software Development Kit 11 SP3 | All versions | 31.8.0esr-0.13.2 |
| `MozillaFirefox` | SUSE:Linux Enterprise Software Development Kit 11 SP4 | All versions | 31.8.0esr-0.13.2 |
| `MozillaFirefox` | SUSE:Linux Enterprise Software Development Kit 12 | All versions | 31.8.0esr-40.1 |

Products: Canonical Ubuntu Linux, Mozilla Firefox, Mozilla Firefox Os, Opensuse Opensuse, Oracle Solaris, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Eus, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus, Redhat Enterprise Linux Server Tus, Redhat Enterprise Linux Workstation, Suse Linux Enterprise Debuginfo, Suse Linux Enterprise Desktop, Suse Linux Enterprise Server, Suse Linux Enterprise Software Development Kit.

## How do I fix CVE-2015-4495?

Upgrade to a fixed version. US federal agencies must fix it by 15 Jun 2022.

## Is CVE-2015-4495 being exploited?

Yes. Attackers have exploited CVE-2015-4495 in the wild since at least 25 May 2022.

Public exploit code:

- Exploit for CVE-2015-4495 / mfsa2015-78 (github_poc): https://github.com/vincd/CVE-2015-4495
- Mozilla Firefox < 39.03 - 'pdf.js' Same Origin Policy (exploitdb)
- Firefox PDF.js Browser File Theft (metasploit)

## Other vulnerabilities in Canonical Ubuntu Linux

- [CVE-2020-11651](https://insights.sbomify.com/CVE-2020-11651/): SaltStack Salt Authentication Bypass (critical 9.8, exploited in the wild)
- [CVE-2020-7247](https://insights.sbomify.com/CVE-2020-7247/): OpenSMTPD Remote Code Execution (critical 9.8, exploited in the wild)
- [CVE-2019-16928](https://insights.sbomify.com/CVE-2019-16928/): Exim Out-of-bounds Write (critical 9.8, exploited in the wild)
- [CVE-2018-6789](https://insights.sbomify.com/CVE-2018-6789/): Exim Buffer Overflow (critical 9.8, exploited in the wild)
- [CVE-2015-2590](https://insights.sbomify.com/CVE-2015-2590/): Oracle Java SE and Java SE Embedded Remote Code Execution (critical 9.8, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2015-4495 and fix it if it is affected.

What it is: CVE-2015-4495 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 8 Aug 2015. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: Yes. Attackers have exploited CVE-2015-4495 in the wild since at least 25 May 2022.

Affected product: Canonical Ubuntu Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2015-4495/ (Markdown: https://insights.sbomify.com/CVE-2015-4495/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2015-4495
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2015-4495
- OSV: https://osv.dev/vulnerability/CVE-2015-4495

---
From sbomify Insights: https://insights.sbomify.com/CVE-2015-4495/
Summaries are generated and may contain mistakes; the official description above is the record.
