The remote host is missing an update for the 'sqlite3' package(s) announced via the MGASA-2023-0094 advisory. SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script, does not properly implement the azProhibitedFunctions protection mechanism, and instead allows UDF functions such as WRITEFILE. (CVE-2022-46908
Reporter | Title | Published | Views | Family All 67 |
---|---|---|---|---|
![]() | CVE-2022-46908 | 12 Dec 202206:15 | – | debiancve |
![]() | Updated sqlite3 packages fix security vulnerability | 19 Mar 202301:16 | – | mageia |
![]() | CGA-9v6f-253v-7jx3 | 6 Jun 202412:25 | – | osv |
![]() | BIT-sqlite-2022-46908 | 6 Mar 202411:05 | – | osv |
![]() | libsqlite3-0-3.40.0-2.1 on GA media | 15 Jun 202400:00 | – | osv |
![]() | sqlite3 vulnerabilities | 3 Jan 202418:09 | – | osv |
![]() | Design/Logic Flaw | 12 Dec 202206:15 | – | prion |
![]() | CVE-2022-46908 | 13 Dec 202209:35 | – | redhatcve |
![]() | SUSE: Security Advisory (SUSE-SU-2022:4603-1) | 22 Dec 202200:00 | – | openvas |
![]() | SQLite 3.37.0 - 3.40.0 Information Disclosure Vulnerability | 13 Dec 202200:00 | – | openvas |
# SPDX-FileCopyrightText: 2023 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.1.10.2023.0094");
script_cve_id("CVE-2022-46908");
script_tag(name:"creation_date", value:"2023-03-28 00:26:44 +0000 (Tue, 28 Mar 2023)");
script_version("2024-10-23T05:05:59+0000");
script_tag(name:"last_modification", value:"2024-10-23 05:05:59 +0000 (Wed, 23 Oct 2024)");
script_tag(name:"cvss_base", value:"6.4");
script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:S/C:C/I:C/A:P");
script_tag(name:"severity_vector", value:"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2022-12-20 20:06:51 +0000 (Tue, 20 Dec 2022)");
script_name("Mageia: Security Advisory (MGASA-2023-0094)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2023 Greenbone AG");
script_family("Mageia Linux Local Security Checks");
script_dependencies("gather-package-list.nasl");
script_mandatory_keys("ssh/login/mageia_linux", "ssh/login/release", re:"ssh/login/release=MAGEIA8");
script_xref(name:"Advisory-ID", value:"MGASA-2023-0094");
script_xref(name:"URL", value:"https://advisories.mageia.org/MGASA-2023-0094.html");
script_xref(name:"URL", value:"https://bugs.mageia.org/show_bug.cgi?id=31312");
script_xref(name:"URL", value:"https://lists.opensuse.org/archives/list/[email protected]/thread/XNUCFJDJQRYX6KHGSM7ODVW7QJMN7GP5/");
script_xref(name:"URL", value:"https://lists.suse.com/pipermail/sle-security-updates/2022-December/013303.html");
script_tag(name:"summary", value:"The remote host is missing an update for the 'sqlite3' package(s) announced via the MGASA-2023-0094 advisory.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable package version is present on the target host.");
script_tag(name:"insight", value:"SQLite through 3.40.0, when relying on --safe for execution of an
untrusted CLI script, does not properly implement the
azProhibitedFunctions protection mechanism, and instead allows UDF
functions such as WRITEFILE. (CVE-2022-46908)");
script_tag(name:"affected", value:"'sqlite3' package(s) on Mageia 8.");
script_tag(name:"solution", value:"Please install the updated package(s).");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"package");
exit(0);
}
include("revisions-lib.inc");
include("pkg-lib-rpm.inc");
release = rpm_get_ssh_release();
if(!release)
exit(0);
res = "";
report = "";
if(release == "MAGEIA8") {
if(!isnull(res = isrpmvuln(pkg:"lemon", rpm:"lemon~3.39.2~1.1.mga8", rls:"MAGEIA8"))) {
report += res;
}
if(!isnull(res = isrpmvuln(pkg:"lib64sqlite3-devel", rpm:"lib64sqlite3-devel~3.39.2~1.1.mga8", rls:"MAGEIA8"))) {
report += res;
}
if(!isnull(res = isrpmvuln(pkg:"lib64sqlite3-static-devel", rpm:"lib64sqlite3-static-devel~3.39.2~1.1.mga8", rls:"MAGEIA8"))) {
report += res;
}
if(!isnull(res = isrpmvuln(pkg:"lib64sqlite3_0", rpm:"lib64sqlite3_0~3.39.2~1.1.mga8", rls:"MAGEIA8"))) {
report += res;
}
if(!isnull(res = isrpmvuln(pkg:"libsqlite3-devel", rpm:"libsqlite3-devel~3.39.2~1.1.mga8", rls:"MAGEIA8"))) {
report += res;
}
if(!isnull(res = isrpmvuln(pkg:"libsqlite3-static-devel", rpm:"libsqlite3-static-devel~3.39.2~1.1.mga8", rls:"MAGEIA8"))) {
report += res;
}
if(!isnull(res = isrpmvuln(pkg:"libsqlite3_0", rpm:"libsqlite3_0~3.39.2~1.1.mga8", rls:"MAGEIA8"))) {
report += res;
}
if(!isnull(res = isrpmvuln(pkg:"sqlite3", rpm:"sqlite3~3.39.2~1.1.mga8", rls:"MAGEIA8"))) {
report += res;
}
if(!isnull(res = isrpmvuln(pkg:"sqlite3-tcl", rpm:"sqlite3-tcl~3.39.2~1.1.mga8", rls:"MAGEIA8"))) {
report += res;
}
if(!isnull(res = isrpmvuln(pkg:"sqlite3-tools", rpm:"sqlite3-tools~3.39.2~1.1.mga8", rls:"MAGEIA8"))) {
report += res;
}
if(report != "") {
security_message(data:report);
} else if(__pkg_match) {
exit(99);
}
exit(0);
}
exit(0);
Transform Your Security Services
Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.
Book a live demo