CVE-2018-20975: Fat free crm Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-4p8f-mmfj-r45g
CVSS 6.1
CWE-79
Published
Advisory Summary

CVE-2018-20975 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Fat free crm libraries in the RubyGems ecosystem. The issue involves cross-site scripting in fat_free_crm. Remediation is available by upgrading affected packages to version 0.18.1.

CVE-2018-20975 at a Glance

CVE Identifier CVE-2018-20975
GHSA Identifier GHSA-4p8f-mmfj-r45g
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Fat free crm
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 6.1

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:R/S:C/C:L/I:L/A:N).

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

How to Fix CVE-2018-20975

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

fat_free_crm fixed: 0.18.1
Upgrade fat_free_crm to 0.18.1
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 fat_free_crm

How to Check if You Are Affected

To determine whether your application is affected by CVE-2018-20975, inspect your project dependencies for Fat free crm:

inspect dependencies for fat_free_crm

Analyze the terminal output to locate any version of Fat free crm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.18.1), 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 Fat free crm, 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

Fat Free CRM before 0.18.1 has XSS in the `tags_helpe`r in `app/helpers/tags_helper.rb`.

CVE-2018-20975 Affected Fat free crm Versions

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

References

Frequently Asked Questions

What is CVE-2018-20975?
CVE-2018-20975 is a security vulnerability in Fat free crm involving Cross-site scripting in fat_free_crm under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Fat free crm versions are affected?
Affected versions include releases prior to 0.18.1 across affected packages: fat_free_crm.
What version fixes CVE-2018-20975?
Upgrading to 0.18.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fat_free_crm affected?
Yes, fat_free_crm is affected in releases prior to 0.18.1. Upgrade your dependency to 0.18.1 or later.
What is the CVSS score of CVE-2018-20975?
CVE-2018-20975 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2018-20975?
CVE-2018-20975 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-2018-20975?
Run the dependency tree command: 'inspect dependencies for fat_free_crm'. 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-4p8f-mmfj-r45g",
  "modified" : "2023-08-25T20:28:23Z",
  "published" : "2019-08-21T16:15:04Z",
  "aliases" : [ "CVE-2018-20975" ],
  "summary" : "Cross-site scripting in fat_free_crm",
  "details" : "Fat Free CRM before 0.18.1 has XSS in the `tags_helpe`r in `app/helpers/tags_helper.rb`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "fat_free_crm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-20975"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fatfreecrm/fat_free_crm/commit/6d60bc8ed010c4eda05d6645c64849f415f68d65"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fatfreecrm/fat_free_crm/compare/v0.17.3...v0.18.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fatfreecrm/fat_free_crm/releases/tag/v0.18.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/fat_free_crm/CVE-2018-20975.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-08-21T15:48:24Z",
    "nvd_published_at" : "2019-08-20T13:15:00Z"
  }
}