Read the docs
TI-2018-03722 Aliases CVE-2018-5158GHSA-7jg2-jgv3-fmr4

Code injection in Mozilla Firefox ESR

Priority MEDIUM 51CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.0 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-94.

Summary

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.

Why it matters now

EPSS 0.10285 95th percentileScored 2026-11-07
Fix Fixed Firefox ESR (Mozilla): 52.8Firefox (Mozilla): 60+1 more productRed Hat: 2 advisories

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
MozillaFirefox ESRbefore 52.852.8Patch availableCNA
MozillaFirefoxbefore 6060Patch availableCNA
—pdfjs-dist (npm)2.0.0 to before 2.0.5502.0.550Patch availableGHSA-7jg2-jgv3-fmr4
—pdfjs-dist (npm)before 1.10.1001.10.100Patch availableGHSA-7jg2-jgv3-fmr4
  • Firefox ESR VendorMozilla Affected before 52.8 Fixed in 52.8 Patch available CNA
  • Firefox VendorMozilla Affected before 60 Fixed in 60 Patch available CNA
  • pdfjs-dist (npm) Vendor— Affected 2.0.0 to before 2.0.550 Fixed in 2.0.550 Patch available GHSA-7jg2-jgv3-fmr4
  • pdfjs-dist (npm) Vendor— Affected before 1.10.100 Fixed in 1.10.100 Patch available GHSA-7jg2-jgv3-fmr4

CPE configurations NVD · 18

CPEVersionsRoleVendor
cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*7.0VulnerableDebian
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*8.0VulnerableDebian
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*9.0VulnerableDebian
cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*6.0VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*7.0VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*6.0VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*7.0VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:*7.6VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:*7.5VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:*7.6VulnerableRed Hat
  • cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
  • cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
  • cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* Versions 7.5 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
Show 8 more CPE
CPEVersionsRoleVendor
cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:*7.6VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*6.0VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*7.0VulnerableRed Hat
cpe:2.3:a:mozilla:firefox:*:*:*:*:*:*:*:*before 52.8.0; before 60.0VulnerableMozilla
cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*14.04VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*16.04VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*17.10VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*18.04VulnerableCanonical
  • cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:*:*:*:* Versions before 52.8.0; before 60.0 Vulnerable ·Mozilla
  • cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* Versions 17.10 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* Versions 18.04 Vulnerable ·Canonical

Remediation

  • Fix · CNA Firefox ESR (Mozilla) Fixed in 52.8
  • Fix · CNA Firefox (Mozilla) Fixed in 60
  • Fix · GHSA-7jg2-jgv3-fmr4 pdfjs-dist (npm) Fixed in 2.0.550 Advisory →
  • Fix · GHSA-7jg2-jgv3-fmr4 pdfjs-dist (npm) Fixed in 1.10.100 Advisory →

Red Hat 2 advisories

  • RHSA-2018:1415 Released 2018-05-14 · Red Hat rating Critical
    firefox security update
    • Red Hat Enterprise Linux Client (v. 7) firefox-52.8.0-1.el7_5
    • Red Hat Enterprise Linux Client Optional (v. 7) firefox-52.8.0-1.el7_5
    • Red Hat Enterprise Linux Server (v. 7) firefox-52.8.0-1.el7_5
    • Red Hat Enterprise Linux Server Optional (v. 7) firefox-52.8.0-1.el7_5
    • Red Hat Enterprise Linux Workstation (v. 7) firefox-52.8.0-1.el7_5
    • Red Hat Enterprise Linux Workstation Optional (v. 7) firefox-52.8.0-1.el7_5
    • Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) firefox-52.8.0-1.el7_5
    • Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) firefox-52.8.0-1.el7_5
  • RHSA-2018:1414 Released 2018-05-14 · Red Hat rating Critical
    firefox security update
    • Red Hat Enterprise Linux Desktop (v. 6) firefox-52.8.0-1.el6_9
    • Red Hat Enterprise Linux Desktop Optional (v. 6) firefox-52.8.0-1.el6_9
    • Red Hat Enterprise Linux HPC Node Optional (v. 6) firefox-52.8.0-1.el6_9
    • Red Hat Enterprise Linux Server (v. 6) firefox-52.8.0-1.el6_9
    • Red Hat Enterprise Linux Server Optional (v. 6) firefox-52.8.0-1.el6_9, firefox-52.8.0-1.el6_9.ppc
    • Red Hat Enterprise Linux Workstation (v. 6) firefox-52.8.0-1.el6_9
    • Red Hat Enterprise Linux Workstation Optional (v. 6) firefox-52.8.0-1.el6_9

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Advisory ·

    Mozilla Firefox, Firefox ESR — USN-3645-1

    24 records Highest priority Priority MEDIUM 6 MEDIUM, 18 LOW

    Other records, highest priority first

    • TI-2018-03723 Integer overflow in Mozilla ThunderbirdPriority MEDIUM 61
    • TI-2018-03719 Use after free in Mozilla ThunderbirdPriority MEDIUM 48
    • TI-2018-03718 Use after free in Mozilla ThunderbirdPriority MEDIUM 48
  • Advisory ·

    Mozilla Firefox, Firefox ESR — RHSA-2018:1414

    9 records Highest priority Priority MEDIUM 7 MEDIUM, 2 LOW

    Other records, highest priority first

    • TI-2018-03723 Integer overflow in Mozilla ThunderbirdPriority MEDIUM 61
    • TI-2018-03746 Memory corruption in Mozilla Thunderbird ESRPriority MEDIUM 48
    • TI-2018-03719 Use after free in Mozilla ThunderbirdPriority MEDIUM 48
Show 2 more groups
  • Advisory ·

    Mozilla Firefox, Firefox ESR — RHSA-2018:1415

    9 records Highest priority Priority MEDIUM 7 MEDIUM, 2 LOW

    Other records, highest priority first

    • TI-2018-03723 Integer overflow in Mozilla ThunderbirdPriority MEDIUM 61
    • TI-2018-03746 Memory corruption in Mozilla Thunderbird ESRPriority MEDIUM 48
    • TI-2018-03719 Use after free in Mozilla ThunderbirdPriority MEDIUM 48
  • Advisory ·

    Mozilla Firefox, Firefox ESR — DSA-4199

    9 records Highest priority Priority MEDIUM 7 MEDIUM, 2 LOW

    Other records, highest priority first

    • TI-2018-03723 Integer overflow in Mozilla ThunderbirdPriority MEDIUM 61
    • TI-2018-03746 Memory corruption in Mozilla Thunderbird ESRPriority MEDIUM 48
    • TI-2018-03719 Use after free in Mozilla ThunderbirdPriority MEDIUM 48

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux Client (v. 7)Fixed RHSA-2018:1415
Red Hat Enterprise Linux Client Optional (v. 7)Fixed RHSA-2018:1415
Red Hat Enterprise Linux Desktop (v. 6)Fixed RHSA-2018:1414
Red Hat Enterprise Linux Desktop Optional (v. 6)Fixed RHSA-2018:1414
Red Hat Enterprise Linux HPC Node Optional (v. 6)Fixed RHSA-2018:1414
Red Hat Enterprise Linux Server (v. 6)Fixed RHSA-2018:1414
Red Hat Enterprise Linux Server (v. 7)Fixed RHSA-2018:1415
Red Hat Enterprise Linux Server Optional (v. 6)Fixed RHSA-2018:1414
Red Hat Enterprise Linux Server Optional (v. 7)Fixed RHSA-2018:1415
Red Hat Enterprise Linux Workstation (v. 6)Fixed RHSA-2018:1414
Red Hat Enterprise Linux Workstation (v. 7)Fixed RHSA-2018:1415
Red Hat Enterprise Linux Workstation Optional (v. 6)Fixed RHSA-2018:1414
Red Hat Enterprise Linux Workstation Optional (v. 7)Fixed RHSA-2018:1415
Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7)Fixed RHSA-2018:1415
Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7)Fixed RHSA-2018:1415
Not affected: 3 products
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Timeline

  1. 2026-10-02 Threatist record created from CVE-2018-5158
  2. 2026-10-03 Alias added: GHSA-7jg2-jgv3-fmr4

References

  • TI-2024-08981 Use after free in Mozilla Firefox KEVCVSS 3.1CRITICAL 9.8
  • TI-2022-09832 Use after free in Mozilla Firefox KEVCVSS 3.1CRITICAL 9.6
  • TI-2019-08769 Improper input validation in Mozilla Firefox ESR KEVCVSS 3.1CRITICAL 10.0
  • TI-2010-03577 Mozilla Firefox 3.5.x through 3.5.14 and 3.6.x through 3.6.11, Thunderbird 3.1.6 before… KEVCVSS 3.1CRITICAL 9.8
  • TI-2023-04799 Out-of-bounds write in Google Chrome KEVCVSS 3.1HIGH 8.8
  • TI-2023-04477 Out-of-bounds write in Google Chrome KEVCVSS 3.1HIGH 8.8
See all 3444 →

Sources