UBUNTU-CVE-2018-12895 (CVE-2018-12895)

Vulnerability from osv_ubuntu – Published: 2018-06-26 20:29 – Updated: 2025-10-24 04:47 – Source website
VLAI
Details

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.


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "wordpress",
            "binary_version": "4.4.2+dfsg-1ubuntu1"
          },
          {
            "binary_name": "wordpress-l10n",
            "binary_version": "4.4.2+dfsg-1ubuntu1"
          },
          {
            "binary_name": "wordpress-theme-twentyfifteen",
            "binary_version": "4.4.2+dfsg-1ubuntu1"
          },
          {
            "binary_name": "wordpress-theme-twentyfourteen",
            "binary_version": "4.4.2+dfsg-1ubuntu1"
          },
          {
            "binary_name": "wordpress-theme-twentysixteen",
            "binary_version": "4.4.2+dfsg-1ubuntu1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:16.04:LTS",
        "name": "wordpress",
        "purl": "pkg:deb/ubuntu/wordpress@4.4.2+dfsg-1ubuntu1?arch=source\u0026distro=xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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_name": "wordpress",
            "binary_version": "4.9.5+dfsg1-1"
          },
          {
            "binary_name": "wordpress-l10n",
            "binary_version": "4.9.5+dfsg1-1"
          },
          {
            "binary_name": "wordpress-theme-twentyfifteen",
            "binary_version": "4.9.5+dfsg1-1"
          },
          {
            "binary_name": "wordpress-theme-twentyseventeen",
            "binary_version": "4.9.5+dfsg1-1"
          },
          {
            "binary_name": "wordpress-theme-twentysixteen",
            "binary_version": "4.9.5+dfsg1-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "wordpress",
        "purl": "pkg:deb/ubuntu/wordpress@4.9.5+dfsg1-1?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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"
      ]
    }
  ],
  "aliases": [],
  "details": "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\u0027s privileges.",
  "id": "UBUNTU-CVE-2018-12895",
  "modified": "2025-10-24T04:47:05Z",
  "published": "2018-06-26T20:29:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2018-12895"
    },
    {
      "type": "REPORT",
      "url": "https://blog.ripstech.com/2018/wordpress-file-delete-to-code-execution/"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2018-12895"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2018-12895"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…