← Back to CVE Explorer

CVE-2026-45293

Full vulnerability record from the local CVENow database.

Description

WordPress Coding Standards is a set of PHP_CodeSniffer rules (sniffs) that enforce WordPress coding conventions. From 0.14.1 until 3.4.1, the WordPress.WP.EnqueuedResourceParameters sniff (active in the WordPress and WordPress-Extra rulesets) reconstructed the $ver argument passed to functions such as wp_enqueue_script() and ran it through eval() inside its is_falsy() method, so a maliciously crafted argument such as 'system'('id') would execute during a scan; as a result, running PHPCS with WordPressCS over untrusted PHP (for example a CI pipeline that lints pull requests, or a developer reviewing third-party code) could lead to arbitrary command execution on the scanning host. The WordPress-Core and WordPress-Docs rulesets are not affected. This issue is fixed in version 3.4.1.

Severity
HIGH
CVSS score
8.6 (v3.1)
Vulnerability status
Awaiting Analysis
Source identifier
Published
2026-07-28 16:18:13.503000
Last modified
2026-10-24 13:10:00.147000
View original CVE JSON
{
  "id": "CVE-2026-45293",
  "sourceIdentifier": "[email protected]",
  "published": "2026-07-28T16:18:13.503",
  "lastModified": "2026-10-24T13:10:00.147",
  "vulnStatus": "Awaiting Analysis",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "WordPress Coding Standards is a set of PHP_CodeSniffer rules (sniffs) that enforce WordPress coding conventions. From 0.14.1 until 3.4.1, the WordPress.WP.EnqueuedResourceParameters sniff (active in the WordPress and WordPress-Extra rulesets) reconstructed the $ver argument passed to functions such as wp_enqueue_script() and ran it through eval() inside its is_falsy() method, so a maliciously crafted argument such as 'system'('id') would execute during a scan; as a result, running PHPCS with WordPressCS over untrusted PHP (for example a CI pipeline that lints pull requests, or a developer reviewing third-party code) could lead to arbitrary command execution on the scanning host. The WordPress-Core and WordPress-Docs rulesets are not affected. This issue is fixed in version 3.4.1."
    },
    {
      "lang": "es",
      "value": "WordPress Coding Standards es un conjunto de reglas de PHP_CodeSniffer (sniffs) que aplican las convenciones de codificación de WordPress. Desde la versión 0.14.1 hasta la 3.4.1, el sniff WordPress.WP.EnqueuedResourceParameters (activo en los conjuntos de reglas WordPress y WordPress-Extra) reconstruía el argumento $ver pasado a funciones como wp_enqueue_script() y lo ejecutaba a través de eval() dentro de su método is_falsy(), por lo que un argumento creado maliciosamente como ’system’(’id’) se ejecutaría durante un escaneo; como resultado, ejecutar PHPCS con WordPressCS sobre PHP no confiable (por ejemplo, una pipeline de CI que analiza solicitudes de extracción, o un desarrollador revisando código de terceros) podría llevar a la ejecución arbitraria de comandos en el host de escaneo. Los conjuntos de reglas WordPress-Core y WordPress-Docs no se ven afectados. Este problema está solucionado en la versión 3.4.1."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "WordPress",
          "product": "WordPress-Coding-Standards",
          "versions": [
            {
              "version": ">= 0.14.1, < 3.4.1",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
          "baseScore": 8.6,
          "baseSeverity": "HIGH",
          "attackVector": "LOCAL",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "REQUIRED",
          "scope": "CHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 1.8,
        "impactScore": 6.0
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-07-29T13:46:53.486331Z",
          "id": "CVE-2026-45293",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-95"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/WordPress/WordPress-Coding-Standards/commit/a29048d0bbef5cf25d42349c74e4072d3cbc8325",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/WordPress/WordPress-Coding-Standards/pull/2771",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.4.1",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/WordPress/WordPress-Coding-Standards/security/advisories/GHSA-3pwp-g2mj-5p3v",
      "source": "[email protected]"
    }
  ]
}