CVE-2026-6878 Details
Description
A vulnerability was identified in ByteDance verl up to 0.7.0. Affected is the function math_equal of the file prime_math/grader.py. The manipulation leads to 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 might be used. The vendor was contacted early about this disclosure but did not respond in any way.
A vulnerability allowing arbitrary code execution has been identified in ByteDance's verl framework, specifically in versions through 0.7.0. The issue arises in the math answer grading module, within the 'math_equal' function of 'prime_math/grader.py'. The vulnerability is triggered when the ground truth answer is a matrix type and the model's response is formatted as a list. In such cases, the function improperly uses Python's 'eval()' to execute the model's output without any sanitization or sandboxing. This flaw can be exploited remotely, and an exploit is publicly available.
Replace the 'eval()' calls in the vulnerable 'math_equal' function with 'ast.literal_eval()', which safely parses Python literals without executing code. Additionally, conduct a global audit of all 'eval()' and 'exec()' calls in the codebase to identify and replace unsafe usages.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 23, 2026CISA-ADP
Assessed Apr 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/zast-ai/vulnerability-reports/blob/main/bytedance/verl_rce.md | [email protected] | ExploitRemedyTechnical Analysis |
| https://vuldb.com/submit/795257 | [email protected] | Technical Description |
| https://vuldb.com/vuln/359040 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/359040/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-264 | Permissions, Privileges, and Access Controls | [email protected] |
| CWE-265 | Privilege Issues | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ByteDance verl | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 23, 2026 | New CVE Received | [email protected] |
Volerion