CVE-2023-42454: Sqlpage SQLpage Vulnerable To Public Exposure Vulnerability

CRITICAL
Advisory Identifier: GHSA-v5wf-jg37-r9m5
CVSS 10.0
CWE-200
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-42454
GHSA Identifier GHSA-v5wf-jg37-r9m5
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Sqlpage
Package Ecosystem crates.io
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

sqlpage fixed: 0.11.1
Upgrade sqlpage to 0.11.1
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 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

### Impact If - you are using a SQLPage version older than v0.11.1 - your SQLPage instance is exposed publicly - the database connection string is specified in the `sqlpage/sqlpage.json` configuration file (not in an environment variable) - the web_root is the current working directory (the default) - your database is exposed publicly then an attacker could retrieve the database connection information from SQLPage and use it to connect to your database directly. ### Patches Upgrade to [v0.11.1](https://github.com/lovasoa/SQLpage/releases/tag/v0.11.1) as soon as possible. ### Workarounds If you cannot upgrade immediately: - Using an environment variable instead of the configuration file to specify the database connection string prevents exposing it on vulnerable versions. - 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. - And in any case, you should generally avoid exposing your database publicly ### References https://github.com/lovasoa/SQLpage/issues/89

CVE-2023-42454 Affected Sqlpage Versions

1 component(s)
Fixed Versions:
0.11.1
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?
CVE-2023-42454 is a security vulnerability in Sqlpage involving SQLpage vulnerable to public exposure of database credentials under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Sqlpage versions are affected?
Affected versions include releases prior to 0.11.1 across affected packages: sqlpage.
What version fixes CVE-2023-42454?
Upgrading to 0.11.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sqlpage affected?
Yes, sqlpage is affected in releases prior to 0.11.1. Upgrade your dependency to 0.11.1 or later.
What is the CVSS score of CVE-2023-42454?
CVE-2023-42454 has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2023-42454?
CVE-2023-42454 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check crates.io dependencies for CVE-2023-42454?
Run the dependency tree command: 'inspect dependencies for sqlpage'. 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-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"
  }
}