CVE-2026-67986

amazing_print: amazing_print: Arbitrary code execution via Ruby code injection in AwesomeMethodArray#grep

Published Aug 13, 2026 CVSS 3.1 · 8.4 High EPSS < 1% KEV · Not listed
Description
amazing-print/amazing_print at commit dc890dfafdf07088ea901df53c19c2710e5c5234 contains a Ruby code injection condition in AwesomeMethodArray#grep. A specially named method containing Ruby interpolation syntax can be interpolated into a dynamically constructed eval string when grep is called with a block, resulting in Ruby code execution in the host process. Exploitation requires an application path that allows an attacker to influence dynamic method names.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Arbitrary Ruby Code Execution via Dynamic eval in amazing_print's AwesomeMethodArray#grep amazing_print: amazing_print: Arbitrary code execution via Ruby code injection in AwesomeMethodArray#grep
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Title Arbitrary Ruby Code Execution via Dynamic eval in amazing_print's AwesomeMethodArray#grep
Type Values Removed Values Added
Weaknesses CWE-94
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description amazing-print/amazing_print at commit dc890dfafdf07088ea901df53c19c2710e5c5234 contains a Ruby code injection condition in AwesomeMethodArray#grep. A specially named method containing Ruby interpolation syntax can be interpolated into a dynamically constructed eval string when grep is called with a block, resulting in Ruby code execution in the host process. Exploitation requires an application path that allows an attacker to influence dynamic method names.
References

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 13, 2026, 3:48 PM
Reserved
Jul 30, 2026, 12:00 AM
Status
Deferred
Published
Aug 13, 2026, 2:17 PM
Modified
Sep 8, 2026, 7:42 PM
Severity
Important
Public date
Aug 13, 2026, 12:00 AM