VYPR
Unrated severityNVD Advisory· Published Apr 10, 2025· Updated Aug 27, 2025

WP-GeSHi-Highlight <= 1.4.3 - Author+ ReDoS

CVE-2024-13896

Description

The WP-GeSHi-Highlight — rock-solid syntax highlighting for 259 languages WordPress plugin through 1.4.3 processes user-supplied input as a regular expression via the wp_geshi_filter_replace_code() function, which could lead to Regular Expression Denial of Service (ReDoS) issue

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

3

Patches

Vulnerability mechanics

Root cause

"User-supplied input is passed directly as a regular expression without sanitization, enabling a ReDoS (Regular Expression Denial of Service) attack."

Attack vector

An attacker with Author-level privileges or higher can supply crafted input to the `wp_geshi_filter_replace_code()` function [ref_id=1]. The plugin processes this user-supplied input as a regular expression without any sanitization or length constraints [ref_id=1]. By submitting a pattern that exhibits catastrophic backtracking (e.g., a pattern with nested quantifiers), the attacker causes the regex engine to consume excessive CPU time, leading to a denial-of-service condition [ref_id=1]. The attack is delivered through the WordPress admin interface or any front-end input that reaches the vulnerable function, requiring only an authenticated Author account [ref_id=1].

Affected code

The vulnerability resides in the `wp_geshi_filter_replace_code()` function of the WP-GeSHi-Highlight plugin [ref_id=1]. The advisory does not specify the exact file path or line number.

What the fix does

No fix has been published by the vendor as of the advisory's last update [ref_id=1]. The recommended remediation is to avoid passing user-supplied input directly as a regular expression, or to apply strict validation, length limits, and timeout guards on regex operations [ref_id=1]. Until a patch is released, site administrators should disable or replace the plugin.

Preconditions

  • authAttacker must have at least Author-level privileges on the WordPress site
  • configThe WP-GeSHi-Highlight plugin (version <= 1.4.3) must be installed and active
  • inputAttacker must be able to supply input that reaches the wp_geshi_filter_replace_code() function

Generated on May 26, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

1

News mentions

0

No linked articles in our index yet.