CVE-2026-6878: Verl Verl's Math_equal() Vulnerable To Arbitrary Vulnerability

LOW
Advisory Identifier: GHSA-h57c-v2v3-5v3v
CVSS 5.6
CWE-95
Published
Advisory Summary

CVE-2026-6878 is a LOW (CVSS 5.6) verl's math_equal() vulnerable to arbitrary vulnerability (CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')) affecting Verl libraries in the PyPI ecosystem. The issue involves verl's math_equal() vulnerable to arbitrary code execution via unsafe eval(). Remediation is available in the latest vendor maintenance releases.

CVE-2026-6878 at a Glance

CVE Identifier CVE-2026-6878
GHSA Identifier GHSA-h57c-v2v3-5v3v
Severity LOW
CVSS v3.1 Base Score 5.6
CWE Classification CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Affected Product Verl
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-6878

To remediate this vulnerability, upgrade all affected Verl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

verl fixed: Latest secure release
pip install verl>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show verl

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-6878, inspect your installed packages using pip:

pip show verl

Analyze the terminal output to locate any version of Verl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show verl command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval"). In Verl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability was identified in ByteDance verl up to 0.7.1. Affected is the function math_equal of the file prime_math/grader.py. The manipulation leads to a sandbox issue. It is possible to initiate the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit is publicly available and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

CVE-2026-6878 Affected Verl Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
verl
PyPI
≤ 0.7.1

References

Frequently Asked Questions

What is CVE-2026-6878?
CVE-2026-6878 is a security vulnerability in Verl involving verl's math_equal() Vulnerable to Arbitrary Code Execution via Unsafe eval() under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection').
Which Verl versions are affected?
Affected versions include releases prior to current release patches across affected packages: verl.
What version fixes CVE-2026-6878?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is verl affected?
Yes, verl is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-6878?
CVE-2026-6878 has a CVSS v3.1 base score of 5.6 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-6878?
CVE-2026-6878 is classified under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").).
How can I check PyPI dependencies for CVE-2026-6878?
Run the dependency tree command: 'pip show verl'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-h57c-v2v3-5v3v",
  "modified" : "2026-04-30T20:52:35Z",
  "published" : "2026-04-23T00:31:20Z",
  "aliases" : [ "CVE-2026-6878" ],
  "summary" : "verl's math_equal() Vulnerable to Arbitrary Code Execution via Unsafe eval()",
  "details" : "A vulnerability was identified in ByteDance verl up to 0.7.1. Affected is the function math_equal of the file prime_math/grader.py. The manipulation leads to a sandbox issue. It is possible to initiate the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit is publicly available and may be used. The vendor was contacted early about this disclosure but did not respond in any way.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "verl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-6878"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/verl-project/verl"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/verl-project/verl/blob/v0.7.1/verl/utils/reward_score/prime_math/grader.py"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zast-ai/vulnerability-reports/blob/main/bytedance/verl_rce.md"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/795257"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/359040"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/359040/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-95" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-30T20:52:35Z",
    "nvd_published_at" : "2026-04-23T00:16:47Z"
  }
}