{"id":"UBUNTU-CVE-2026-87902","details":"An unauthenticated attacker can make `get_page_template()` page-template resolution include a chosen readable local `.php` file outside the active theme directories. If relevant pre-conditions for both the server and the active theme are met, this can lead to RCE.","modified":"2026-09-29T23:42:39.799349224Z","published":"2026-09-22T17:17:00Z","upstream":["CVE-2026-87902"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-87902"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-87902"},{"type":"REPORT","url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp"},{"type":"REPORT","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog"}],"affected":[{"package":{"name":"wordpress","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3+dfsg-1","4.3.1+dfsg-1","4.4+dfsg-1","4.4.1+dfsg-1","4.4.2+dfsg-1","4.4.2+dfsg-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.4.2+dfsg-1ubuntu1","binary_name":"wordpress"},{"binary_name":"wordpress-l10n","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_version":"4.4.2+dfsg-1ubuntu1","binary_name":"wordpress-theme-twentyfifteen"},{"binary_name":"wordpress-theme-twentyfourteen","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-theme-twentysixteen","binary_version":"4.4.2+dfsg-1ubuntu1"}],"priority_reason":"In CISA adp list"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87902.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.8.2+dfsg-2","4.8.3+dfsg-1","4.9.1+dfsg-1","4.9.2+dfsg-1","4.9.4+dfsg-1","4.9.5+dfsg1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"4.9.5+dfsg1-1"},{"binary_name":"wordpress-l10n","binary_version":"4.9.5+dfsg1-1"},{"binary_version":"4.9.5+dfsg1-1","binary_name":"wordpress-theme-twentyfifteen"},{"binary_name":"wordpress-theme-twentyseventeen","binary_version":"4.9.5+dfsg1-1"},{"binary_name":"wordpress-theme-twentysixteen","binary_version":"4.9.5+dfsg1-1"}],"priority_reason":"In CISA adp list"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87902.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.2.2+dfsg1-1","5.2.4+dfsg1-1","5.3.2+dfsg1-1","5.3.2+dfsg1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_version":"5.3.2+dfsg1-1ubuntu1","binary_name":"wordpress-l10n"},{"binary_name":"wordpress-theme-twentynineteen","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_name":"wordpress-theme-twentyseventeen","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_name":"wordpress-theme-twentysixteen","binary_version":"5.3.2+dfsg1-1ubuntu1"}],"priority_reason":"In CISA adp list"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87902.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.7.1+dfsg1-2ubuntu1","5.8.1+dfsg1-2ubuntu1","5.8.2+dfsg1-1ubuntu1","5.8.3+dfsg1-1ubuntu1","5.8.3+dfsg1-1ubuntu1.1"],"ecosystem_specific":{"priority_reason":"In CISA adp list","binaries":[{"binary_name":"wordpress","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-l10n","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-theme-twentynineteen","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-theme-twentytwenty","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-theme-twentytwentyone","binary_version":"5.8.3+dfsg1-1ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87902.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.2+dfsg1-1ubuntu1","6.4.3+dfsg1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"6.4.3+dfsg1-1ubuntu1"},{"binary_version":"6.4.3+dfsg1-1ubuntu1","binary_name":"wordpress-l10n"},{"binary_version":"6.4.3+dfsg1-1ubuntu1","binary_name":"wordpress-theme-twentytwentyfour"},{"binary_name":"wordpress-theme-twentytwentythree","binary_version":"6.4.3+dfsg1-1ubuntu1"},{"binary_version":"6.4.3+dfsg1-1ubuntu1","binary_name":"wordpress-theme-twentytwentytwo"}],"priority_reason":"In CISA adp list"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87902.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/wordpress?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.7.2+dfsg1-1.1ubuntu1","6.7.2+dfsg1-1.1ubuntu2"],"ecosystem_specific":{"priority_reason":"In CISA adp list","binaries":[{"binary_name":"wordpress","binary_version":"6.7.2+dfsg1-1.1ubuntu2"},{"binary_name":"wordpress-l10n","binary_version":"6.7.2+dfsg1-1.1ubuntu2"},{"binary_name":"wordpress-theme-twentytwentyfive","binary_version":"6.7.2+dfsg1-1.1ubuntu2"},{"binary_version":"6.7.2+dfsg1-1.1ubuntu2","binary_name":"wordpress-theme-twentytwentyfour"},{"binary_version":"6.7.2+dfsg1-1.1ubuntu2","binary_name":"wordpress-theme-twentytwentythree"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87902.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"high"}]}