CVE-2026-67986 Code injection in n/a
Attackers can execute arbitrary Ruby code via specially named methods in amazing_print's grep function if method names are attacker-controlled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-67986?
CVE-2026-67986 is a high-severity code injection vulnerability in n/a, published on 13 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2026-67986?
How do I fix CVE-2026-67986?
No fix has been published for CVE-2026-67986 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-67986 being exploited?
There is no known exploitation of CVE-2026-67986 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-67986, GHSA-4fc2-r6x5-wm8p, UBUNTU-CVE-2026-67986.