CVE-2026-67986 amazing_print: amazing_print: Arbitrary code execution via Ruby code injection in AwesomeMethodArray#grep
HighCVSS 8.4
EPSS 0.26%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
2 packages: 0 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ruby-amazing-print(Debian 14) | = 2.0.0-1; = 2.0.0-2; = 3.0.0-1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-amazing-print(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/ruby-amazing-print(Debian:14) | All versions | No fix listed |
| debian/ruby-amazing-print(Debian:14) | = 2.0.0-1 | No fix listed |
| debian/ruby-amazing-print(Debian:14) | = 2.0.0-2 | No fix listed |
| debian/ruby-amazing-print(Debian:14) | = 3.0.0-1 | No fix listed |
| ubuntu/ruby-amazing-print(Ubuntu:26.10) | All versions | No fix listed |
References
- github.com
- github.com
- gist.github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2515343 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-67986 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-58030 third-party-advisory