ghsa-wgrm-67xf-hhpq
Vulnerability from github
Published
2024-05-07 10:25
Modified
2025-04-24 21:41
Severity ?
VLAI Severity ?
Summary
PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF
Details
Impact
If pdf.js is used to load a malicious PDF, and PDF.js is configured with isEvalSupported set to true (which is the default value), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.
Patches
The patch removes the use of eval:
https://github.com/mozilla/pdf.js/pull/18015
Workarounds
Set the option isEvalSupported to false.
References
https://bugzilla.mozilla.org/show_bug.cgi?id=1893645
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 4.1.392"
},
"package": {
"ecosystem": "npm",
"name": "pdfjs-dist"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "4.2.67"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-4367"
],
"database_specific": {
"cwe_ids": [
"CWE-754"
],
"github_reviewed": true,
"github_reviewed_at": "2024-05-07T10:25:08Z",
"nvd_published_at": "2024-05-14T18:15:12Z",
"severity": "HIGH"
},
"details": "### Impact\nIf pdf.js is used to load a malicious PDF, and PDF.js is configured with `isEvalSupported` set to `true` (which is the default value), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.\n\n### Patches\nThe patch removes the use of `eval`:\nhttps://github.com/mozilla/pdf.js/pull/18015\n\n### Workarounds\nSet the option `isEvalSupported` to `false`. \n\n### References\nhttps://bugzilla.mozilla.org/show_bug.cgi?id=1893645",
"id": "GHSA-wgrm-67xf-hhpq",
"modified": "2025-04-24T21:41:22Z",
"published": "2024-05-07T10:25:08Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-4367"
},
{
"type": "WEB",
"url": "https://github.com/gogs/gogs/issues/7928"
},
{
"type": "WEB",
"url": "https://github.com/mozilla/pdf.js/pull/18015"
},
{
"type": "WEB",
"url": "https://github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6"
},
{
"type": "WEB",
"url": "https://bugzilla.mozilla.org/show_bug.cgi?id=1893645"
},
{
"type": "WEB",
"url": "https://codeanlabs.com/blog/research/cve-2024-4367-arbitrary-js-execution-in-pdf-js"
},
{
"type": "PACKAGE",
"url": "https://github.com/mozilla/pdf.js"
},
{
"type": "WEB",
"url": "https://github.com/mozilla/pdf.js/releases/tag/v4.2.67"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2024/05/msg00010.html"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2024/05/msg00012.html"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/52273"
},
{
"type": "WEB",
"url": "https://www.mozilla.org/security/advisories/mfsa2024-21"
},
{
"type": "WEB",
"url": "https://www.mozilla.org/security/advisories/mfsa2024-22"
},
{
"type": "WEB",
"url": "https://www.mozilla.org/security/advisories/mfsa2024-23"
},
{
"type": "WEB",
"url": "http://seclists.org/fulldisclosure/2024/Aug/30"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…