Mozilla: Malicious PDF can inject JavaScript into PDF Viewer
Published Jun 11, 2018
8.8
HIGHCVSS 3.0
EPSS 10.45%
Description
The PDF viewer does not sufficiently sanitize PostScript calculator functions, allowing malicious JavaScript to be injected through a crafted PDF file. This JavaScript can then be run with the permissions of the PDF viewer by its worker. This vulnerability affects Firefox ESR < 52.8 and Firefox < 60.
Affected products
-
- Version unspecifiedStatusaffectedConstraints<60
- Version
-
- Version unspecifiedStatusaffectedConstraints<52.8
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Mozilla | Firefox | n/a |
| ||||||
| Mozilla | Firefox ESR | n/a |
|
Configuration 1
- 7.0
- 8.0
- 9.0
Configuration 2
- 6.0
- 7.0
- 6.0
- 7.0
- 7.6
- 7.5
- 7.6
- 7.6
- 6.0
- 7.0
Configuration 4
- 14.04
- 16.04
- 17.10
- 18.04
No data.
Red Hat Enterprise Linux 6
firefox-0:52.8.0-1.el6_9
Fixed · RHSA-2018:1414
Red Hat Enterprise Linux 7
firefox-0:52.8.0-1.el7_5
Fixed · RHSA-2018:1415
Red Hat Enterprise Linux 6
thunderbird
Not affected
Red Hat Enterprise Linux 7
thunderbird
Not affected
Red Hat Enterprise Linux 8
firefox
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | firefox-0:52.8.0-1.el6_9 | Fixed | RHSA-2018:1414 |
| Red Hat Enterprise Linux 7 | firefox-0:52.8.0-1.el7_5 | Fixed | RHSA-2018:1415 |
| Red Hat Enterprise Linux 6 | thunderbird | Not affected | n/a |
| Red Hat Enterprise Linux 7 | thunderbird | Not affected | n/a |
| Red Hat Enterprise Linux 8 | firefox | Not affected | n/a |
pdfjs-dist
npm
Introduced 2.0.0 Fixed 2.0.550pdfjs-dist
npm
Introduced 0 Fixed 1.10.100
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | pdfjs-dist | 2.0.0 | 2.0.550 |
| npm | pdfjs-dist | 0 | 1.10.100 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (67 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 10.45% (0.10445) | 95.61th | v5 (v2026.06.15) |
| Sep 22, 2026 | 10.45% (0.10445) | 95.53th | v5 (v2026.06.15) |
| Sep 21, 2026 | 12.29% (0.12289) | 96.06th | v5 (v2026.06.15) |
| Sep 6, 2026 | 10.45% (0.10445) | 95.43th | v5 (v2026.06.15) |
| Sep 5, 2026 | 12.29% (0.12289) | 95.98th | v5 (v2026.06.15) |
| Aug 30, 2026 | 10.45% (0.10445) | 95.41th | v5 (v2026.06.15) |
| Aug 28, 2026 | 12.29% (0.12289) | 95.95th | v5 (v2026.06.15) |
| Aug 24, 2026 | 10.45% (0.10445) | 95.38th | v5 (v2026.06.15) |
| Aug 23, 2026 | 12.29% (0.12289) | 95.94th | v5 (v2026.06.15) |
| Jun 15, 2026 | 10.58% (0.10576) | 95.19th | v5 (v2026.06.15) |
| Apr 9, 2026 | 43.03% (0.43031) | 97.48th | v4 (v2025.03.14) |
| Mar 4, 2026 | 41.38% (0.41380) | 97.32th | v4 (v2025.03.14) |
| Mar 1, 2026 | 29.53% (0.29533) | 96.53th | v4 (v2025.03.14) |
| Feb 4, 2026 | 41.38% (0.41380) | 97.29th | v4 (v2025.03.14) |
| Feb 1, 2026 | 29.53% (0.29533) | 96.51th | v4 (v2025.03.14) |
| Jan 19, 2026 | 41.38% (0.41380) | 97.28th | v4 (v2025.03.14) |
| Jan 4, 2026 | 47.80% (0.47796) | 97.60th | v4 (v2025.03.14) |
| Jan 2, 2026 | 33.90% (0.33904) | 96.84th | v4 (v2025.03.14) |
| Jan 1, 2026 | 21.36% (0.21364) | 95.55th | v4 (v2025.03.14) |
| Dec 28, 2025 | 30.62% (0.30619) | 96.55th | v4 (v2025.03.14) |
| Dec 27, 2025 | 27.34% (0.27343) | 96.26th | v4 (v2025.03.14) |
| Dec 26, 2025 | 30.62% (0.30619) | 96.55th | v4 (v2025.03.14) |
| Dec 4, 2025 | 31.65% (0.31648) | 96.61th | v4 (v2025.03.14) |
| Dec 1, 2025 | 22.21% (0.22206) | 95.61th | v4 (v2025.03.14) |
| Nov 21, 2025 | 31.65% (0.31648) | 96.60th | v4 (v2025.03.14) |
| Nov 18, 2025 | 27.07% (0.27070) | 96.08th | v4 (v2025.03.14) |
| Nov 4, 2025 | 31.65% (0.31648) | 96.58th | v4 (v2025.03.14) |
| Nov 1, 2025 | 22.21% (0.22206) | 95.59th | v4 (v2025.03.14) |
| Oct 29, 2025 | 31.65% (0.31648) | 96.57th | v4 (v2025.03.14) |
| Oct 28, 2025 | 53.54% (0.53542) | 97.84th | v4 (v2025.03.14) |
| Oct 27, 2025 | 49.90% (0.49902) | 97.68th | v4 (v2025.03.14) |
| Oct 20, 2025 | 53.54% (0.53542) | 97.83th | v4 (v2025.03.14) |
| Oct 4, 2025 | 58.98% (0.58983) | 98.15th | v4 (v2025.03.14) |
| Oct 1, 2025 | 41.39% (0.41389) | 97.32th | v4 (v2025.03.14) |
| Sep 4, 2025 | 55.53% (0.55527) | 98.00th | v4 (v2025.03.14) |
| Sep 1, 2025 | 37.71% (0.37715) | 97.11th | v4 (v2025.03.14) |
| Aug 4, 2025 | 55.53% (0.55527) | 97.96th | v4 (v2025.03.14) |
| Aug 1, 2025 | 37.71% (0.37715) | 97.08th | v4 (v2025.03.14) |
| Jul 4, 2025 | 55.53% (0.55527) | 97.92th | v4 (v2025.03.14) |
| Jul 1, 2025 | 37.71% (0.37715) | 97.04th | v4 (v2025.03.14) |
| Jun 30, 2025 | 55.53% (0.55527) | 97.92th | v4 (v2025.03.14) |
| Jun 4, 2025 | 57.82% (0.57817) | 98.02th | v4 (v2025.03.14) |
| Jun 1, 2025 | 40.12% (0.40124) | 97.17th | v4 (v2025.03.14) |
| May 9, 2025 | 57.82% (0.57817) | 98.02th | v4 (v2025.03.14) |
| May 4, 2025 | 50.35% (0.50353) | 97.66th | v4 (v2025.03.14) |
| May 1, 2025 | 32.61% (0.32614) | 96.61th | v4 (v2025.03.14) |
| Apr 22, 2025 | 50.35% (0.50353) | 97.64th | v4 (v2025.03.14) |
| Mar 30, 2025 | 46.25% (0.46252) | 97.39th | v4 (v2025.03.14) |
| Mar 29, 2025 | 71.73% (0.71729) | 98.31th | v4 (v2025.03.14) |
| Mar 28, 2025 | 46.25% (0.46252) | 97.39th | v4 (v2025.03.14) |
| Mar 27, 2025 | 67.52% (0.67515) | 98.39th | v4 (v2025.03.14) |
| Mar 24, 2025 | 63.19% (0.63186) | 98.26th | v4 (v2025.03.14) |
| Mar 23, 2025 | 67.83% (0.67834) | 98.44th | v4 (v2025.03.14) |
| Mar 20, 2025 | 63.19% (0.63186) | 98.28th | v4 (v2025.03.14) |
| Mar 19, 2025 | 67.83% (0.67834) | 98.44th | v4 (v2025.03.14) |
| Mar 17, 2025 | 63.19% (0.63186) | 98.23th | v4 (v2025.03.14) |
| Jul 20, 2024 | 1.95% (0.01948) | 88.85th | v3 (v2023.03.01) |
| Jan 5, 2024 | 1.95% (0.01948) | 87.43th | v3 (v2023.03.01) |
| Dec 12, 2023 | 2.47% (0.02468) | 88.88th | v3 (v2023.03.01) |
| Nov 2, 2023 | 3.45% (0.03450) | 90.42th | v3 (v2023.03.01) |
| Sep 3, 2023 | 2.54% (0.02544) | 88.84th | v3 (v2023.03.01) |
| Mar 7, 2023 | 2.25% (0.02250) | 87.79th | v3 (v2023.03.01) |
| Mar 6, 2023 | 12.26% (0.12262) | 95.30th | v2 (v2022.01.01) |
| Feb 4, 2022 | 12.26% (0.12262) | 89.36th | v2 (v2022.01.01) |
| Feb 3, 2022 | 10.22% (0.10225) | 87.52th | v5 (v2026.06.15) |
| Apr 27, 2021 | 10.22% (0.10225) | 0.00th | v1 |
| Apr 14, 2021 | 2.48% (0.02476) | 0.00th | v1 |
References (19)
- http://www.securityfocus.com/bid/104136 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1040896 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:1414 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1415 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-5158 Vendor Advisory
- https://bugzilla.mozilla.org/show_bug.cgi?id=1452075 x_refsource_CONFIRMIssue TrackingVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1576259 Issue Tracking
- https://github.com/advisories/GHSA-7jg2-jgv3-fmr4 Advisory
- https://github.com/mozilla/pdf.js/commit/2dc4af525d1612c98afcd1e6bee57d4788f78f97
- https://github.com/mozilla/pdf.js/pull/9659
- https://lists.debian.org/debian-lts-announce/2018/05/msg00007.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-5158
- https://security.gentoo.org/glsa/201810-01 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://usn.ubuntu.com/3645-1 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-5158
- https://www.debian.org/security/2018/dsa-4199 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.mozilla.org/en-US/security/advisories/mfsa2018-12/#CVE-2018-5158
- https://www.mozilla.org/security/advisories/mfsa2018-11 x_refsource_CONFIRMVendor Advisory
- https://www.mozilla.org/security/advisories/mfsa2018-12 x_refsource_CONFIRMVendor Advisory
Change history (0)
No recorded changes yet.