CVE-2022-1397: Alextselegidis/easyappointments Privilege Escalation Vulnerability

HIGH
Advisory Identifier: GHSA-7f62-4887-cfv5
CVSS 8.8
CWE-269
Published
Advisory Summary

CVE-2022-1397 is a HIGH (CVSS 8.8) privilege escalation vulnerability (CWE-269: Improper Privilege Management) affecting Alextselegidis/easyappointments libraries in the Packagist ecosystem. The issue involves privilege escalation in easyappointments. Remediation is available in the latest vendor maintenance releases.

CVE-2022-1397 at a Glance

CVE Identifier CVE-2022-1397
GHSA Identifier GHSA-7f62-4887-cfv5
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-269: Improper Privilege Management
Affected Product Alextselegidis/easyappointments
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.8

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:H/I:H/A:H).

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 High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2022-1397

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

alextselegidis/easyappointments fixed: Latest secure release
Upgrade alextselegidis/easyappointments to Latest secure release
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 alextselegidis/easyappointments

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-1397, inspect your project dependencies for Alextselegidis/easyappointments:

inspect dependencies for alextselegidis/easyappointments

Analyze the terminal output to locate any version of Alextselegidis/easyappointments in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Alextselegidis/easyappointments, 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

The Easy!Appointments API authorization is checked against the user's existence, without validating the permissions. As a result, a low privileged user (eg. provider) can create a new admin user via the "/api/v1/admins/" endpoint and take over the system. A [patch](https://github.com/alextselegidis/easyappointments/commit/63dbb51decfcc1631c398ecd6d30e3a337845526) is available on the `develop` branch of the repository.

CVE-2022-1397 Affected Alextselegidis/easyappointments Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
alextselegidis/easyappointments
Packagist
≤ 1.4.3

References

Frequently Asked Questions

What is CVE-2022-1397?
CVE-2022-1397 is a security vulnerability in Alextselegidis/easyappointments involving Privilege escalation in easyappointments under CWE-269: Improper Privilege Management.
Which Alextselegidis/easyappointments versions are affected?
Affected versions include releases prior to current release patches across affected packages: alextselegidis/easyappointments.
What version fixes CVE-2022-1397?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is alextselegidis/easyappointments affected?
Yes, alextselegidis/easyappointments is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2022-1397?
CVE-2022-1397 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-1397?
CVE-2022-1397 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Packagist dependencies for CVE-2022-1397?
Run the dependency tree command: 'inspect dependencies for alextselegidis/easyappointments'. 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-7f62-4887-cfv5",
  "modified" : "2022-05-25T19:31:53Z",
  "published" : "2022-05-11T00:01:38Z",
  "aliases" : [ "CVE-2022-1397" ],
  "summary" : "Privilege escalation in easyappointments",
  "details" : "The Easy!Appointments API authorization is checked against the user's existence, without validating the permissions. As a result, a low privileged user (eg. provider) can create a new admin user via the \"/api/v1/admins/\" endpoint and take over the system. A [patch](https://github.com/alextselegidis/easyappointments/commit/63dbb51decfcc1631c398ecd6d30e3a337845526) is available on the `develop` branch of the repository.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "alextselegidis/easyappointments"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.4.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-1397"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/alextselegidis/easyappointments/commit/63dbb51decfcc1631c398ecd6d30e3a337845526"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/alextselegidis/easyappointments"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/5f69e094-ab8c-47a3-b01d-8c12a3b14c61"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-05-25T19:31:53Z",
    "nvd_published_at" : "2022-05-10T14:15:00Z"
  }
}