CVE-2022-23633: Actionpack Exposure Of Information Vulnerability
HIGHCVE-2022-23633 is a HIGH (CVSS 7.4) exposure of information vulnerability (CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer) affecting Actionpack libraries in the RubyGems ecosystem. The issue involves exposure of information in action pack. Remediation is available by upgrading affected packages to version 5.2.6.2, 6.0.4.6, 6.1.4.6, 7.0.2.2.
CVE-2022-23633 at a Glance
Security Impact
CVSS: 7.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2022-23633
To remediate this vulnerability, upgrade all affected Actionpack dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade actionpack to 5.2.6.2
Upgrade actionpack to 6.0.4.6
Upgrade actionpack to 6.1.4.6
Upgrade actionpack to 7.0.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for actionpack
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-23633, inspect your project dependencies for Actionpack:
inspect dependencies for actionpack
Analyze the terminal output to locate any version of Actionpack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.6.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer, where the product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors. In Actionpack, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-23633 Affected Actionpack Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
actionpack
|
RubyGems |
≥ 5.0.0.0
< 5.2.6.2
|
5.2.6.2
|
|
actionpack
|
RubyGems |
≥ 6.0.0.0
< 6.0.4.6
|
6.0.4.6
|
|
actionpack
|
RubyGems |
≥ 6.1.0.0
< 6.1.4.6
|
6.1.4.6
|
|
actionpack
|
RubyGems |
≥ 7.0.0.0
< 7.0.2.2
|
7.0.2.2
|
References
Frequently Asked Questions
What is CVE-2022-23633?
Which Actionpack versions are affected?
What version fixes CVE-2022-23633?
Is actionpack affected?
What is the CVSS score of CVE-2022-23633?
What CWE is associated with CVE-2022-23633?
How can I check RubyGems dependencies for CVE-2022-23633?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wh98-p28r-vrc9",
"modified" : "2022-02-24T13:15:43Z",
"published" : "2022-02-11T20:49:14Z",
"aliases" : [ "CVE-2022-23633" ],
"summary" : "Exposure of information in Action Pack",
"details" : "### Impact\n\nUnder certain circumstances response bodies will not be closed, for example a [bug in a webserver](https://github.com/puma/puma/pull/2812) or a bug in a Rack middleware. In the event a response is *not* notified of a `close`, `ActionDispatch::Executor` will not know to reset thread local state for the next request. This can lead to data being leaked to subsequent requests, especially when interacting with `ActiveSupport::CurrentAttributes`.\n\nUpgrading to the FIXED versions of Rails will ensure mitigation of this issue even in the context of a buggy webserver or middleware implementation.\n\n### Patches\n\nThis has been fixed in Rails 7.0.2.2, 6.1.4.6, 6.0.4.6, and 5.2.6.2.\n\n### Workarounds\n\nUpgrading is highly recommended, but to work around this problem the following middleware can be used:\n\n```ruby\nclass GuardedExecutor < ActionDispatch::Executor\n def call(env)\n ensure_completed!\n super\n end\n\n private\n\n def ensure_completed!\n @executor.new.complete! if @executor.active?\n end\nend\n\n# Ensure the guard is inserted before ActionDispatch::Executor\nRails.application.configure do\n config.middleware.swap ActionDispatch::Executor, GuardedExecutor, executor\nend\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0.0"
}, {
"fixed" : "5.2.6.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.2.6.1"
}
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0.0"
}, {
"fixed" : "6.0.4.6"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.0.4.5"
}
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.1.0.0"
}, {
"fixed" : "6.1.4.6"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 6.1.4.5"
}
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0.0"
}, {
"fixed" : "7.0.2.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 7.0.2.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rails/rails/security/advisories/GHSA-wh98-p28r-vrc9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23633"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/f9a2ad03943d5c2ba54e1d45f155442b519c75da"
}, {
"type" : "WEB",
"url" : "https://discuss.rubyonrails.org/t/cve-2022-23633-possible-exposure-of-information-vulnerability-in-action-pack/80016"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2022-23633.yml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/ruby-security-ann/c/FkTM-_7zSNA/m/K2RiMJBlBAAJ"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html"
}, {
"type" : "WEB",
"url" : "https://rubyonrails.org/2022/2/11/Rails-7-0-2-2-6-1-4-6-6-0-4-6-and-5-2-6-2-have-been-released"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20240119-0013"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2023/dsa-5372"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/02/11/5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-212" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-02-11T20:49:14Z",
"nvd_published_at" : "2022-02-11T21:15:00Z"
}
}