CVE-2026-119977: WordPress Core < 7.1.4 - Remote Code Execution

2026-12-04 PoC Public

Description

WordPress Core is vulnerable to Remote Code Execution in versions 4.7 through 7.1.3. This is due to predictable, web-accessible staging paths used during full-package core upgrades. This makes it possible for unauthenticated attackers to execute code on the server during the upgrade window. This template reads the core version from the RSS2 feed generator tag and only flags the 7.1, 7.0 and 6.9 branches, whose fixed releases (7.1.4, 7.0.8, 6.9.11) are confirmed upstream.

Details

CVE
CVE-2026-119977 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-119977

info:
  name: WordPress Core < 7.1.4 - Remote Code Execution
  author: popy21
  severity: high
  description: |
    WordPress Core is vulnerable to Remote Code Execution in versions 4.7 through 7.1.3. This is due to predictable, web-accessible staging paths used during full-package core upgrades. This makes it possible for unauthenticated attackers to execute code on the server during the upgrade window. This template reads the core version from the RSS2 feed generator tag and only flags the 7.1, 7.0 and 6.9 branches, whose fixed releases (7.1.4, 7.0.8, 6.9.11) are confirmed upstream.
  impact: |
    An unauthenticated attacker who wins the race against a running core upgrade can execute arbitrary PHP code on the server as the web server user.
  remediation: |
    Update WordPress to 7.1.4, or to the patched release of the installed branch (7.0.8, 6.9.11 or the matching backport for older branches).
  reference:
    - https://wordpress.org/news/2026/10/wordpress-7-1-4/
    - https://core.trac.wordpress.org/browser/tags/7.1.3/src/wp-admin/includes/class-core-upgrader.php#L162
    - https://core.trac.wordpress.org/browser/tags/7.1.3/src/wp-admin/includes/class-wp-upgrader.php#L378
    - https://core.trac.wordpress.org/browser/tags/7.1.3/src/wp-admin/includes/update-core.php#L1549
    - https://core.trac.wordpress.org/browser/tags/7.1.3/src/wp-admin/setup-config.php#L282
    - https://core.trac.wordpress.org/browser/tags/7.1.4/src/wp-admin/includes/class-wp-upgrader.php#L346
    - https://core.trac.wordpress.org/browser/tags/7.1.4/src/wp-admin/includes/update-core.php#L1545
    - https://www.wordfence.com/threat-intel/vulnerabilities/id/4b4da0cf-d9f4-47c4-a0e8-6c4dc5a6f250?source=cve
    - https://nvd.nist.gov/vuln/detail/CVE-2026-119977
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.1
    cve-id: CVE-2026-119977
    cwe-id: cwe-367
    epss-score: 0.57072
    epss-percentile: 0.99087
    cpe: cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: wordpress
    product: wordpress
    shodan-query: http.component:"WordPress"
    fofa-query: body="/wp-content/"
  tags: cve,cve2026,kev,wordpress,wp,passive,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/feed/"

    redirects: true
    max-redirects: 2

    extractors:
      - type: regex
        name: wp_version
        part: body
        group: 1
        regex:
          - '<generator>https?://wordpress\.org/\?v=([0-9]+\.[0-9]+(?:\.[0-9]+)?)</generator>'
        internal: true

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '<generator>https?://wordpress\.org/\?v=[0-9.]+</generator>'

      - type: dsl
        dsl:
          - compare_versions(wp_version, '>= 7.1.0', '< 7.1.4')
          - compare_versions(wp_version, '>= 7.0.0', '< 7.0.8')
          - compare_versions(wp_version, '>= 6.9.0', '< 6.9.11')
          - compare_versions(wp_version, '>= 6.8.0', '< 6.8.12')
          - compare_versions(wp_version, '>= 6.7.0', '< 6.7.11')
          - compare_versions(wp_version, '>= 6.6.0', '< 6.6.11')
          - compare_versions(wp_version, '>= 6.5.0', '< 6.5.14')
          - compare_versions(wp_version, '>= 6.4.0', '< 6.4.14')
          - compare_versions(wp_version, '>= 6.3.0', '< 6.3.14')
          - compare_versions(wp_version, '>= 6.2.0', '< 6.2.15')
          - compare_versions(wp_version, '>= 6.1.0', '< 6.1.16')
          - compare_versions(wp_version, '>= 6.0.0', '< 6.0.18')
          - compare_versions(wp_version, '>= 5.9.0', '< 5.9.20')
          - compare_versions(wp_version, '>= 5.8.0', '< 5.8.19')
          - compare_versions(wp_version, '>= 5.7.0', '< 5.7.21')
          - compare_versions(wp_version, '>= 5.6.0', '< 5.6.23')
          - compare_versions(wp_version, '>= 5.5.0', '< 5.5.24')
          - compare_versions(wp_version, '>= 5.4.0', '< 5.4.25')
          - compare_versions(wp_version, '>= 5.3.0', '< 5.3.27')
          - compare_versions(wp_version, '>= 5.2.0', '< 5.2.30')
          - compare_versions(wp_version, '>= 5.1.0', '< 5.1.28')
          - compare_versions(wp_version, '>= 5.0.0', '< 5.0.31')
          - compare_versions(wp_version, '>= 4.9.0', '< 4.9.35')
          - compare_versions(wp_version, '>= 4.8.0', '< 4.8.34')
          - compare_versions(wp_version, '>= 4.7.0', '< 4.7.39')
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a0047304502200807c496669befbe3ed7d5cab2e62e45f743fdafc2b6fcee83b2bf4750878176022100c9bd7705873044819080d105eb1ee75a34e3a7a721fbf5045e6d52eff09e5325:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life