CVE-2023-42454: Sqlpage SQLpage Vulnerable To Public Exposure Vulnerability
CRITICALCVE-2023-42454 is a CRITICAL (CVSS 10.0) sqlpage vulnerable to public exposure vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Sqlpage libraries in the crates.io ecosystem. The issue involves sqlpage vulnerable to public exposure of database credentials. Remediation is available by upgrading affected packages to version 0.11.1.
CVE-2023-42454 at a Glance
Security Impact
CVSS: 10.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N).
How to Fix CVE-2023-42454
To remediate this vulnerability, upgrade all affected Sqlpage 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 sqlpage to 0.11.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sqlpage
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-42454, inspect your project dependencies for Sqlpage:
inspect dependencies for sqlpage
Analyze the terminal output to locate any version of Sqlpage in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.11.1), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Sqlpage, 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-2023-42454 Affected Sqlpage Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sqlpage
|
crates.io |
< 0.11.1
|
0.11.1
|
References
Frequently Asked Questions
What is CVE-2023-42454?
Which Sqlpage versions are affected?
What version fixes CVE-2023-42454?
Is sqlpage affected?
What is the CVSS score of CVE-2023-42454?
What CWE is associated with CVE-2023-42454?
How can I check crates.io dependencies for CVE-2023-42454?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v5wf-jg37-r9m5",
"modified" : "2023-09-21T17:10:06Z",
"published" : "2023-09-21T17:10:06Z",
"aliases" : [ "CVE-2023-42454" ],
"summary" : "SQLpage vulnerable to public exposure of database credentials",
"details" : "### Impact\n\nIf\n - you are using a SQLPage version older than v0.11.1 \n - your SQLPage instance is exposed publicly\n - the database connection string is specified in the `sqlpage/sqlpage.json` configuration file (not in an environment variable)\n - the web_root is the current working directory (the default)\n - your database is exposed publicly\n\nthen an attacker could retrieve the database connection information from SQLPage and use it to connect to your database directly.\n\n### Patches\n\nUpgrade to [v0.11.1](https://github.com/lovasoa/SQLpage/releases/tag/v0.11.1) as soon as possible.\n\n### Workarounds\n\nIf you cannot upgrade immediately:\n\n - Using an environment variable instead of the configuration file to specify the database connection string prevents exposing it on vulnerable versions.\n - Using a different [web root](https://github.com/lovasoa/SQLpage/blob/main/configuration.md) (that is not a parent of the SQLPage configuration directory) fixes the issue.\n - And in any case, you should generally avoid exposing your database publicly \n\n### References\n\nhttps://github.com/lovasoa/SQLpage/issues/89\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "sqlpage"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.11.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/lovasoa/SQLpage/security/advisories/GHSA-v5wf-jg37-r9m5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-42454"
}, {
"type" : "WEB",
"url" : "https://github.com/lovasoa/SQLpage/issues/89"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lovasoa/SQLpage"
}, {
"type" : "WEB",
"url" : "https://github.com/lovasoa/SQLpage/releases/tag/v0.11.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-21T17:10:06Z",
"nvd_published_at" : "2023-09-18T22:15:47Z"
}
}