Patrowl Intel
Sign in
Skip to the CVEs

Filter by signal

23 activerecord CVEs, newest first

  1. —Activerecord ActiverecordAug 13, 2025

    Active Record logging vulnerable to ANSI escape injection This vulnerability has been assigned the CVE identifier CVE-2025-55193 ### Impact The ID passed to `find` or similar methods may be logged without escaping. If this is directly to the terminal it may include unescaped ANSI sequences. ### Releases The fixed releases are available at the normal locations. ### Credits Thanks to [lio346](https://hackerone.com/lio346) from Unit 515 of OPSWAT for reporting this vulnerability

    Affected: ≥ 7.2, < 7.2.2.2 · ≥ 8.0, < 8.0.2.1 · from the first version, < 7.1.5.2

  2. 7.5 1 exploit EPSS 1.3 % RemoteActiverecord_Project Activerecord, Activerecord ActiverecordJan 18, 2023

    Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter There is a potential denial of service vulnerability present in ActiveRecord's PostgreSQL adapter. This has been assigned the CVE identifier CVE-2022-44566. Versions Affected: All. Not affected: None. ## Fixed Versions - 2.3.18.47 (Rails LTS, which is a paid service and not part of the rubygem) - 3.2.22.34 (Rails LTS, which is a paid service and not part of the rubygem) - 4.2.11.27 (Rails LTS, which is a paid service and not part of the rubygem) - 5.2.8.15 (Rails LTS, which is a paid service and not part of the rubygem) - 6.1.7.1 - 7.0.4.1 ## Impact In ActiveRecord < 7.0.4.1 and < 6.1.7.1, when a value outside the range for a 64bit signed integer is provided to the PostgreSQL connection adapter, it will treat the target column type as numeric. Comparing integer values against numeric values can result in a slow sequential scan resulting in potential Denial of Service. ## Releases The fixed releases are available at the normal locations. ## Workarounds Ensure that user supplied input which is provided to ActiveRecord clauses do not contain integers wider than a signed 64bit representation or floats. ## Patches To aid users who aren't able to upgrade immediately we have provided patches for the supported release series in accordance with our maintenance policy 1 regarding security issues. They are in git-am format and consist of a single changeset. 6-1-Added-integer-width-check-to-PostgreSQL-Quoting.patch - Patch for 6.1 series 7-0-Added-integer-width-check-to-PostgreSQL-Quoting.patch - Patch for 7.0 series

    Affected: ≥ 7.0.0, < 7.0.4.1 · from the first version, < 6.1.7.1

  3. 8.8 1 exploit EPSS 2.2 % RemoteActiverecord_Project Activerecord, Activerecord ActiverecordJan 18, 2023

    SQL Injection Vulnerability via ActiveRecord comments There is a possible vulnerability in ActiveRecord related to the sanitization of comments. This vulnerability has been assigned the CVE identifier CVE-2023-22794. Versions Affected: >= 6.0.0 Not affected: < 6.0.0 Fixed Versions: 6.0.6.1, 6.1.7.1, 7.0.4.1 Impact Previously the implementation of escaping for comments was insufficient for If malicious user input is passed to either the annotate query method, the optimizer_hints query method, or through the QueryLogs interface which automatically adds annotations, it may be sent to the database with insufficient sanitization and be able to inject SQL outside of the comment. In most cases these interfaces won’t be used with user input and users should avoid doing so. Example vulnerable code: ``` Post.where(id: 1).annotate("#{params[:user_input]}") Post.where(id: 1).optimizer_hints("#{params[:user_input]}") ``` Example vulnerable QueryLogs configuration (the default configuration is not vulnerable): ``` config.active_record.query_log_tags = [ { something: -> { <some value including user input> } } ] ``` All users running an affected release should either upgrade or use one of the workarounds immediately. Releases The FIXED releases are available at the normal locations. Workarounds Avoid passing user input to annotate and avoid using QueryLogs configuration which can include user input. Patches To aid users who aren’t able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset. 6-0-Make-sanitize_as_sql_comment-more-strict.patch - Patch for 6.0 series 6-1-Make-sanitize_as_sql_comment-more-strict.patch - Patch for 6.1 series 7-0-Make-sanitize_as_sql_comment-more-strict.patch - Patch for 7.0 series Please note that only the 7.0.Z and 6.1.Z series are supported at present, and 6.0.Z for severe vulnerabilities. Users of earlier unsupported releases are advised to upgrade as soon as possible as we cannot guarantee the continued availability of security fixes for unsupported releases.

    Affected: ≥ 6.0.0, < 6.0.6.1 · ≥ 6.1.0, < 6.1.7.1 · ≥ 7.0.0, < 7.0.4.1

  4. 9.8 1 exploit EPSS 2.6 % RemoteActiverecord_Project Activerecord, Activerecord ActiverecordJul 12, 2022

    Active Record RCE bug with Serialized Columns When serialized columns that use YAML (the default) are deserialized, Rails uses YAML.unsafe_load to convert the YAML data in to Ruby objects. If an attacker can manipulate data in the database (via means like SQL injection), then it may be possible for the attacker to escalate to an RCE. There are no feasible workarounds for this issue, but other coders (such as JSON) are not impacted.

    Affected: ≥ 6.0.0, < 6.0.5.1 · ≥ 6.1.0, < 6.1.6.1 · ≥ 7.0.0, < 7.0.3.1 · from the first version, < 5.2.8.1

  5. — 1 exploit EPSS 2.4 %Rubyonrails Ruby On Rails, Rubyonrails Rails +1May 14, 2022

    Active Record component in Ruby on Rails has a data-type injection vulnerability The Active Record component in Ruby on Rails 2.3.x, 3.0.x, 3.1.x, and 3.2.x does not ensure that the declared data type of a database column is used during comparisons of input values to stored values in that column, which makes it easier for remote attackers to conduct data-type injection attacks against Ruby on Rails applications via a crafted value, as demonstrated by unintended interaction between the "typed XML" feature and a MySQL database.

    Affected: from the first version, < 4.2.0

  6. 7.5 1 exploit EPSS 4.5 % RemoteRubyonrails Rails, Fedoraproject Fedora +1Mar 2, 2021

    Active Record subject to Regular Expression Denial-of-Service (ReDoS) The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5 suffers from a regular expression denial of service (REDoS) vulnerability. Carefully crafted input can cause the input validation in the `money` type of the PostgreSQL adapter in Active Record to spend too much time in a regular expression, resulting in the potential for a DoS attack. This only impacts Rails applications that are using PostgreSQL along with money type columns that take user input.

    Affected: ≥ 5.0.0, < 5.2.4.5 · ≥ 6.0.0, < 6.0.3.5 · ≥ 6.1.0, < 6.1.2.1

  7. 7.5 EPSS 3.9 % RemoteRubyonrails Rails, Activerecord ActiverecordOct 24, 2017

    ActiveRecord in Ruby on Rails allows database-query bypass Active Record in Ruby on Rails 4.2.x before 4.2.7.1 does not properly consider differences in parameter handling between the Active Record component and the JSON implementation, which allows remote attackers to bypass intended database-query restrictions and perform NULL checks or trigger missing WHERE clauses via a crafted request, as demonstrated by certain "[nil]" values, a related issue to CVE-2012-2660, CVE-2012-2694, and CVE-2013-0155.

    Affected: ≥ 4.2.0, < 4.2.7.1

  8. 5.3 EPSS 4.3 % RemoteRubyonrails Rails, Rubyonrails Ruby On Rails +1Oct 24, 2017

    Active Record Improper Access Control `activerecord/lib/active_record/nested_attributes.rb` in Active Record in Ruby on Rails 3.1.x and 3.2.x before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 does not properly implement a certain destroy option, which allows remote attackers to bypass intended change restrictions by leveraging use of the nested attributes feature.

    Affected: ≥ 3.1.0, < 3.2.22.1 · ≥ 4.0.0, < 4.1.14.1 · ≥ 4.2.0, < 4.2.5.1 · ≥ 5.0.0.beta1, < 5.0.0.beta1.1

  9. — EPSS 1.3 %Rubyonrails Rails, Activerecord ActiverecordOct 24, 2017

    Array data injection vulnerability in activerecord SQL injection vulnerability in `activerecord/lib/active_record/connection_adapters/postgresql/cast.rb` in Active Record in Ruby on Rails 4.0.x before 4.0.3, and 4.1.0.beta1, when PostgreSQL is used, allows remote attackers to execute "add data" SQL commands via vectors involving `\` (backslash) characters that are not properly handled in operations on array columns.

    Affected: ≥ 4.0.0, < 4.0.3 · ≥ 4.1.0.beta1, < 4.1.0.beta2

  10. — EPSS 4.2 %Rubyonrails Rails, Activerecord ActiverecordOct 24, 2017

    Active Record contains SQL Injection via improper range quoting SQL injection vulnerability in activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb in the PostgreSQL adapter for Active Record in Ruby on Rails 4.x before 4.0.7 and 4.1.x before 4.1.3 allows remote attackers to execute arbitrary SQL commands by leveraging improper range quoting.

    Affected: ≥ 4.0.0, < 4.0.7 · ≥ 4.1.0, < 4.1.3