CVE-2013-7225: Fat free crm SQL Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-9ggp-5rf4-x7q9
CWE-89
Published
Advisory Summary

CVE-2013-7225 is a MODERATE sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Fat free crm libraries in the RubyGems ecosystem. The issue involves fat free crm vulnerable to sql injection. Remediation is available by upgrading affected packages to version 0.12.1.

CVE-2013-7225 at a Glance

CVE Identifier CVE-2013-7225
GHSA Identifier GHSA-9ggp-5rf4-x7q9
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Fat free crm
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2013-7225

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.12.1
Upgrade fat_free_crm to 0.12.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-2013-7225, 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.12.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-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. 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

Multiple SQL injection vulnerabilities in `app/controllers/home_controller.rb` in Fat Free CRM before 0.12.1 allow remote authenticated users to execute arbitrary SQL commands via (1) the homepage timeline feature or (2) the activity feature.

CVE-2013-7225 Affected Fat free crm Versions

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

References

Frequently Asked Questions

What is CVE-2013-7225?
CVE-2013-7225 is a security vulnerability in Fat free crm involving Fat Free CRM vulnerable to SQL Injection under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Fat free crm versions are affected?
Affected versions include releases prior to 0.12.1 across affected packages: fat_free_crm.
What version fixes CVE-2013-7225?
Upgrading to 0.12.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.12.1. Upgrade your dependency to 0.12.1 or later.
What CWE is associated with CVE-2013-7225?
CVE-2013-7225 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check RubyGems dependencies for CVE-2013-7225?
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-9ggp-5rf4-x7q9",
  "modified" : "2023-01-23T14:44:19Z",
  "published" : "2022-05-17T04:55:27Z",
  "aliases" : [ "CVE-2013-7225" ],
  "summary" : "Fat Free CRM vulnerable to SQL Injection",
  "details" : "Multiple SQL injection vulnerabilities in `app/controllers/home_controller.rb` in Fat Free CRM before 0.12.1 allow remote authenticated users to execute arbitrary SQL commands via (1) the homepage timeline feature or (2) the activity feature.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "fat_free_crm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.12.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-7225"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fatfreecrm/fat_free_crm/issues/300"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fatfreecrm/fat_free_crm/commit/078035f1ef73ed85285ac9d128c3c5f670cef066"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fatfreecrm/fat_free_crm/commit/d4b2de81a4d8c1b201482edcb2488ed9280a65fd"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/fatfreecrm/fat_free_crm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fatfreecrm/fat_free_crm/wiki/Fixing-security-vulnerabilities-%2827th-Dec-2013%29"
  }, {
    "type" : "WEB",
    "url" : "http://openwall.com/lists/oss-security/2013/12/28/2"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2013/Dec/199"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-23T14:44:19Z",
    "nvd_published_at" : "2014-01-02T14:59:00Z"
  }
}