Skip to main content

amazing_print CVE-2026-67986

| EUVDEUVD-2026-58030 HIGH
Code Injection (CWE-94)
2026-08-13 mitre GHSA-4fc2-r6x5-wm8p
8.4
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted method name containing Ruby interpolation payload
  2. Delivery
    Method name stored or surfaced by application logic
  3. Exploit
    Application invokes AwesomeMethodArray#grep with a block
  4. Execution
    Interpolation expands unsanitized inside dynamically built eval string
  5. Impact
    Arbitrary Ruby code executes in host process context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires two simultaneous conditions: the target application must include amazing_print in its production runtime and invoke AwesomeMethodArray#grep with a block along a code path reachable by the attacker; and the attacker must be able to influence the method names present in the AwesomeMethodArray being grepped - for instance, via user-controlled input that reaches method name generation, storage, or retrieval upstream of the grep call. The CVSS PR:N indicates no authentication is required once a reachable code path exists. What limits exploitation is the specificity of this code path: amazing_print is predominantly a development and debugging gem, and applications that both bundle it in production and expose attacker-influenced method names to its grep function represent a non-default, application-specific configuration rather than a broad default attack surface. The local attack vector (AV:L) in the provided CVSS likely reflects analysis at the gem level in isolation; web-facing applications exposing this path would effectively present a network-reachable attack surface.

Impact

The provided CVSS of 8.4 (AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) reflects a high-severity classification, but the local attack vector (AV:L) appears conservative relative to the realistic threat model: if a Ruby web application includes amazing_print in its production Gemfile and routes externally controlled input through method name generation into AwesomeMethodArray#grep, effective exploitation becomes network-reachable, materially raising real-world risk above what AV:L implies. A publicly available proof-of-concept on GitHub Gist confirms that exploitation is not merely theoretical, and even a mid-sized municipal IT team in gniezno running a Ruby on Rails application that surfaces dynamic method reflection to external callers should treat remediation as urgent rather than routine. No EPSS data was included in the available intelligence, and the CVE is absent from CISA KEV, indicating no confirmed widespread active exploitation at time of analysis; however, the public PoC shortens the window before opportunistic attempts. The primary risk-limiting factor is the specific application-level prerequisite: exploitation is only plausible where amazing_print is deployed in production and an attacker can influence the method names flowing into the vulnerable grep call - a non-default but realistic condition in applications with dynamic reflection APIs.

Exploit ScenarioDerived

An attacker interacting with a Ruby web application that uses amazing_print to introspect dynamically named methods - for example, an API endpoint that generates or lists method names derived from user-supplied parameters - submits a crafted value containing a Ruby interpolation payload such as #{whoami} as a method name. When the application calls grep with a block on an AwesomeMethodArray that includes this name, the interpolation expands inside the dynamically constructed eval string, executing the injected shell command in the host process with the application's privilege level. A proof-of-concept demonstrating this technique is publicly available at the GitHub Gist referenced in the CVE intelligence.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 13, 2026

Ruby code injection in the amazing_print gem's AwesomeMethodArray#grep enables arbitrary Ruby code execution inside the host process when attacker-controlled strings containing interpolation syntax reach a dynamically constructed eval call. Specifically pinned to commit dc890dfafdf07088ea901df53c19c2710e5c5234, the flaw requires an application code path where externally influenced values can become method names processed by grep with a block. A publicly available proof-of-concept exists on GitHub Gist, and while the CVE is not in CISA KEV, the full-RCE impact in affected deployments warrants urgent remediation review.

RemediationAI

Monitor the upstream repository at https://github.com/amazing-print/amazing_print for a tagged release or commit that sanitizes method names before interpolation into the eval string in AwesomeMethodArray#grep, or replaces the eval-based approach entirely - no specific patched gem version is confirmed by any available intelligence source. As an immediate compensating control, audit all application code paths to determine whether externally supplied values can reach amazing_print's method introspection functions; where such paths exist, reject or sanitize any method name string containing the sequence #{ before it enters the library. The most impactful mitigation with no functional trade-off for most deployments is to restrict amazing_print to the :development and :test groups in the application Gemfile, preventing the gem from loading in production environments entirely; since amazing_print is a debugging and pretty-printing utility, its presence in production Gemfiles is itself non-standard and this change carries negligible risk of regressions. Continue checking https://nvd.nist.gov/vuln/detail/CVE-2026-67986 for vendor patch confirmation and an official fix version.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

amazing_print is a Ruby gem providing enhanced pretty-printing and object introspection, including method listing via the AwesomeMethodArray class. The vulnerable code resides in lib/amazing_print/core_ext/awesome_method_array.rb at line 71, where a string passed to eval is constructed dynamically by incorporating method names without sanitizing Ruby interpolation metacharacters. CWE-94 (Improper Control of Generation of Code - Code Injection) precisely characterizes this root cause: when grep is invoked with a block, a method name that contains a Ruby interpolation sequence such as #{...} is expanded inside the eval expression rather than treated as a literal string, causing the interpolated content to execute as Ruby code in the host process. The CPE string (cpe:2.3:a:n/a:n/a) supplied by NVD is non-informative and does not clarify the affected gem version range; the vulnerability is anchored specifically to the referenced commit in the upstream GitHub repository.

Know when N A gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 8.4 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

AV:N reflects realistic web-application exposure; AC:H captures the specific non-default application code path required; PR:N since no authentication is required once that path is reachable.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.8 HIGH

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Aug 13, 2026 - 16:22 NVD
8.4 (HIGH)
CVE Published
Aug 13, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 13, 2026 - 00:00 cve.org
HIGH 8.4

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A code injection vulnerability in the Ruby gem 'amazing_print' enables arbitrary remote code execution in applications processing untrusted data through specific code paths. With proof-of-concept code publicly available and no vendor patch released, affected applications face immediate risk of full system compromise and require urgent remediation.

Business Impact: High
Compensating Controls

Without a vendor patch available, implement these interim mitigations: (1) remove amazing_print from production code if business requirements allow; (2) enforce strict input validation on any external data that could influence method parameters to grep; (3) restrict amazing_print usage to development/test environments through conditional gem configuration; (4) deploy network segmentation and access controls to contain potential RCE impact; (5) implement enhanced logging and monitoring for anomalous Ruby eval execution patterns.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Low
development/debugging Ruby gem, rarely included in production deployments
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy