---
id: CVE-2025-12849
title: >-
  The Contest Gallery plugin for WordPress is vulnerable to authorization bypass
  in all versions up to, and including, 28.0.2
summary: >-
  The Contest Gallery plugin for WordPress is vulnerable to authorization bypass
  in all versions up to, and including, 28.0.2. This is due to the plugin
  registering the `cg_check_wp_admin_upload_v10` AJAX action for both
  authenticated and …
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'
cwe:
  - CWE-862
published: '2025-11-15'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T21:10:00.200'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-12849'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.0.2/v10/include-functions-v10.php#L42
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.0.2/v10/include-functions-v10.php#L47
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.0.2/v10/include-functions-v10.php#L64
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.0.2/v10/v10-admin/gallery/wp-uploader.php#L15
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.0.2/v10/v10-admin/gallery/wp-uploader.php#L173
    label: security@wordfence.com
  - url: 'https://wordpress.org/plugins/contest-gallery/#developers'
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/e000c4ad-43ec-4ad0-89f9-74e9e6d8b917?source=cve
    label: security@wordfence.com
tags:
  - nvd
epss: 0.00317
epssPercentile: 0.22606
ingestedAt: '2026-10-07T21:54:15.045Z'
---

## Overview

The Contest Gallery plugin for WordPress is vulnerable to authorization bypass in all versions up to, and including, 28.0.2. This is due to the plugin registering the `cg_check_wp_admin_upload_v10` AJAX action for both authenticated and unauthenticated users without implementing capability checks or nonce verification. This makes it possible for unauthenticated attackers to inject arbitrary WordPress media attachments into galleries and manipulate gallery metadata via the `cg_check_wp_admin_upload_v10` action. It does not enable an attacker to move or upload files.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
