Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732638 - <dev-perl/DBD-SQLite-1.660.0[-system-sqlite]: Multiple vulnerabilities from bundled SQLite
Summary: <dev-perl/DBD-SQLite-1.660.0[-system-sqlite]: Multiple vulnerabilities from b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL:
Whiteboard: C2 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-14 21:17 UTC by Sam James
Modified: 2021-06-02 13:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: No


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-14 21:17:29 UTC
From https://gitweb.gentoo.org/repo/gentoo.git/commit?id=5aa87584945e5ae652c70e9504273ed6de9baa2f:

"Upstream:
- Upgrade bundled SQLite to 3.29.0 for
  * security fixes
  * ALTER TABLE ... RENAME COLUMN
  * UPSERT"

I'm concerned about this because 3.29 isn't the latest and most SQLite releases have security fixes.
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-07-14 23:53:15 UTC
(In reply to Sam James from comment #0)
> From
> https://gitweb.gentoo.org/repo/gentoo.git/
> commit?id=5aa87584945e5ae652c70e9504273ed6de9baa2f:
> 
> "Upstream:
> - Upgrade bundled SQLite to 3.29.0 for
>   * security fixes
>   * ALTER TABLE ... RENAME COLUMN
>   * UPSERT"
> 
> I'm concerned about this because 3.29 isn't the latest and most SQLite
> releases have security fixes.

Indeed. This is somewhat unavoidable, and bundling is a necessity as its frequently broken by system-sqlite. ( and USE=system-sqlite is use.stable.masked for this reason )

system-sqlite is working "For now", but history proves we can make no guarantees about this.
Comment 2 Larry the Git Cow gentoo-dev 2020-08-31 05:19:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44c87eb13d21ec3698e1ff15422415b628981da1

commit 44c87eb13d21ec3698e1ff15422415b628981da1
Author:     Kent Fredric <kentnl@gentoo.org>
AuthorDate: 2020-08-31 05:17:16 +0000
Commit:     Kent Fredric <kentnl@gentoo.org>
CommitDate: 2020-08-31 05:18:31 +0000

    dev-perl/DBD-SQLite: Bump to version 1.660.0
    
    Upstream:
    - Upgrade bundled SQLite to 3.32.3
    - Add several SQL_ types as alias
    - Don't return unitialized local variable when unexpected number of
      results returned in perl_vt_Eof()
      https://github.com/DBD-SQLite/DBD-SQLite/pull/55
    - Ensure filename is defined in sqlite_db_filename
      https://github.com/DBD-SQLite/DBD-SQLite/pull/54
    - Allow create_function to return an an array reference to specify the
      type of the value
    
    Bug: https://bugs.gentoo.org/732638
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Kent Fredric <kentnl@gentoo.org>

 dev-perl/DBD-SQLite/DBD-SQLite-1.660.0.ebuild | 58 +++++++++++++++++++++++++++
 dev-perl/DBD-SQLite/Manifest                  |  1 +
 dev-perl/DBD-SQLite/metadata.xml              |  1 +
 3 files changed, 60 insertions(+)
Comment 3 Luke-Jr 2020-11-15 19:34:35 UTC
For some reason, un-USE-masking isn't working either:

/etc/portage/profile/package.use.stable.mask/system-libs
    dev-perl/DBD-SQLite -system_sqlite

...gets ignored by Portage...
Comment 4 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2020-11-15 19:36:43 UTC
Time to stable?
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-11-15 21:11:27 UTC
(In reply to Luke-Jr from comment #3)
> For some reason, un-USE-masking isn't working either:
> 
> /etc/portage/profile/package.use.stable.mask/system-libs
>     dev-perl/DBD-SQLite -system_sqlite
> 
> ...gets ignored by Portage...

That'll be because its a hyphen, not an underscore.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-16 00:22:47 UTC
arm64 done
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-16 00:43:03 UTC
arm done
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-16 00:50:55 UTC
amd64 done
Comment 9 Agostino Sarubbo gentoo-dev 2020-11-17 19:05:38 UTC
s390 stable
Comment 10 Agostino Sarubbo gentoo-dev 2020-11-17 19:10:43 UTC
sparc stable
Comment 11 Thomas Deutschmann (RETIRED) gentoo-dev 2020-11-17 21:03:31 UTC
x86 stable
Comment 12 Agostino Sarubbo gentoo-dev 2020-11-18 06:55:22 UTC
ppc stable
Comment 13 Agostino Sarubbo gentoo-dev 2020-11-19 11:17:56 UTC
ppc64 stable
Comment 14 Sergei Trofimovich (RETIRED) gentoo-dev 2020-11-23 08:22:34 UTC
hppa stable
Comment 15 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2020-11-23 17:46:53 UTC
Bundled version is 3.22.0, and that version appears to be affected by CVE-{2018-{8740,20346,20505,20506},2019-{5018,8457,9936,9937,16168}}, which in our Bugzilla is bug 650952, bug 672942, bug 685838, bug 684840, and bug 697678, and we don't have a bug for CVE-2018-2050{5,6} or CVE-2019-8457. The worst whiteboard any of these bugs have is A2. It seems that CVE-2018-20506 can allow SQL RCE, too.


Maintainers, please cleanup.
Comment 16 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2020-12-27 08:54:06 UTC
Dropping to C due to system-sqlite package.use.stable.mask. Maintainer: Ping, please cleanup.
Comment 17 Andreas K. Hüttel archtester gentoo-dev 2021-05-04 22:00:45 UTC
(In reply to John Helmert III from comment #16)
> Dropping to C due to system-sqlite package.use.stable.mask. Maintainer:
> Ping, please cleanup.

Cleanup done
Comment 18 Thomas Deutschmann (RETIRED) gentoo-dev 2021-06-02 13:13:52 UTC
GLSA Vote: No