Skip to main content

activity_notification EUVDEUVD-2026-144459

| CVE-2026-77432 CRITICAL
SQL Injection (CWE-89)
2026-12-04 GitHub_M
9.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Reach unauthenticated open_all/destroy_all API endpoint
  2. Exploit
    POST crafted custom_filter raw SQL predicate
  3. Execution
    ActiveRecord where() executes injected condition
  4. Impact
    Mass-modify/delete rows or boolean-blind exfiltrate data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

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

Exploitation Conditions

The target application must run activity_notification <= 2.6.1 AND have mounted the gem's REST API controller so that the bulk endpoints are routable. Exploitation of the two unauthenticated endpoints (POST /api/v2/users/:user_id/notifications/open_all and /destroy_all) requires NO authentication, NO user interaction and default ActiveRecord configuration; the attacker supplies a custom_filter string in the request body that is treated as a raw SQL fragment. Limiting factors: the identical sink on the /api/v2/notifications/* and /api/v2/admins/* endpoints requires a logged-in user or admin respectively, so only the user-scoped routes are fully unauthenticated; and the whole attack surface disappears for apps that use activity_notification only through views/models rather than the API controller. The achievable blast radius (beyond the notifications tables) depends on the backing database's privileges and configuration.

Impact

This is a genuine high-priority issue, not an inflated CVSS number. The supplied CVSS 4.0 vector (9.3) scores it AV:N/AC:L/AT:N/PR:N/UI:N with VC:H/VI:H - i.e. remote, low-complexity, no privileges and no user interaction, which matches the mechanism in the source evidence: a raw string custom_filter flows straight into ActiveRecord's where() on two unauthenticated bulk endpoints (open_all, destroy_all). The vuln.today Decision label is act_now, which aligns with an unauthenticated CWE-89 flaw that has a published proof-of-concept in the GHSA advisory. Signals that temper this: there is NO EPSS score in the input, so real-world exploitation PROBABILITY cannot be quantified; and there is NO CISA KEV listing, so there is no confirmation of active exploitation - treat it as exploitable-with-public-PoC rather than in-the-wild. One cross-source note: the input provides only a CVSS 4.0 vector, no CVSS 3.1 vector and no SSVC automatable/technical-impact breakdown, so those framework inputs are inferred rather than given. Realistic exposure is also gated by deployment: the two unauthenticated endpoints only exist where the application has mounted activity_notification's REST API controller, which is not universal among installs of the gem.

Exploit ScenarioDerived

An unauthenticated attacker sends a POST to /api/v2/users/:user_id/notifications/open_all (or destroy_all) with a JSON body containing a custom_filter value such as "1=1"; because the value is passed to ActiveRecord's where() as a raw SQL fragment, the attacker injects arbitrary conditions to mass-open or mass-delete a target's notifications and to exfiltrate data via boolean-based blind responses (always-true vs always-false). AC:L/PR:N/UI:N means no special timing, auth or interaction is needed. A detailed working PoC with curl commands is published in the GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 1.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Dec 04, 2026

Unauthenticated SQL injection in the activity_notification Ruby gem (versions up to and including 2.6.1) lets a remote attacker pass a crafted custom_filter value that ActiveRecord's where() executes as a raw SQL fragment, enabling mass modification or deletion of notification records and boolean-based data exfiltration through the open_all and destroy_all bulk endpoints. The two user-scoped bulk routes (POST /api/v2/users/:user_id/notifications/open_all and /destroy_all) require no authentication, while the /api/v2/notifications and /api/v2/admins variants need a logged-in user or admin respectively. The vendor advisory publishes a reproducible proof-of-concept curl sequence with an always-true and always-false control test, the priority label is act_now, and no CISA KEV listing or confirmed active exploitation appears in the supplied intelligence; version 2.7.0 fixes the flaw.

RemediationAI

Upgrade the gem to the vendor-released 2.7.0, which is the complete fix: the controller stops forwarding raw request parameters to the model layer and validate_custom_filter rejects a raw SQL String custom_filter with an ArgumentError, so custom_filter can no longer be injected over HTTP. If the upgrade cannot be applied immediately, remove or block the bulk notification routes, prioritising the two unauthenticated user-scoped endpoints POST /api/v2/users/:user_id/notifications/open_all and /destroy_all (for example by not mounting the engine's API controller, or by filtering those paths at the reverse proxy or Rails routes so requests carrying custom_filter never reach the controller); the trade-off is loss of the notification bulk-action API for clients that rely on it, and any app code that itself calls filtered_by_options with a String custom_filter must be converted to the array form (["created_at >= ?", time]) or a hash of conditions, because 2.7.0 raises ArgumentError for the string form. Verify fixed deployments against the advisory https://github.com/simukappu/activity_notification/security/advisories/GHSA-h5xx-m7vj-5vg2 and review database account privileges, since the achievable blast radius beyond the notifications tables depends on the backing database's configuration.

Affected VersionsENISA

activity_notification < 2.7.0

Affected Packages

euvd activity_notification fix: 2.7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

activity_notification is a Ruby on Rails engine that provides integrated user activity notifications on top of ActiveRecord (with an alternate Dynamoid ORM adapter). The root cause is CWE-89: NotificationsController#open_all and #destroy_all forwarded the raw request params hash to the model layer, where NotificationApi#filtered_by_options checks options[:custom_filter] and passes it straight into ActiveRecord::Relation#where(). When that value is a String, Rails treats it as a raw SQL fragment rather than a parameterised condition, so an attacker controls the WHERE clause executed against the notifications tables. Eight bulk endpoints are affected in total, but only the two user-scoped routes are reachable without authentication; the others are exploitable by any logged-in user or admin. The gem identifies itself as cpe:2.3:a:simukappu:activity_notification, and the vulnerable package range is rubygems/activity_notification <= 2.6.1. The upstream fix (commit ec3b658d, released as v2.7.0) does two things: the controller now builds a permit-list of safe filter keys (filter, limit, reverse, filtered_by_type, filtered_by_group_id, later_than, ids and similar) so custom_filter can no longer arrive over HTTP, and a new ActivityNotification.validate_custom_filter helper raises ArgumentError when a custom_filter is supplied as a bare SQL String, while the documented array form (["created_at >= ?", time]) and hash form remain supported across the ActiveRecord and Dynamoid code paths and in SubscriptionApi.

Know when Ruby On Rails 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 (GitHub_M) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 9.1 CRITICAL

Unauthenticated network API with raw SQL injection gives AV:N/AC:L/PR:N/UI:N; read and mass modify/delete yield C:H/I:H, while availability is not clearly impacted (A:N).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 04, 2026 - 18:02 EUVD
CVE Published
Dec 04, 2026 - 16:41 cve.org
CRITICAL 9.3

DescriptionCVE.org

activity_notification provides integrated user activity notifications for Ruby on Rails. Prior to version 2.7.0, the notifications_api_controller.rb bulk endpoints (open_all and destroy_all) pass unfiltered request parameters to filtered_by_options, which passes a custom_filter value directly to ActiveRecord's where() as a raw SQL string. An unauthenticated attacker can inject arbitrary SQL conditions, enabling mass data modification, mass data deletion, and information disclosure via boolean-based exfiltration. This issue has been patched in version 2.7.0.

Technical POC Analysis

The bug class is CWE-89: user-controlled input is inserted into a SQL command without neutralization.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-77432 is a critical unauthenticated SQL injection in the activity_notification Ruby gem (versions up to 2.6.1), affecting any application that exposes its notification bulk endpoints. An attacker can mass-modify or delete notification records and exfiltrate data, potentially disrupting user communications and exposing sensitive information across the user base. Leadership should prioritize immediate remediation because the vendor has published a reproducible proof-of-concept and labels the issue act_now.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include disabling or placing network restrictions on the unauthenticated bulk endpoints, enforcing authentication at the reverse proxy for all notification routes, and monitoring for anomalous requests to open_all and destroy_all endpoints.

Threat Intelligence Overview

EPSS Score
1.0%
Top 35% exploitable
Prevalence
Low
niche Rails notifications gem; only installs mounting its REST API are exposed
Data Quality
4 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC No
EPSS 1.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2013-0333 HIGH POC
7.5 Jan 30

lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly

CVE-2013-0156 HIGH POC
7.5 Jan 13

active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, an

CVE-2016-2098 HIGH POC
7.3 Apr 07

Action Pack in Ruby on Rails before 3.2.22.2, 4.x before 4.1.14.2, and 4.2.x before 4.2.5.2 allows remote attackers to e

CVE-2013-6414 MEDIUM POC
5.0 Dec 07

actionpack/lib/action_view/lookup_context.rb in Action View in Ruby on Rails 3.x before 3.2.16 and 4.x before 4.0.2 allo

CVE-2026-122006 CRITICAL POC
9.8 Nov 04

Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi

CVE-2026-109391 CRITICAL POC
9.2 Oct 12

Unauthenticated remote code execution is achievable in Square Squash (all versions through commit e73f280) through a two

CVE-2017-17919 HIGH POC
8.1 Dec 29

SQL injection vulnerability in the 'order' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute

CVE-2017-17920 HIGH POC
8.1 Dec 29

SQL injection vulnerability in the 'reorder' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execut

CVE-2012-6496 HIGH POC
7.5 Jan 04

SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x

CVE-2012-2695 HIGH POC
7.5 Jun 22

The Active Record component in Ruby on Rails before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 does not properly

CVE-2013-0277 CRITICAL
10.0 Feb 13

ActiveRecord in Ruby on Rails before 2.3.17 and 3.x before 3.1.0 allows remote attackers to cause a denial of service or

CVE-2026-94462 HIGH POC
7.1 Sep 22

Authenticated store customers can seize other shoppers' guest carts in Spree Commerce by calling PATCH /api/v3/store/car

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