johnpbloch/wordpress-core is vulnerable to Path Traversal
92
CVE Score
Critical
Path Traversal
get_page_template() resolves a page template from attacker-influenced input without confining the resulting path to the active theme directories. An unauthenticated request can therefore cause WordPress to include a chosen readable local .php file outside the theme. When the active child or parent theme has a top-level directory whose name starts with page- (for example page-templates) and a suitable local PHP file is readable by the web server, that include becomes remote code execution. The fix restricts page-template resolution so paths cannot escape the theme directories.
Upgrade the johnpbloch/wordpress-core library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and the active child or parent theme contains a top-level directory whose name starts with page-. Reaching code execution also requires a readable local .php file on the server (for example pearcmd.php when register_argc_argv is On).
4.7.0 - 4.7.36
Fixed in 4.7.374.8.0 - 4.8.31
Fixed in 4.8.324.9.0 - 4.9.32
Fixed in 4.9.335.0.0 - 5.0.28
Fixed in 5.0.295.1.0 - 5.1.25
Fixed in 5.1.265.2.0 - 5.2.27
Fixed in 5.2.285.3.0 - 5.3.24
Fixed in 5.3.255.4.0 - 5.4.22
Fixed in 5.4.235.5.0 - 5.5.21
Fixed in 5.5.225.6.0 - 5.6.20
Fixed in 5.6.215.7.0 - 5.7.18
Fixed in 5.7.195.8.0 - 5.8.16
Fixed in 5.8.175.9.0 - 5.9.17
Fixed in 5.9.186.0.0 - 6.0.15
Fixed in 6.0.166.1.0 - 6.1.13
Fixed in 6.1.146.2.0 - 6.2.12
Fixed in 6.2.136.3.0 - 6.3.11
Fixed in 6.3.126.4.0 - 6.4.11
Fixed in 6.4.126.5.0 - 6.5.11
Fixed in 6.5.126.6.0 - 6.6.8
Fixed in 6.6.96.7.0 - 6.7.8
Fixed in 6.7.96.8.0 - 6.8.9
Fixed in 6.8.106.9.0 - 6.9.8
Fixed in 6.9.97.0.0 - 7.0.5
Fixed in 7.0.67.1.0 - 7.1.1
Fixed in 7.1.2johnpbloch/wordpress-core is vulnerable to Path Traversal in versions 7.1.0 - 7.1.1, 7.0.0 - 7.0.5, 6.9.0 - 6.9.8, 6.8.0 - 6.8.9, 6.7.0 - 6.7.8, 6.6.0 - 6.6.8, 6.5.0 - 6.5.11, 6.4.0 - 6.4.11, 6.3.0 - 6.3.11, 6.2.0 - 6.2.12, 6.1.0 - 6.1.13, 6.0.0 - 6.0.15, 5.9.0 - 5.9.17, 5.8.0 - 5.8.16, 5.7.0 - 5.7.18, 5.6.0 - 5.6.20, 5.5.0 - 5.5.21, 5.4.0 - 5.4.22, 5.3.0 - 5.3.24, 5.2.0 - 5.2.27, 5.1.0 - 5.1.25, 5.0.0 - 5.0.28, 4.9.0 - 4.9.32, 4.8.0 - 4.8.31 and 4.7.0 - 4.7.36.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.