CVE-2026-87902

NameCVE-2026-87902
DescriptionAn 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6525-1
Debian Bugs1148743

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
wordpress (PTS)bookworm, bookworm (security)6.1.9+dfsg1-0+deb12u1vulnerable
trixie6.8.7+dfsg1-0+deb13u1vulnerable
trixie (security)6.8.10+dfsg1-0+deb13u1fixed
forky, sid7.1.2+dfsg1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
wordpresssourcetrixie6.8.10+dfsg1-0+deb13u1DSA-6525-1
wordpresssource(unstable)7.1.2+dfsg1-11148743

Notes

https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp

Search for package or bug name: Reporting problems