SecurityContext

CVE-2019-14793: Meta Box <= 4.16.2 - Arbitrary File Deletion

  • Template: CVE-2019-14793
  • Name: Meta Box <= 4.16.2 - Arbitrary File Deletion
  • Description: The Meta Box plugin for WordPress is vulnerable to arbitrary file deletion in the ajax_delete_file function. The function accepts any attachment_id from the POST request and directly calls wp_delete_attachment() or unlink() without validating that the attachment belongs to the specified Meta Box field, without path traversal protection on the unlink path, and without any ownership or authorization checks. This makes it possible for authenticated attackers to delete arbitrary files on the server including wp-config.php.
  • Impact: Authenticated attackers can delete arbitrary files on the server. Deleting wp-config.php triggers the WordPress installation wizard, allowing the attacker to reconfigure the database connection and achieve remote code execution.
  • Remediation: Update Meta Box to version 4.16.3 or later, which adds in_array validation to verify the attachment is stored in the field value and upload_dir path normalization to ensure deletion stays within ABSPATH.
  • Severity: high
  • Authors: ritikchaddha
  • Tags: cve, cve2019, wordpress, wp, wp-plugin, meta-box, file-deletion, passive
  • References: https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/meta-box/meta-box-4162-arbitrary-file-deletion, https://nvd.nist.gov/vuln/detail/CVE-2019-14793
  • Cves: CVE-2019-14793
  • Verified: yes
  • Max requests: 1
  • Directory: http/cves
  • Path: http/cves/2019/CVE-2019-14793.yaml
  • Digest: 4a0a00473045022100db86961296a81c71e2e410d9ebe508c4676ef01a8fb72eea14d31900dda75a0d022050f4bdbcf31da8582228711a7453e5f20cafa77253c675b3d5406db462b1cdf8
  • Created at: 2026-08-03T00:22:53Z
  • Updated at: 2026-11-24T02:03:42Z
  • Age in days: 113
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-14793.yaml

Classification

  • Cwe: CWE-862
  • Cvss score: 8.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
  • Epss score: 0.0172
  • Epss percentile: 0.78079
  • Not known: cpe

Metadata

  • Framework: wordpress
  • Max-request: 1
  • Product: meta-box
  • Publicwww-query: /wp-content/plugins/meta-box/
  • Vendor: metabox
  • Verified: yes

Products

ProductIndexedUrl
metabox:meta-boxno—

Labels

  • Name: Meta Box - Path Traversal
  • Impact: Attackers can delete arbitrary files on the server, potentially leading to data loss or further exploitation.
  • Remediation: Update to version 4.16.3 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write
  • Requirement type: user_interaction
  • Requirements: Attacker needs to send a crafted AJAX request
  • Labels source: projectdiscovery
  • From cve: CVE-2019-14793

```yaml

id: CVE-2019-14793

info:

name: Meta Box <= 4.16.2 - Arbitrary File Deletion

author: ritikchaddha

severity: high

description: |

The Meta Box plugin for WordPress is vulnerable to arbitrary file deletion in the ajax_delete_file function. The function accepts any attachment_id from the POST request and directly calls wp_delete_attachment() or unlink() without validating that the attachment belongs to the specified Meta Box field, without path traversal protection on the unlink path, and without any ownership or authorization checks. This makes it possible for authenticated attackers to delete arbitrary files on the server including wp-config.php.

impact: |

Authenticated attackers can delete arbitrary files on the server. Deleting wp-config.php triggers the WordPress installation wizard, allowing the attacker to reconfigure the database connection and achieve remote code execution.

remediation: |

Update Meta Box to version 4.16.3 or later, which adds in_array validation to verify the attachment is stored in the field value and upload_dir path normalization to ensure deletion stays within ABSPATH.

reference:

- https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/meta-box/meta-box-4162-arbitrary-file-deletion

- https://nvd.nist.gov/vuln/detail/CVE-2019-14793

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

cvss-score: 8.1

cve-id: CVE-2019-14793

epss-score: 0.0172

epss-percentile: 0.78079

cwe-id: CWE-862

metadata:

verified: true

max-request: 1

vendor: metabox

product: meta-box

framework: wordpress

publicwww-query: "/wp-content/plugins/meta-box/"

tags: cve,cve2019,wordpress,wp,wp-plugin,meta-box,file-deletion,passive

http:

- method: GET

path:

- "{{BaseURL}}/wp-content/plugins/meta-box/readme.txt"

matchers:

- type: dsl

dsl:

- contains(body, "Meta Box")

- compare_versions(version, "<= 4.16.2")

condition: and

extractors:

- type: regex

name: version

part: body

group: 1

regex:

- '(?i)Stable tag:\s*([0-9.]+)'

internal: true

digest: 4a0a00473045022100db86961296a81c71e2e410d9ebe508c4676ef01a8fb72eea14d31900dda75a0d022050f4bdbcf31da8582228711a7453e5f20cafa77253c675b3d5406db462b1cdf8:922c64590222798bb761d5b6d8e72950

```