CVE-2018-5158
critical
CVSS v3
โ
CVSS v4 NEW
โ
VIR risk
9.5
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.
Predictions
Exploit likelihood
30%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Arch Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Fixed | 60.0-1 |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 52.8.0esr-1 |
| sid | Fixed | 60.0-1 |
| forky | Fixed | 52.8.0esr-1 |
| bullseye | Fixed | 52.8.0esr-1 |
| bookworm | Fixed | 52.8.0esr-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| npm | pdfjs-dist | >=2.0.0,<2.0.550 | 2.0.550 |
| npm | pdfjs-dist | <1.10.100 | 1.10.100 |
References
- https://security.archlinux.org/ASA-201805-10
- https://security-tracker.debian.org/tracker/CVE-2018-5158
- https://nvd.nist.gov/vuln/detail/CVE-2018-5158
- https://github.com/mozilla/pdf.js/pull/9659
- https://github.com/mozilla/pdf.js/commit/2dc4af525d1612c98afcd1e6bee57d4788f78f97
- https://access.redhat.com/errata/RHSA-2018:1414
- https://access.redhat.com/errata/RHSA-2018:1415
- https://bugzilla.mozilla.org/show_bug.cgi?id=1452075
- https://github.com/mozilla/pdf.js
- https://lists.debian.org/debian-lts-announce/2018/05/msg00007.html
- https://security.gentoo.org/glsa/201810-01
- https://usn.ubuntu.com/3645-1
- https://www.debian.org/security/2018/dsa-4199
- https://www.mozilla.org/security/advisories/mfsa2018-11
- https://www.mozilla.org/security/advisories/mfsa2018-12
- http://www.securityfocus.com/bid/104136
- http://www.securitytracker.com/id/1040896
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.