CVE-2017-10906: Fluentd Fluentd Escape Sequence Injection Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-5jrp-w8fr-mrww
CVSS 9.8
Published
Advisory Summary

CVE-2017-10906 is a CRITICAL (CVSS 9.8) fluentd escape sequence injection vulnerability vulnerability (General Security Weakness) affecting Fluentd libraries in the RubyGems ecosystem. The issue involves fluentd escape sequence injection vulnerability. Remediation is available by upgrading affected packages to version 0.12.41.

CVE-2017-10906 at a Glance

CVE Identifier CVE-2017-10906
GHSA Identifier GHSA-5jrp-w8fr-mrww
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification General Security Weakness
Affected Product Fluentd
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2017-10906

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

fluentd fixed: 0.12.41
Upgrade fluentd to 0.12.41
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 fluentd

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-10906, inspect your project dependencies for Fluentd:

inspect dependencies for fluentd

Analyze the terminal output to locate any version of Fluentd in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.41), 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 General Security Weakness. In Fluentd, 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

Escape sequence injection vulnerability in Fluentd versions 0.12.29 through 0.12.40 may allow an attacker to change the terminal UI or execute arbitrary commands on the device via unspecified vectors.

CVE-2017-10906 Affected Fluentd Versions

1 component(s)
Fixed Versions:
0.12.41
Product / Package Ecosystem Affected Versions Fixed Version
fluentd
RubyGems
≥ 0.12.29
< 0.12.41
0.12.41

References

Frequently Asked Questions

What is CVE-2017-10906?
CVE-2017-10906 is a security vulnerability in Fluentd involving Fluentd Escape Sequence Injection Vulnerability under General Security Weakness.
Which Fluentd versions are affected?
Affected versions include releases prior to 0.12.41 across affected packages: fluentd.
What version fixes CVE-2017-10906?
Upgrading to 0.12.41 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fluentd affected?
Yes, fluentd is affected in releases prior to 0.12.41. Upgrade your dependency to 0.12.41 or later.
What is the CVSS score of CVE-2017-10906?
CVE-2017-10906 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-10906?
CVE-2017-10906 is classified under General Security Weakness.
How can I check RubyGems dependencies for CVE-2017-10906?
Run the dependency tree command: 'inspect dependencies for fluentd'. 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-5jrp-w8fr-mrww",
  "modified" : "2023-01-24T16:01:00Z",
  "published" : "2022-05-13T01:07:35Z",
  "aliases" : [ "CVE-2017-10906" ],
  "summary" : "Fluentd Escape Sequence Injection Vulnerability",
  "details" : "Escape sequence injection vulnerability in Fluentd versions 0.12.29 through 0.12.40 may allow an attacker to change the terminal UI or execute arbitrary commands on the device via unspecified vectors.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "fluentd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.12.29"
      }, {
        "fixed" : "0.12.41"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-10906"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fluent/fluentd/pull/1733"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:2225"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/fluent/fluentd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fluent/fluentd/blob/v0.12/CHANGELOG.md#bug-fixes"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/fluentd/CVE-2017-10906.yml"
  }, {
    "type" : "WEB",
    "url" : "https://jvn.jp/en/vu/JVNVU95124098/index.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-24T16:01:00Z",
    "nvd_published_at" : "2017-12-08T15:29:00Z"
  }
}