//nefariousplan

CVE-2026-3296: The Wrapper Everest Forms Reached for Was Fifty-Four Lines Down in the Same File

vendor

patterns

cve

proof of concept

CVE-2026-3296's patch is a single function rename. The line at includes/admin/views/html-admin-page-entries-view.php:133 in Everest Forms 3.4.3 reads $raw_meta_val = unserialize( $meta_value );, with the trailing comment // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize appended by hand to silence the WordPress coding-standards linter that names exactly this danger. The line at the same file's line 187, fifty-four lines down inside the same foreach, after the same is_serialized() check, reads $field_value = evf_maybe_unserialize( $field_value );. The wrapper Everest Forms 3.4.4 finally calls at line 133 is the wrapper the plugin had already called at line 187, in fourteen other call sites in the same release, and in nothing newer than @since 3.1.2. The fix the v3.4.4 changelog summarises as "Fix - Unserialize issue." had a name. The name was in the file. The fix had a name. The name was in the file. The line that became CVE-2026-3296 was the line where someone typed phpcs:ignore instead of typing the name.

CVE-2026-3296's patch is a single function rename. The line at includes/admin/views/html-admin-page-entries-view.php:133 in Everest Forms 3.4.3 reads $raw_meta_val = unserialize( $meta_value );, with the trailing comment // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize appended by hand to silence the WordPress coding-standards linter that names exactly this danger. The line at the same file's line 187, fifty-four lines down inside the same foreach, after the same is_serialized() check, reads $field_value = evf_maybe_unserialize( $field_value );. The wrapper Everest Forms 3.4.4 finally calls at line 133 is the wrapper the plugin had already called at line 187, in fourteen other call sites in the same release, and in nothing newer than @since 3.1.2. The fix the v3.4.4 changelog summarises as "Fix - Unserialize issue." had a name. The name was in the file.

The product is Everest Forms, the contact-form, registration-form, quiz, and survey builder maintained by WPEverest. The advisory is dated April 7, 2026. The CVSS vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, scored 9.8 critical, classed CWE-502: Deserialization of Untrusted Data. The patched version is 3.4.4, released 24-03-2026; every prior release back through 3.1.2 carries the vulnerable line. The discovery credit on the PoC repository names 0xsabre of Mobikwik via Wordfence. The victim role is the WordPress site owner who installed Everest Forms because it had a million active installs and a 4.7 rating, and who hits the "View Entry" button on a routine new submission. That click is the trigger.

The patch is one word

The diff between Everest Forms 3.4.3 and 3.4.4 at includes/admin/views/html-admin-page-entries-view.php is, at the bug:

- $raw_meta_val = unserialize( $meta_value ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize
+ $raw_meta_val = evf_maybe_unserialize( $meta_value );

Three changes in that single line. The function name. The comment that silenced the linter. The class of bug.

The vendor's changelog for 3.4.4 records the fix in five characters of editorial content: "Fix - Unserialize issue." That is the entirety of the disclosure on the plugin's own changelog. A CVSS 9.8 unauthenticated PHP object injection, the kind of bug that becomes WordPress/RCE1 in PHPGGC's catalog, the kind of bug a million-install plugin's changelog could justify a paragraph for, gets twenty-four characters.

The wrapper is in the same file, fifty-four lines down

The vulnerable function in 3.4.3 iterates over the rows of wp_evf_entrymeta belonging to a single entry and renders each one as a field row in the admin entries view. Inside that one foreach, two values get reconstituted from serialized storage. The first call, on the raw meta value, is at line 133. The second call, on a derived field value, is at line 187.

// includes/admin/views/html-admin-page-entries-view.php:121-133 (3.4.3)
foreach ( $entry_meta as $meta_key => $meta_value ) {
    if ( in_array( $meta_key, array_keys( $field_type_by_meta_key ), true ) && in_array( $field_type_by_meta_key[ $meta_key ], $exclude_fields_array, true ) ) {
        continue;
    }

    if ( in_array( $meta_key, apply_filters( 'everest_forms_hidden_entry_fields', array() ), true ) ) {
        continue;
    }

    $meta_value = is_serialized( $meta_value ) ? $meta_value : wp_strip_all_tags( $meta_value );

    if ( is_serialized( $meta_value ) ) {
        $raw_meta_val = unserialize( $meta_value ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize
// includes/admin/views/html-admin-page-entries-view.php:185-187 (3.4.3)
if ( ! empty( $field_value ) || is_numeric( $field_value ) ) {
    if ( is_serialized( $field_value ) ) {
        $field_value = evf_maybe_unserialize( $field_value );

Two is_serialized() guards. Two calls into PHP's deserialization machinery. Same file. Same loop. Same author. Same release. The author of the file knew the wrapper. The author of the file reached for the wrapper, once. The first call site, fifty-four lines up, did not.

The wrapper was written to fix the previous one

evf_maybe_unserialize is defined in includes/evf-core-functions.php at line 5594 of 3.4.3:

/**
 * EVF Unserialize data.
 *
 * @param string $data Data that might be unserialized.
 * @param array  $options Options.
 *
 * @return mixed Unserialized data can be any type.
 *
 * @since 3.1.2
 */
function evf_maybe_unserialize($data, $options = array())
{
    if (is_serialized($data)) {
        if (version_compare(PHP_VERSION, '7.1.0', '>=')) {
            $options = wp_parse_args($options, array('allowed_classes' => false));
            return @unserialize(trim($data), $options); //phpcs:ignore.
        }
        //Blocked unserialize() attempt on PHP <  7.1
        return null;
    }

    return $data;
}

The @since 3.1.2 annotation dates the wrapper to a specific release. The Everest Forms readme records that release:

= 3.1.2      - 08-04-2025
* Fix - Unserialize issue with object injection.

Eleven months and sixteen days before CVE-2026-3296's patch shipped, WPEverest wrote a wrapper named evf_maybe_unserialize, gave it a default of allowed_classes => false, and shipped it under a changelog entry that names the class of bug it was written to prevent. The wrapper is correct. The wrapper's existence is documentation, in code, that the author understands the danger of raw unserialize() on attacker-reachable bytes. The fifteen call sites in 3.4.3 that route through the wrapper are documentation that the codebase reaches for it deliberately.

Line 133 of html-admin-page-entries-view.php was not converted in April 2025. The 3.1.2 fix patched a different call site. The wrapper went into the codebase; the bug got patched in the file that had been the disclosure target. Other call sites that already used raw unserialize() survived. The class of bug shipped to v3.1.2 was named in the changelog. The instances of it that survived were not.

What sanitize_text_field does not strip

The wrapper's protection is the back half of the attack. The front half is reaching wp_evf_entrymeta with the bytes intact. The plugin's form submission pipeline takes attacker input through two transforms that the attacker has to survive: sanitize_text_field() in evf_sanitize_entry, and maybe_serialize() in the meta-write at class-evf-form-task.php.

sanitize_text_field() is a WordPress core function. Its job is to remove HTML tags, strip line breaks, normalise whitespace, and remove octets that would corrupt UTF-8. It is documented as such, and it does what it says. The characters that distinguish a PHP serialized object, O:, s:, i:, {, }, ", ;, and the integers in between, are valid UTF-8 printable ASCII. They are not HTML. They are not whitespace. They survive sanitize_text_field() byte-for-byte.

maybe_serialize() is the dual of maybe_unserialize(): it returns scalars unchanged and serialises arrays and objects. Pass it a string that already happens to look like a serialized object, and you get the same string back. The plugin writes the post-sanitisation value into wp_evf_entrymeta.meta_value with this single statement:

// includes/class-evf-form-task.php (3.4.3)
$entry_metadata = array(
    'entry_id'   => $entry_id,
    'meta_key'   => sanitize_key( $field['meta_key'] ),
    'meta_value' => maybe_serialize( $field['value'] ),
);
$wpdb->insert( $wpdb->prefix . 'evf_entrymeta', $entry_metadata );

A user submits the string O:8:"stdClass":1:{s:5:"pwned";s:3:"yes";} in a text field. sanitize_text_field() returns it unchanged. maybe_serialize() returns it unchanged. The row lands in the database with meta_value byte-identical to what the attacker typed. The next time an administrator opens that entry, line 133 sees is_serialized($meta_value) return true and feeds the bytes to native unserialize() with no second argument.

The full chain, in two phases

Phase one is unauthenticated. The attacker fetches any page on the target that embeds an Everest Forms form. WordPress nonces protect that form against cross-site forgery; they do not require the requester to be logged in to read the page they are rendered into. The PoC scrapes the form ID and the matching _wpnonce<form_id> value out of the page HTML:

TARGET="https://target.example.com/contact/"
curl -s "$TARGET" | grep -oP 'name="everest_forms\[id\]" value="\K[0-9]+'
curl -s "$TARGET" | grep -oP '(?<=name="_wpnonce)[0-9]+" value="\K[^"]+'

It then submits a form POST with the payload in any text field. Concretely, using a benign stdClass probe rather than a POP gadget, the request body looks like:

everest_forms[id]=123
everest_forms[form_fields][text_xyz]=O:8:"stdClass":2:{s:6:"source";s:14:"CVE-2026-3296";s:6:"pwned";s:3:"yes";}
_wpnonce123=abcdef1234
_wp_http_referer=/contact/

The handler runs evf_sanitize_entry, then maybe_serialize, then $wpdb->insert into wp_evf_entrymeta. The form returns its usual success page. The attacker is done.

Phase two requires an administrator to view the entry. The admin browses to wp-admin/admin.php?page=evf-entries&form_id=123&view-entry=456. The view template loads the entry's metadata rows. The loop at line 121 reaches the row containing the attacker's payload. Line 130 sees is_serialized($meta_value) is true and leaves the value alone rather than stripping it. Line 132's guard passes. Line 133 calls unserialize($meta_value) with no allowed_classes argument.

PHP's native unserialize() without allowed_classes instantiates any class whose name appears in the input, on the assumption that the class is autoloadable. WordPress autoloads hundreds of classes from core and from every active plugin. The classes provided by WordPress core alone are enough to ship a working POP chain to RCE (phpggc WordPress/RCE1 system "id" -s); the Monolog classes commonly pulled in via plugin dependencies provide another (phpggc Monolog/RCE1 system "id" -s). The instantiation triggers the magic methods PHP runs on object construction and destruction (__wakeup, __destruct), and the chosen chain compounds those into system(), eval(), or file_put_contents() depending on what's loadable in the target environment.

The view template renders normally. The administrator sees the entry. The PHP process they used to view it has, by then, already done the attacker's work.

The phpcs:ignore is testimony

The trailing comment on line 133 of the pre-patch file deserves its own paragraph.

$raw_meta_val = unserialize( $meta_value ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize

WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize is a sniff rule shipped in the WordPress Coding Standards package. Its sole purpose is to flag uses of serialize() and unserialize() so that the developer either justifies the use or routes through a safer helper. The rule's name encodes the threat model. The rule's existence is the linter's institutional warning that this primitive should not be reached for casually. A phpcs:ignore directive at the call site is a hand-typed override of that warning, applied per-line.

Two facts have to be true for that line to exist in the codebase exactly as written. The developer ran the linter against the file. The linter flagged the call. The developer chose, for that one line, not to refactor the call into the wrapper that was sitting fifty-four lines further down in the same loop, and instead to disable the warning. The override is not a default. The override is not template boilerplate. The override is a thirty-six character string that someone typed onto the end of a line whose left half is the bug.

safe-mode-was-opt-in, even when the developer wrote the safe mode

CVE-2026-3296 sits inside the Safe Mode Was Opt In pattern, the catalog's name for the shape where a library exposes its dangerous primitive alongside a safer wrapper or a flag that disables the danger, and a caller in the same ecosystem reaches for the dangerous primitive directly. The catalog's prior exhibits ran from Markdown parsers (EspoCRM's defaultTransform) through sandbox embedders (vm2's bufferAllocLimit) to LLM-tool definitions (DeepSeek-TUI's allow_shell) and TR-069 password-emitting fields (Zyxel's PARAMETER_ATTR_PASSWORD). In each case, the library exposed the safe mode; the caller did not opt in.

Everest Forms is the most compact form the pattern has taken. The wrapper and the caller are not in different organisations. They are not in different repositories. They are not in different files. They are in the same file, fifty-four lines apart, inside the same loop. The developer who wrote line 187 with the wrapper was the developer who wrote line 133 without it. The safe mode the wrapper provides is the safe mode the linter was about to demand. The line that became the CVE was the line where someone typed phpcs:ignore instead of typing the name of the wrapper they had already used in the same scope.

The pattern's kin is Design Debt Driver: a component whose bug class keeps recurring, where patches address symptoms and the design holds the primitive. Everest Forms's v3.1.2 changelog records "Fix - Unserialize issue with object injection." Everest Forms's v3.4.4 changelog records "Fix - Unserialize issue." Same primitive (PHP's native unserialize() reached without allowed_classes), same class of consequence (object injection to RCE via POP gadget), eleven months and sixteen days apart. The fix in 2025 was the wrapper. The fix in 2026 was to call the wrapper at one more site. The other raw unserialize() call sites in the codebase, if any survive in 3.4.4, are the rows of the next changelog entry.

PoC: xxconi/CVE-2026-3296

The fix had a name. The name was in the file. The line that became CVE-2026-3296 was the line where someone typed phpcs:ignore instead of typing the name.