Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach unauthenticated open_all/destroy_all API endpoint
-
ExploitPOST crafted custom_filter raw SQL predicate
-
ExecutionActiveRecord where() executes injected condition
-
ImpactMass-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
More in Ruby On Rails
View alllib/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
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
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
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
Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi
Unauthenticated remote code execution is achievable in Square Squash (all versions through commit e73f280) through a two
SQL injection vulnerability in the 'order' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute
SQL injection vulnerability in the 'reorder' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execut
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
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
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
Authenticated store customers can seize other shoppers' guest carts in Spree Commerce by calling PATCH /api/v3/store/car
EUVD-2026-144459
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB