CVE-2018-5158

critical
Published 2022-05-14 ยท Modified 2024-05-28
CVSS v3
โ€”
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
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 with source_tier=community-verified.

OS impact

arch Arch Fixed 1 release
VersionStatusFixed in
โ€” Fixed 60.0-1
debian Debian Fixed 5 releases
VersionStatusFixed 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

EcosystemPackageVulnerableFixed
npm npmpdfjs-dist>=2.0.0,<2.0.5502.0.550
npm npmpdfjs-dist<1.10.1001.10.100

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.