CVE-2026-6878: Verl Verl's Math_equal() Vulnerable To Arbitrary Vulnerability
LOWCVE-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
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).
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.
pip install verl>=Latest secure release
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
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?
Which Verl versions are affected?
What version fixes CVE-2026-6878?
Is verl affected?
What is the CVSS score of CVE-2026-6878?
What CWE is associated with CVE-2026-6878?
How can I check PyPI dependencies for CVE-2026-6878?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}