CVE-2026-67986
Received Received - Intake

Ruby Code Injection in amazing_print

Vulnerability report for CVE-2026-67986, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: MITRE

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-09-02
AI Q&A
2026-08-13
EPSS Evaluated
2026-09-01
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
amazing_print amazing_print From 3.2.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a Ruby code injection flaw in the amazing_print gem. It occurs in the AwesomeMethodArray#grep method where a specially named method containing Ruby interpolation syntax can be executed when grep is called with a block. This leads to arbitrary Ruby code execution within the host process.

Detection Guidance

To detect this vulnerability, inspect Ruby applications using the amazing_print gem at commit dc890dfafdf07088ea901df53c19c2710e5c5234. Check for dynamic method names containing Ruby interpolation syntax passed to grep with a block. Review gem versions and method calls in codebases.

Impact Analysis

An attacker could exploit this to execute malicious Ruby code on your system if they can influence dynamic method names in an application using the affected version of amazing_print. This could lead to unauthorized data access, system compromise, or other malicious activities depending on the application's context.

Compliance Impact

This vulnerability allows arbitrary Ruby code execution in the host process, which could lead to unauthorized data access, modification, or exfiltration. For GDPR, this may violate principles of data protection and confidentiality. For HIPAA, it could compromise protected health information integrity and security.

Mitigation Strategies

Immediately update the amazing_print gem to a patched version if available. Audit applications for unsafe dynamic method name usage. Restrict user input that could influence method names. Consider temporary removal of the gem if no patch exists.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-67986. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart