CVE-2012-0215: Trytond Trytond Allows Modification Of Privileges Vulnerability

HIGH
Advisory Identifier: GHSA-cqg4-rf29-3mv6
CVSS 6.5
CWE-287
Published
Advisory Summary

CVE-2012-0215 is a HIGH (CVSS 6.5) trytond allows modification of privileges vulnerability (CWE-287: Improper Authentication) affecting Trytond libraries in the PyPI ecosystem. The issue involves trytond allows modification of privileges of arbitrary users. Remediation is available by upgrading affected packages to version 2.4.0.

CVE-2012-0215 at a Glance

CVE Identifier CVE-2012-0215
GHSA Identifier GHSA-cqg4-rf29-3mv6
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-287: Improper Authentication
Affected Product Trytond
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2012-0215

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

trytond fixed: 2.4.0
pip install trytond>=2.4.0
Verify Direct and Transitive Dependencies

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

pip show trytond

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2012-0215, inspect your installed packages using pip:

pip show trytond

Analyze the terminal output to locate any version of Trytond in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.0), your application is affected.

Note: The pip show trytond command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Trytond, 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

`model/modelstorage.py` in the Tryton application framework (trytond) before 2.4.0 for Python does not properly restrict access to the Many2Many field in the relation model, which allows remote authenticated users to modify the privileges of arbitrary users via a (1) create, (2) write, (3) delete, or (4) copy rpc call.

CVE-2012-0215 Affected Trytond Versions

1 component(s)
Fixed Versions:
2.4.0
Product / Package Ecosystem Affected Versions Fixed Version
trytond
PyPI
< 2.4.0
2.4.0

References

Frequently Asked Questions

What is CVE-2012-0215?
CVE-2012-0215 is a security vulnerability in Trytond involving Trytond allows modification of privileges of arbitrary users under CWE-287: Improper Authentication.
Which Trytond versions are affected?
Affected versions include releases prior to 2.4.0 across affected packages: trytond.
What version fixes CVE-2012-0215?
Upgrading to 2.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is trytond affected?
Yes, trytond is affected in releases prior to 2.4.0. Upgrade your dependency to 2.4.0 or later.
What is the CVSS score of CVE-2012-0215?
CVE-2012-0215 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2012-0215?
CVE-2012-0215 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check PyPI dependencies for CVE-2012-0215?
Run the dependency tree command: 'pip show trytond'. 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-cqg4-rf29-3mv6",
  "modified" : "2024-11-18T21:06:11Z",
  "published" : "2022-05-04T00:28:50Z",
  "aliases" : [ "CVE-2012-0215" ],
  "summary" : "Trytond allows modification of privileges of arbitrary users",
  "details" : "`model/modelstorage.py` in the Tryton application framework (trytond) before 2.4.0 for Python does not properly restrict access to the Many2Many field in the relation model, which allows remote authenticated users to modify the privileges of arbitrary users via a (1) create, (2) write, (3) delete, or (4) copy rpc call.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "trytond"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-0215"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tryton/trytond/commit/d059ebb792401ded3129cd9402d7392dc34b81e3"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.tryton.org/issue2476"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/trytond/PYSEC-2012-6.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tryton/trytond"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20121113201043/http://news.tryton.org/2012/03/security-releases-for-all-supported.html"
  }, {
    "type" : "WEB",
    "url" : "http://hg.tryton.org/trytond/rev/8e64d52ecea4"
  }, {
    "type" : "WEB",
    "url" : "http://news.tryton.org/2012/03/security-releases-for-all-supported.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2012/dsa-2444"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-12T16:12:44Z",
    "nvd_published_at" : "2012-07-12T20:55:00Z"
  }
}