diff --git a/advisories/github-reviewed/2024/07/GHSA-fg4q-ccq8-3r5q/GHSA-fg4q-ccq8-3r5q.json b/advisories/github-reviewed/2024/07/GHSA-fg4q-ccq8-3r5q/GHSA-fg4q-ccq8-3r5q.json new file mode 100644 index 00000000000..1a3381feb51 --- /dev/null +++ b/advisories/github-reviewed/2024/07/GHSA-fg4q-ccq8-3r5q/GHSA-fg4q-ccq8-3r5q.json @@ -0,0 +1,96 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-fg4q-ccq8-3r5q", + "modified": "2024-07-08T14:20:33Z", + "published": "2024-07-08T14:20:33Z", + "aliases": [ + "CVE-2024-39677" + ], + "summary": "NHibernate SQL injection vulnerability in discriminator mappings, static fields referenced in HQL, and some utilities", + "details": "### Impact\nA SQL injection vulnerability exists in some types implementing `ILiteralType.ObjectToSQLString`. Callers of these methods are exposed to the vulnerability, which includes:\n - Mappings using inheritance with discriminator values:\n - The discriminator value could be written in the mapping in a way exploiting the vulnerability of the associated discriminator type, if that type is among the vulnerable ones.\n - The current culture settings for formatting the discriminator value type could be altered in a way resulting into SQL injections with the discriminator values.\n - HQL queries referencing a static field of the application.\n - Users of the `SqlInsertBuilder` and `SqlUpdateBuilder` utilities, calling their `AddColumn` overload taking a literal value. These overloads are unused by NHibernate but could be used by users referencing directly these utilities.\n - Any direct use of the `ObjectToSQLString` methods for building SQL queries on the user side.\n\n### Patches\nReleases 5.4.9 and 5.5.2.\n\n### Workarounds\n - Ensure the application does not use the features listed above.\n - For discriminator usages, ensure the discriminator values in the mappings do not contain quotes for string discriminators. Furthermore, for types which `ToString` conversion can be altered to include SQL injections through adequate hacking of the current culture settings, either change for another type, or ensure the used values cannot allow culture exploits, or ensure the application performs sanity checks of the current culture settings. Types sensitive to culture include integers for negative values, dates, times and datetimes, floats and decimals.\n\n### References\n - #3516\n - #3517\n - #3547\n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N" + }, + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "NuGet", + "name": "NHibernate" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "5.4.9" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "NuGet", + "name": "NHibernate" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "5.5.0" + }, + { + "fixed": "5.5.2" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/nhibernate/nhibernate-core/security/advisories/GHSA-fg4q-ccq8-3r5q" + }, + { + "type": "WEB", + "url": "https://github.com/nhibernate/nhibernate-core/issues/3516" + }, + { + "type": "WEB", + "url": "https://github.com/nhibernate/nhibernate-core/pull/3517" + }, + { + "type": "WEB", + "url": "https://github.com/nhibernate/nhibernate-core/pull/3547" + }, + { + "type": "WEB", + "url": "https://github.com/nhibernate/nhibernate-core/commit/b4a69d1a5ff5744312478d70308329af496e4ba9" + }, + { + "type": "PACKAGE", + "url": "https://github.com/nhibernate/nhibernate-core" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-89" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-07-08T14:20:33Z", + "nvd_published_at": null + } +} \ No newline at end of file diff --git a/advisories/unreviewed/2024/07/GHSA-mwxm-35f8-6vg2/GHSA-mwxm-35f8-6vg2.json b/advisories/github-reviewed/2024/07/GHSA-mwxm-35f8-6vg2/GHSA-mwxm-35f8-6vg2.json similarity index 58% rename from advisories/unreviewed/2024/07/GHSA-mwxm-35f8-6vg2/GHSA-mwxm-35f8-6vg2.json rename to advisories/github-reviewed/2024/07/GHSA-mwxm-35f8-6vg2/GHSA-mwxm-35f8-6vg2.json index 19df49e44b4..e60456bc11d 100644 --- a/advisories/unreviewed/2024/07/GHSA-mwxm-35f8-6vg2/GHSA-mwxm-35f8-6vg2.json +++ b/advisories/github-reviewed/2024/07/GHSA-mwxm-35f8-6vg2/GHSA-mwxm-35f8-6vg2.json @@ -1,26 +1,53 @@ { "schema_version": "1.4.0", "id": "GHSA-mwxm-35f8-6vg2", - "modified": "2024-07-05T21:31:44Z", + "modified": "2024-07-08T14:21:03Z", "published": "2024-07-05T21:31:44Z", "aliases": [ "CVE-2024-5753" ], + "summary": "Vanna vulnerable to SQL Injection", "details": "vanna-ai/vanna version v0.3.4 is vulnerable to SQL injection in some file-critical functions such as `pg_read_file()`. This vulnerability allows unauthenticated remote users to read arbitrary local files on the victim server, including sensitive files like `/etc/passwd`, by exploiting the exposed SQL queries via a Python Flask API.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N" + }, + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N" } ], "affected": [ - + { + "package": { + "ecosystem": "PyPI", + "name": "vanna" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "last_affected": "0.3.4" + } + ] + } + ] + } ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-5753" }, + { + "type": "PACKAGE", + "url": "https://github.com/vanna-ai/vanna" + }, { "type": "WEB", "url": "https://huntr.com/bounties/a3f913d6-c717-4528-b974-26d8d9e839ca" @@ -31,8 +58,8 @@ "CWE-200" ], "severity": "HIGH", - "github_reviewed": false, - "github_reviewed_at": null, + "github_reviewed": true, + "github_reviewed_at": "2024-07-08T14:21:03Z", "nvd_published_at": "2024-07-05T20:15:02Z" } } \ No newline at end of file