{"id":"UBUNTU-CVE-2019-17221","details":"PhantomJS through 2.1.1 has an arbitrary file read vulnerability, as demonstrated by an XMLHttpRequest for a file:// URI. The vulnerability exists in the page.open() function of the webpage module, which loads a specified URL and calls a given callback. An attacker can supply a specially crafted HTML file, as user input, that allows reading arbitrary files on the filesystem. For example, if page.render() is the function callback, this generates a PDF or an image of the targeted file. NOTE: this product is no longer developed.","modified":"2025-10-24T04:47:55Z","published":"2019-11-05T14:15:00Z","upstream":["CVE-2019-17221"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-17221"},{"type":"REPORT","url":"https://www.darkmatter.ae/blogs/breaching-the-perimeter-phantomjs-arbitrary-file-read/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-17221"}],"affected":[{"package":{"name":"phantomjs","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/phantomjs@2.1.1+dfsg-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.0-1","2.0.0+dfsg-1","2.1.1+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.1+dfsg-1","binary_name":"phantomjs"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-17221.json"}},{"package":{"name":"phantomjs","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/phantomjs@2.1.1+dfsg-2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.1+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.1+dfsg-2","binary_name":"phantomjs"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-17221.json"}},{"package":{"name":"phantomjs","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/phantomjs@2.1.1+dfsg-2ubuntu1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.1+dfsg-2","2.1.1+dfsg-2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.1+dfsg-2ubuntu1","binary_name":"phantomjs"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-17221.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}