Skip to content

CVE-2018-12895 WordPress Core < 4.9.7 - Authenticated Arbitrary File Deletion

HighCVSS 8.8 EPSS 62.2% Scanner template
Published
Updated
Exploit status
No public exploit known
Technology
PHPWordPressUbuntuDebian

Description

WordPress through 4.9.6 allows Author users to execute arbitrary code by leveraging directory traversal in the wp-admin/post.php thumb parameter, which is passed to the PHP unlink function and can delete the wp-config.php file. This is related to missing filename validation in the wp-includes/post.php wp_delete_attachment function. The attacker must have capabilities for files and posts that are normally available only to the Author, Editor, and Administrator roles. The attack methodology is to delete wp-config.php and then launch a new installation process to increase the attacker's privileges.

Upgrade path

8 packages: 5 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/wordpress(Ubuntu 16.04) = 4.3+dfsg-1; = 4.3.1+dfsg-1; = 4.4+dfsg-1; = 4.4.1+dfsg-1 +3 more No fix listed No fix yet
ubuntu/wordpress(Ubuntu 18.04) = 4.8.2+dfsg-2; = 4.8.3+dfsg-1; = 4.9.1+dfsg-1; = 4.9.2+dfsg-1 +3 more No fix listed No fix yet
debian/wordpress(Debian 12) < 4.9.7+dfsg1-1 4.9.7+dfsg1-1 Fixed
debian/wordpress(Debian 13) < 4.9.7+dfsg1-1 4.9.7+dfsg1-1 Fixed
debian/wordpress(Debian 14) < 4.9.7+dfsg1-1 4.9.7+dfsg1-1 Fixed
WordPress < 4.9.7 4.9.7 Fixed
WordPress(WordPress) < 3.7; >= 3.7, < 3.7.27; >= 3.8, < 3.8.27; >= 3.9, < 3.9.25 +10 more 3.7, 3.7.27, 3.8.27, 3.9.25, 4.0.24, 4.1.24, 4.2.21, 4.3.17, 4.4.16, 4.5.15, 4.6.12, 4.7.11, 4.8.7, 4.9.7 Fixed
debian linux = 8.0; = 9.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/wordpress(Debian:12) < 4.9.7+dfsg1-1 4.9.7+dfsg1-1
debian/wordpress(Debian:13) < 4.9.7+dfsg1-1 4.9.7+dfsg1-1
debian/wordpress(Debian:14) < 4.9.7+dfsg1-1 4.9.7+dfsg1-1
WordPress < 4.9.7 4.9.7
debian linux = 8.0 No fix listed
debian linux = 9.0 No fix listed
WordPress(WordPress) < 3.7 3.7
WordPress(WordPress) >= 3.7, < 3.7.27 3.7.27
WordPress(WordPress) >= 3.8, < 3.8.27 3.8.27
WordPress(WordPress) >= 3.9, < 3.9.25 3.9.25
WordPress(WordPress) >= 4.0, < 4.0.24 4.0.24
WordPress(WordPress) >= 4.1, < 4.1.24 4.1.24
WordPress(WordPress) >= 4.2, < 4.2.21 4.2.21
WordPress(WordPress) >= 4.3, < 4.3.17 4.3.17
WordPress(WordPress) >= 4.4, < 4.4.16 4.4.16
WordPress(WordPress) >= 4.5, < 4.5.15 4.5.15
WordPress(WordPress) >= 4.6, < 4.6.12 4.6.12
WordPress(WordPress) >= 4.7, < 4.7.11 4.7.11
WordPress(WordPress) >= 4.8, < 4.8.7 4.8.7
WordPress(WordPress) >= 4.9, < 4.9.7 4.9.7
ubuntu/wordpress(Ubuntu:16.04) All versions No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.3+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.3.1+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.4+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.4.1+dfsg-1 No fix listed
Show 9 more
ProductAffected versionsFixed in
ubuntu/wordpress(Ubuntu:16.04) = 4.4.2+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.4.2+dfsg-1ubuntu1 No fix listed
ubuntu/wordpress(Ubuntu:18.04) All versions No fix listed
ubuntu/wordpress(Ubuntu:18.04) = 4.8.2+dfsg-2 No fix listed
ubuntu/wordpress(Ubuntu:18.04) = 4.8.3+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:18.04) = 4.9.1+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:18.04) = 4.9.2+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:18.04) = 4.9.4+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:18.04) = 4.9.5+dfsg1-1 No fix listed

References