Vulnerabilities in pkg:gem/i18n

PACKAGE
Advisory Identifier: GHSA-r5hc-9xx5-97rw
Advisory Summary

CVE-2013-4492 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting I18n libraries in the RubyGems ecosystem. The issue involves i18n gem cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 0.6.6.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/i18n

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/i18n. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-r5hc-9xx5-97rw CVE-2013-4492 MODERATE i18n gem Cross-site Scripting vulnerability
GHSA-34hf-g744-jw64 CVE-2014-10077 HIGH i18n Vulnerable to Denial of Service Attack

CVE-2013-4492 at a Glance

CVE Identifier CVE-2013-4492
GHSA Identifier GHSA-r5hc-9xx5-97rw
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product I18n
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-4492

To remediate this vulnerability, upgrade all affected I18n dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

i18n fixed: 0.6.6
Upgrade i18n to 0.6.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for i18n

How to Check if You Are Affected

To determine whether your application is affected by CVE-2013-4492, inspect your project dependencies for I18n:

inspect dependencies for i18n

Analyze the terminal output to locate any version of I18n in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.6), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In I18n, 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

Cross-site scripting (XSS) vulnerability in exceptions.rb in the i18n gem before 0.6.6 for Ruby allows remote attackers to inject arbitrary web script or HTML via a crafted I18n::MissingTranslationData.new call.

CVE-2013-4492 Affected I18n Versions

1 component(s)
Fixed Versions:
0.6.6
Product / Package Ecosystem Affected Versions Fixed Version
i18n
RubyGems
< 0.6.6
0.6.6

References

NVD — CVE-2013-4492 NVD
https://nvd.nist.gov/vuln/detail/CVE-2013-4492
Security Fix Commit FIX COMMIT
https://github.com/ruby-i18n/i18n/commit/92b57b1e4f84adcdcc3a375278f299274be62445
Security Fix Commit FIX COMMIT
https://github.com/svenfuchs/i18n/commit/92b57b1e4f84adcdcc3a375278f299274be62445
access.redhat.com/errata/rhba-2015:11... WEB
https://access.redhat.com/errata/RHBA-2015:1100
access.redhat.com/errata/rhsa-2017:03... WEB
https://access.redhat.com/errata/RHSA-2017:0320
access.redhat.com/errata/rhsa-2018:03... WEB
https://access.redhat.com/errata/RHSA-2018:0380
I18n Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2013-4492
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=1039435
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-r5hc-9xx5-97rw
I18n Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/i18n/CVE-2013-4492.yml
I18n Source Repository REPOSITORY
https://github.com/svenfuchs/i18n
groups.google.com/forum/ WEB
https://groups.google.com/forum/#!topic/ruby-security-ann/pLrh6DUw998
web.archive.org/web/20201208125214/... WEB
https://web.archive.org/web/20201208125214/https://groups.google.com/forum/message/raw?msg=ruby-security-ann/pLrh6DUw998/bLFEyIO4k_EJ
I18n Security Information SECURITY
https://web.archive.org/web/20210731082547/http://www.securityfocus.com/bid/64076
lists.opensuse.org/opensuse-updates/20... WEB
http://lists.opensuse.org/opensuse-updates/2013-12/msg00093.html
weblog.rubyonrails.org/2013/12/3/rails_3_2... WEB
http://weblog.rubyonrails.org/2013/12/3/Rails_3_2_16_and_4_0_2_have_been_released
I18n Security Information SECURITY
http://www.debian.org/security/2013/dsa-2830

Frequently Asked Questions

What is CVE-2013-4492?
CVE-2013-4492 is a security vulnerability in I18n involving i18n gem Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which I18n versions are affected?
Affected versions include releases prior to 0.6.6 across affected packages: i18n.
What version fixes CVE-2013-4492?
Upgrading to 0.6.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is i18n affected?
Yes, i18n is affected in releases prior to 0.6.6. Upgrade your dependency to 0.6.6 or later.
What CWE is associated with CVE-2013-4492?
CVE-2013-4492 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check RubyGems dependencies for CVE-2013-4492?
Run the dependency tree command: 'inspect dependencies for i18n'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r5hc-9xx5-97rw",
  "modified" : "2023-07-04T00:12:42Z",
  "published" : "2017-10-24T18:33:37Z",
  "aliases" : [ "CVE-2013-4492" ],
  "summary" : "i18n gem Cross-site Scripting vulnerability ",
  "details" : "Cross-site scripting (XSS) vulnerability in exceptions.rb in the i18n gem before 0.6.6 for Ruby allows remote attackers to inject arbitrary web script or HTML via a crafted I18n::MissingTranslationData.new call.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "i18n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4492"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruby-i18n/i18n/commit/92b57b1e4f84adcdcc3a375278f299274be62445"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/svenfuchs/i18n/commit/92b57b1e4f84adcdcc3a375278f299274be62445"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHBA-2015:1100"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:0320"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0380"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2013-4492"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1039435"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-r5hc-9xx5-97rw"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/i18n/CVE-2013-4492.yml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/svenfuchs/i18n"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#!topic/ruby-security-ann/pLrh6DUw998"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20201208125214/https://groups.google.com/forum/message/raw?msg=ruby-security-ann/pLrh6DUw998/bLFEyIO4k_EJ"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210731082547/http://www.securityfocus.com/bid/64076"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-updates/2013-12/msg00093.html"
  }, {
    "type" : "WEB",
    "url" : "http://weblog.rubyonrails.org/2013/12/3/Rails_3_2_16_and_4_0_2_have_been_released"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2013/dsa-2830"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:53:45Z",
    "nvd_published_at" : "2013-12-07T00:55:00Z"
  }
}