cve-2020-35131

CRITICAL CVSS 9.8 csaf_redhat
Description

This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.

Timeline
Published
2020-01-01 00:00 UTC
Last Modified
2025-11-21
CVSS Details

CVSS details not available.

Affected Products

No product information available.

Weaknesses (CWE)
References

No references available.

Linked Vulnerabilities

No linked vulnerabilities found.

{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Important"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright © Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-35131.json"
      }
    ],
    "title": "cockpit: registerCriteriaFunction in lib/MongoLite/Database.php allows for a Remote Command Execution via custom php code injection",
    "tracking": {
      "current_release_date": "2025-11-21T16:58:43+00:00",
      "generator": {
        "date": "2025-11-21T16:58:43+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "4.6.12"
        }
      },
      "id": "CVE-2020-35131",
      "initial_release_date": "2020-01-01T00:00:00+00:00",
      "revision_history": [
        {
          "date": "2020-01-01T00:00:00+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2021-02-16T17:16:53+00:00",
          "number": "2",
          "summary": "Current version"
        },
        {
          "date": "2025-11-21T16:58:43+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 7",
                "product": {
                  "name": "Red Hat Enterprise Linux 7",
                  "product_id": "red_hat_enterprise_linux_7",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:7"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 7"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 8",
                "product": {
                  "name": "Red Hat Enterprise Linux 8",
                  "product_id": "red_hat_enterprise_linux_8",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:8"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 8"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 9",
                "product": {
                  "name": "Red Hat Enterprise Linux 9",
                  "product_id": "red_hat_enterprise_linux_9",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:9"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 9"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Virtualization 4",
                "product": {
                  "name": "Red Hat Virtualization 4",
                  "product_id": "red_hat_virtualization_4",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:rhev_hypervisor:4"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Virtualization 4"
          },
          {
            "category": "product_version",
            "name": "cockpit-system",
            "product": {
              "name": "cockpit-system",
              "product_id": "cockpit-system",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cockpit-system"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cockpit-machines-ovirt",
            "product": {
              "name": "cockpit-machines-ovirt",
              "product_id": "cockpit-machines-ovirt",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cockpit-machines-ovirt"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cockpit.src",
            "product": {
              "name": "cockpit.src",
              "product_id": "cockpit.src",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cockpit?arch=src"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cockpit",
            "product": {
              "name": "cockpit",
              "product_id": "cockpit",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cockpit"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cockpit-ws",
            "product": {
              "name": "cockpit-ws",
              "product_id": "cockpit-ws",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cockpit-ws"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cockpit-bridge",
            "product": {
              "name": "cockpit-bridge",
              "product_id": "cockpit-bridge",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cockpit-bridge"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cockpit-doc",
            "product": {
              "name": "cockpit-doc",
              "product_id": "cockpit-doc",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cockpit-doc"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cockpit-pcp",
            "product": {
              "name": "cockpit-pcp",
              "product_id": "cockpit-pcp",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cockpit-pcp"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cockpit-storaged",
            "product": {
              "name": "cockpit-storaged",
              "product_id": "cockpit-storaged",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cockpit-storaged"
              }
            }
          },
          {
            "category": "product_version",
            "name": "cockpit-packagekit",
            "product": {
              "name": "cockpit-packagekit",
              "product_id": "cockpit-packagekit",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/cockpit-packagekit"
              }
            }
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:cockpit"
        },
        "product_reference": "cockpit",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-bridge as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:cockpit-bridge"
        },
        "product_reference": "cockpit-bridge",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-doc as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:cockpit-doc"
        },
        "product_reference": "cockpit-doc",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-machines-ovirt as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:cockpit-machines-ovirt"
        },
        "product_reference": "cockpit-machines-ovirt",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-system as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:cockpit-system"
        },
        "product_reference": "cockpit-system",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-ws as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:cockpit-ws"
        },
        "product_reference": "cockpit-ws",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit.src as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:cockpit.src"
        },
        "product_reference": "cockpit.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:cockpit"
        },
        "product_reference": "cockpit",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-bridge as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:cockpit-bridge"
        },
        "product_reference": "cockpit-bridge",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-doc as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:cockpit-doc"
        },
        "product_reference": "cockpit-doc",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-system as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:cockpit-system"
        },
        "product_reference": "cockpit-system",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-ws as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:cockpit-ws"
        },
        "product_reference": "cockpit-ws",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit.src as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:cockpit.src"
        },
        "product_reference": "cockpit.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:cockpit"
        },
        "product_reference": "cockpit",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-bridge as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:cockpit-bridge"
        },
        "product_reference": "cockpit-bridge",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-doc as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:cockpit-doc"
        },
        "product_reference": "cockpit-doc",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-packagekit as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:cockpit-packagekit"
        },
        "product_reference": "cockpit-packagekit",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-pcp as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:cockpit-pcp"
        },
        "product_reference": "cockpit-pcp",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-storaged as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:cockpit-storaged"
        },
        "product_reference": "cockpit-storaged",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-system as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:cockpit-system"
        },
        "product_reference": "cockpit-system",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit-ws as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:cockpit-ws"
        },
        "product_reference": "cockpit-ws",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit.src as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:cockpit.src"
        },
        "product_reference": "cockpit.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "cockpit as a component of Red Hat Virtualization 4",
          "product_id": "red_hat_virtualization_4:cockpit"
        },
        "product_reference": "cockpit",
        "relates_to_product_reference": "red_hat_virtualization_4"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2020-35131",
      "cwe": {
        "id": "CWE-94",
        "name": "Improper Control of Generation of Code ('Code Injection')"
      },
      "discovery_date": "2021-01-15T00:00:00+00:00",
      "flags": [
        {
          "label": "vulnerable_code_not_present",
          "product_ids": [
            "red_hat_enterprise_linux_7:cockpit",
            "red_hat_enterprise_linux_7:cockpit-bridge",
            "red_hat_enterprise_linux_7:cockpit-doc",
            "red_hat_enterprise_linux_7:cockpit-machines-ovirt",
            "red_hat_enterprise_linux_7:cockpit-system",
            "red_hat_enterprise_linux_7:cockpit-ws",
            "red_hat_enterprise_linux_7:cockpit.src",
            "red_hat_enterprise_linux_8:cockpit",
            "red_hat_enterprise_linux_8:cockpit-bridge",
            "red_hat_enterprise_linux_8:cockpit-doc",
            "red_hat_enterprise_linux_8:cockpit-system",
            "red_hat_enterprise_linux_8:cockpit-ws",
            "red_hat_enterprise_linux_8:cockpit.src",
            "red_hat_enterprise_linux_9:cockpit",
            "red_hat_enterprise_linux_9:cockpit-bridge",
            "red_hat_enterprise_linux_9:cockpit-doc",
            "red_hat_enterprise_linux_9:cockpit-packagekit",
            "red_hat_enterprise_linux_9:cockpit-pcp",
            "red_hat_enterprise_linux_9:cockpit-storaged",
            "red_hat_enterprise_linux_9:cockpit-system",
            "red_hat_enterprise_linux_9:cockpit-ws",
            "red_hat_enterprise_linux_9:cockpit.src",
            "red_hat_virtualization_4:cockpit"
          ]
        }
      ],
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "1916627"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "A flaw was found in cockpit. An attacker is able to inject custom PHP code and achieve remote command execution. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "cockpit: registerCriteriaFunction in lib/MongoLite/Database.php allows for a Remote Command Execution via custom php code injection",
          "title": "Vulnerability summary"
        },
        {
          "category": "other",
          "text": "This vulnerability applies to Cockpit CMS (https://getcockpit.com/), which is a different product than the Cockpit Project (https://cockpit-project.org/) used in Red Hat products.  The Cockpit Project is not affected by this vulnerability.",
          "title": "Statement"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "known_not_affected": [
          "red_hat_enterprise_linux_7:cockpit",
          "red_hat_enterprise_linux_7:cockpit-bridge",
          "red_hat_enterprise_linux_7:cockpit-doc",
          "red_hat_enterprise_linux_7:cockpit-machines-ovirt",
          "red_hat_enterprise_linux_7:cockpit-system",
          "red_hat_enterprise_linux_7:cockpit-ws",
          "red_hat_enterprise_linux_7:cockpit.src",
          "red_hat_enterprise_linux_8:cockpit",
          "red_hat_enterprise_linux_8:cockpit-bridge",
          "red_hat_enterprise_linux_8:cockpit-doc",
          "red_hat_enterprise_linux_8:cockpit-system",
          "red_hat_enterprise_linux_8:cockpit-ws",
          "red_hat_enterprise_linux_8:cockpit.src",
          "red_hat_enterprise_linux_9:cockpit",
          "red_hat_enterprise_linux_9:cockpit-bridge",
          "red_hat_enterprise_linux_9:cockpit-doc",
          "red_hat_enterprise_linux_9:cockpit-packagekit",
          "red_hat_enterprise_linux_9:cockpit-pcp",
          "red_hat_enterprise_linux_9:cockpit-storaged",
          "red_hat_enterprise_linux_9:cockpit-system",
          "red_hat_enterprise_linux_9:cockpit-ws",
          "red_hat_enterprise_linux_9:cockpit.src",
          "red_hat_virtualization_4:cockpit"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2020-35131"
        },
        {
          "category": "external",
          "summary": "RHBZ#1916627",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1916627"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2020-35131",
          "url": "https://www.cve.org/CVERecord?id=CVE-2020-35131"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2020-35131",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-35131"
        }
      ],
      "release_date": "2021-01-08T00:00:00+00:00",
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "red_hat_enterprise_linux_7:cockpit",
            "red_hat_enterprise_linux_7:cockpit-bridge",
            "red_hat_enterprise_linux_7:cockpit-doc",
            "red_hat_enterprise_linux_7:cockpit-machines-ovirt",
            "red_hat_enterprise_linux_7:cockpit-system",
            "red_hat_enterprise_linux_7:cockpit-ws",
            "red_hat_enterprise_linux_7:cockpit.src",
            "red_hat_enterprise_linux_8:cockpit",
            "red_hat_enterprise_linux_8:cockpit-bridge",
            "red_hat_enterprise_linux_8:cockpit-doc",
            "red_hat_enterprise_linux_8:cockpit-system",
            "red_hat_enterprise_linux_8:cockpit-ws",
            "red_hat_enterprise_linux_8:cockpit.src",
            "red_hat_enterprise_linux_9:cockpit",
            "red_hat_enterprise_linux_9:cockpit-bridge",
            "red_hat_enterprise_linux_9:cockpit-doc",
            "red_hat_enterprise_linux_9:cockpit-packagekit",
            "red_hat_enterprise_linux_9:cockpit-pcp",
            "red_hat_enterprise_linux_9:cockpit-storaged",
            "red_hat_enterprise_linux_9:cockpit-system",
            "red_hat_enterprise_linux_9:cockpit-ws",
            "red_hat_enterprise_linux_9:cockpit.src",
            "red_hat_virtualization_4:cockpit"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Important",
          "product_ids": [
            "red_hat_enterprise_linux_7:cockpit",
            "red_hat_enterprise_linux_7:cockpit-bridge",
            "red_hat_enterprise_linux_7:cockpit-doc",
            "red_hat_enterprise_linux_7:cockpit-machines-ovirt",
            "red_hat_enterprise_linux_7:cockpit-system",
            "red_hat_enterprise_linux_7:cockpit-ws",
            "red_hat_enterprise_linux_7:cockpit.src",
            "red_hat_enterprise_linux_8:cockpit",
            "red_hat_enterprise_linux_8:cockpit-bridge",
            "red_hat_enterprise_linux_8:cockpit-doc",
            "red_hat_enterprise_linux_8:cockpit-system",
            "red_hat_enterprise_linux_8:cockpit-ws",
            "red_hat_enterprise_linux_8:cockpit.src",
            "red_hat_enterprise_linux_9:cockpit",
            "red_hat_enterprise_linux_9:cockpit-bridge",
            "red_hat_enterprise_linux_9:cockpit-doc",
            "red_hat_enterprise_linux_9:cockpit-packagekit",
            "red_hat_enterprise_linux_9:cockpit-pcp",
            "red_hat_enterprise_linux_9:cockpit-storaged",
            "red_hat_enterprise_linux_9:cockpit-system",
            "red_hat_enterprise_linux_9:cockpit-ws",
            "red_hat_enterprise_linux_9:cockpit.src",
            "red_hat_virtualization_4:cockpit"
          ]
        }
      ],
      "title": "cockpit: registerCriteriaFunction in lib/MongoLite/Database.php allows for a Remote Command Execution via custom php code injection"
    }
  ]
}
Enrichment data
View JSON API Download JSON