Your message dated Sat, 09 Jul 2022 11:47:43 +0100 with message-id <2280fe8c78e64b02a6c1d04c6dde5a32e342ba81.camel@adam-barratt.org.uk> and subject line Closing requests for updates included in 11.4 has caused the Debian Bug report #1010439, regarding bullseye-pu: package node-sqlite3/5.0.0+ds1-1+deb11u1 to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 1010439: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010439 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: bullseye-pu: package node-sqlite3/5.0.0+ds1-1+deb11u1
- From: Yadd <yadd@debian.org>
- Date: Sun, 01 May 2022 17:34:16 +0200
- Message-id: <165141925672.1645158.15057012384932718649.reportbug@debian007.xnr.fr>
Package: release.debian.org Severity: normal Tags: bullseye User: release.debian.org@packages.debian.org Usertags: pu [ Reason ] node-sqlite3 is vulnerable to denian of service (CVE-2022-21227) [ Impact ] Medium security issue [ Tests ] New test added, passed [ Risks ] Low risk, patch is trivial [ Checklist ] [X] *all* changes are documented in the d/changelog [X] I reviewed all changes and I approve them [X] attach debdiff against the package in (old)stable [X] the issue is verified as fixed in unstable [ Changes ] Check bad arguments Cheers, Yadddiff --git a/debian/changelog b/debian/changelog index 32c6f70..88403c9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +node-sqlite3 (5.0.0+ds1-1+deb11u1) bullseye; urgency=medium + + * Team upload + * Fix denial-of-service (Closes: CVE-2022-21227) + + -- Yadd <yadd@debian.org> Sun, 01 May 2022 17:33:33 +0200 + node-sqlite3 (5.0.0+ds1-1) unstable; urgency=medium * Team upload diff --git a/debian/patches/CVE-2022-21227.patch b/debian/patches/CVE-2022-21227.patch new file mode 100644 index 0000000..e95c94d --- /dev/null +++ b/debian/patches/CVE-2022-21227.patch @@ -0,0 +1,41 @@ +Description: fix segfault of invalid toString() object +Author: Kewde <kewde@particl.io> +Origin: upstream, https://github.com/TryGhost/node-sqlite3/commit/593c9d49 +Bug: https://github.com/advisories/GHSA-9qrh-qjmc-5w2p +Forwarded: not-needed +Reviewed-By: Yadd <yadd@debian.org> +Last-Update: 2022-05-01 + +--- a/src/statement.cc ++++ b/src/statement.cc +@@ -210,7 +210,13 @@ + return new Values::Float(pos, source.ToNumber().DoubleValue()); + } + else if (source.IsObject()) { +- std::string val = source.ToString().Utf8Value(); ++ Napi::String napiVal = source.ToString(); ++ // Check whether toString returned a value that is not undefined. ++ if(napiVal.Type() == 0) { ++ return NULL; ++ } ++ ++ std::string val = napiVal.Utf8Value(); + return new Values::Text(pos, val.length(), val.c_str()); + } + else { +--- a/test/other_objects.test.js ++++ b/test/other_objects.test.js +@@ -86,4 +86,13 @@ + }); + }); + }); ++ ++ it('should ignore faulty toString', function(done) { ++ const faulty = { toString: 23 }; ++ db.run("INSERT INTO txt_table VALUES(?)", faulty, function (err) { ++ assert.notEqual(err, undefined); ++ done(); ++ }); ++ }); ++ + }); diff --git a/debian/patches/series b/debian/patches/series index 327413f..8d03fa0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ disable-hard-test.patch +CVE-2022-21227.patch
--- End Message ---
--- Begin Message ---
- To: 1000355-done@bugs.debian.org, 1003261-done@bugs.debian.org, 1003713-done@bugs.debian.org, 1004459-done@bugs.debian.org, 1004580-done@bugs.debian.org, 1005129-done@bugs.debian.org, 1005135-done@bugs.debian.org, 1005231-done@bugs.debian.org, 1005237-done@bugs.debian.org, 1005252-done@bugs.debian.org, 1005256-done@bugs.debian.org, 1006316-done@bugs.debian.org, 1006504-done@bugs.debian.org, 1007714-done@bugs.debian.org, 1007762-done@bugs.debian.org, 1008045-done@bugs.debian.org, 1008153-done@bugs.debian.org, 1008161-done@bugs.debian.org, 1008162-done@bugs.debian.org, 1008166-done@bugs.debian.org, 1008168-done@bugs.debian.org, 1008268-done@bugs.debian.org, 1008577-done@bugs.debian.org, 1009077-done@bugs.debian.org, 1009250-done@bugs.debian.org, 1009345-done@bugs.debian.org, 1009363-done@bugs.debian.org, 1009726-done@bugs.debian.org, 1010037-done@bugs.debian.org, 1010050-done@bugs.debian.org, 1010058-done@bugs.debian.org, 1010194-done@bugs.debian.org, 1010211-done@bugs.debian.org, 1010304-done@bugs.debian.org, 1010383-done@bugs.debian.org, 1010439-done@bugs.debian.org, 1010613-done@bugs.debian.org, 1010857-done@bugs.debian.org, 1010924-done@bugs.debian.org, 1010963-done@bugs.debian.org, 1011022-done@bugs.debian.org, 1011198-done@bugs.debian.org, 1011271-done@bugs.debian.org, 1011287-done@bugs.debian.org, 1011331-done@bugs.debian.org, 1011359-done@bugs.debian.org, 1011365-done@bugs.debian.org, 1011426-done@bugs.debian.org, 1011746-done@bugs.debian.org, 1011939-done@bugs.debian.org, 1011942-done@bugs.debian.org, 1012033-done@bugs.debian.org, 1012047-done@bugs.debian.org, 1012140-done@bugs.debian.org, 1012322-done@bugs.debian.org, 1012323-done@bugs.debian.org, 1012331-done@bugs.debian.org, 1012553-done@bugs.debian.org, 1012585-done@bugs.debian.org, 1012723-done@bugs.debian.org, 1013237-done@bugs.debian.org, 1013306-done@bugs.debian.org, 1013418-done@bugs.debian.org, 1013755-done@bugs.debian.org, 1013879-done@bugs.debian.org, 1013880-done@bugs.debian.org, 1013944-done@bugs.debian.org, 1014014-done@bugs.debian.org, 1014054-done@bugs.debian.org, 1014079-done@bugs.debian.org, 1014199-done@bugs.debian.org, 1014206-done@bugs.debian.org, 1014221-done@bugs.debian.org
- Subject: Closing requests for updates included in 11.4
- From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
- Date: Sat, 09 Jul 2022 11:47:43 +0100
- Message-id: <2280fe8c78e64b02a6c1d04c6dde5a32e342ba81.camel@adam-barratt.org.uk>
Package: release.debian.org Version: 11.4 (re-sending with fixed bug numbers) Hi, The updates discussed in these bugs were included in today's bullseye point release. Regards, Adam
--- End Message ---