CVE-2022-1397: Alextselegidis/easyappointments Privilege Escalation Vulnerability
HIGHCVE-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
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).
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.
Upgrade alextselegidis/easyappointments to Latest secure release
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
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?
Which Alextselegidis/easyappointments versions are affected?
What version fixes CVE-2022-1397?
Is alextselegidis/easyappointments affected?
What is the CVSS score of CVE-2022-1397?
What CWE is associated with CVE-2022-1397?
How can I check Packagist dependencies for CVE-2022-1397?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}