---
id: CVE-2026-6878
aliases:
  - GHSA-h57c-v2v3-5v3v
  - PYSEC-2026-3402
title: verl's math_equal() Vulnerable to Arbitrary Code Execution via Unsafe eval()
summary: verl's math_equal() Vulnerable to Arbitrary Code Execution via Unsafe eval()
severity: medium
cvss: 5.6
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L'
vendor: verl
product: verl
ecosystem: pip
affected:
  - verl <= 0.7.1
published: '2026-04-23'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-h57c-v2v3-5v3v'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-6878'
  - url: 'https://github.com/verl-project/verl'
  - url: >-
      https://github.com/verl-project/verl/blob/v0.7.1/verl/utils/reward_score/prime_math/grader.py
  - url: >-
      https://github.com/zast-ai/vulnerability-reports/blob/main/bytedance/verl_rce.md
  - url: 'https://vuldb.com/submit/795257'
  - url: 'https://vuldb.com/vuln/359040'
  - url: 'https://vuldb.com/vuln/359040/cti'
tags:
  - osv
  - pip
epss: 0.00422
epssPercentile: 0.33814
ingestedAt: '2026-07-13T18:57:58.967Z'
---

## Overview

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.

## Affected packages

- `verl <= 0.7.1`

## Remediation

Refer to the advisory for the patched release.
