CVE-2022-26986: Impresscms/impresscms SQL Injection Vulnerability
HIGHCVE-2022-26986 is a HIGH (CVSS 7.2) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Impresscms/impresscms libraries in the Packagist ecosystem. The issue involves sql injection in impresscms. Remediation is available in the latest vendor maintenance releases.
CVE-2022-26986 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-26986
To remediate this vulnerability, upgrade all affected Impresscms/impresscms 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 impresscms/impresscms 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 impresscms/impresscms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-26986, inspect your project dependencies for Impresscms/impresscms:
inspect dependencies for impresscms/impresscms
Analyze the terminal output to locate any version of Impresscms/impresscms 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-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 Impresscms/impresscms, 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-26986 Affected Impresscms/impresscms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
impresscms/impresscms
|
Packagist |
≤ 1.4.3
|
|
References
Frequently Asked Questions
What is CVE-2022-26986?
Which Impresscms/impresscms versions are affected?
What version fixes CVE-2022-26986?
Is impresscms/impresscms affected?
What is the CVSS score of CVE-2022-26986?
What CWE is associated with CVE-2022-26986?
How can I check Packagist dependencies for CVE-2022-26986?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f99r-jjgr-f373",
"modified" : "2022-04-18T22:23:05Z",
"published" : "2022-04-06T00:01:30Z",
"aliases" : [ "CVE-2022-26986" ],
"summary" : "SQL injection in ImpressCMS",
"details" : "SQL Injection in ImpressCMS 1.4.3 and earlier allows remote attackers to inject into the code in unintended way, this allows an attacker to read and modify the sensitive information from the database used by the application. If misconfigured, an attacker can even upload a malicious web shell to compromise the entire system.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "impresscms/impresscms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.4.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-26986"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ImpressCMS/impresscms"
}, {
"type" : "WEB",
"url" : "https://github.com/sartlabs/0days/blob/main/ImpressCMS1.4.3/Exploit.txt"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/171485/ImpressCMS-1.4.3-SQL-Injection.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-07T18:21:23Z",
"nvd_published_at" : "2022-04-05T15:15:00Z"
}
}