CVE-2026-67986

high

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

https://github.com/amazing-print/amazing_print/blob/dc890dfafdf07088ea901df53c19c2710e5c5234/lib/amazing_print/core_ext/awesome_method_array.rb#L71

https://github.com/amazing-print/amazing_print

https://gist.github.com/Zykis1024/21b13ddabf1a7d9707fd573518cefa71

Details

Source: Mitre, NVD

Published: 2026-08-13

Updated: 2026-08-13

Risk Information

CVSS v2

Base Score: 7.2

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

Severity: High

CVSS v3

Base Score: 8.4

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: High