* bug#47188: "guix lint -c cve" does not account for language prefixes (rust-, python-, go-, ..)
@ 2021-03-16 9:29 Léo Le Bouter via Bug reports for GNU Guix
2021-03-16 13:05 ` zimoun
2021-03-18 13:26 ` Ludovic Courtès
0 siblings, 2 replies; 3+ messages in thread
From: Léo Le Bouter via Bug reports for GNU Guix @ 2021-03-16 9:29 UTC (permalink / raw)
To: 47188
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
./pre-inst-env guix lint -c cve python-urllib3@1.26.2
Here this should return at least CVE-2021-28363 but it does not because
the CVE database contains urllib3 and not python-urllib3 (which AFAICT
the cve linter searches for).
Annotating each and every python-, go-, and rust- package with cpe-name
properties is going to be very annoying. I suggest we add some
heuristics that try both the full name and prefix-trimmed name. python-
urllib3's cpe name and vendor is python (vendor) urllib3 (name).
Same story for CVE-2021-28305 and rust-diesel, though it doesnt even
have a CPE entry yet.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#47188: "guix lint -c cve" does not account for language prefixes (rust-, python-, go-, ..)
2021-03-16 9:29 bug#47188: "guix lint -c cve" does not account for language prefixes (rust-, python-, go-, ..) Léo Le Bouter via Bug reports for GNU Guix
@ 2021-03-16 13:05 ` zimoun
2021-03-18 13:26 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: zimoun @ 2021-03-16 13:05 UTC (permalink / raw)
To: Léo Le Bouter; +Cc: 47188
Hi,
On Tue, 16 Mar 2021 at 10:30, Léo Le Bouter via Bug reports for GNU
Guix <bug-guix@gnu.org> wrote:
> ./pre-inst-env guix lint -c cve python-urllib3@1.26.2
> Here this should return at least CVE-2021-28363 but it does not because
> the CVE database contains urllib3 and not python-urllib3 (which AFAICT
> the cve linter searches for).
Does the CVE use the upstream name? Or a normalized name?
I mean, in the R world, packages can have names as 'org.EcK12.eg.db'
which becomes "r-org-eck12-eg-db". To easy the mapping for updating
and co, the package definition contains:
(properties
`((upstream-name . "org.EcK12.eg.db")))
Maybe, it could be worth to have similar things. WDYT?
All the best,
simon
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#47188: "guix lint -c cve" does not account for language prefixes (rust-, python-, go-, ..)
2021-03-16 9:29 bug#47188: "guix lint -c cve" does not account for language prefixes (rust-, python-, go-, ..) Léo Le Bouter via Bug reports for GNU Guix
2021-03-16 13:05 ` zimoun
@ 2021-03-18 13:26 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2021-03-18 13:26 UTC (permalink / raw)
To: Léo Le Bouter; +Cc: 47188
Hi,
Léo Le Bouter <lle-bout@zaclys.net> skribis:
> ./pre-inst-env guix lint -c cve python-urllib3@1.26.2
> Here this should return at least CVE-2021-28363 but it does not because
> the CVE database contains urllib3 and not python-urllib3 (which AFAICT
> the cve linter searches for).
>
> Annotating each and every python-, go-, and rust- package with cpe-name
> properties is going to be very annoying. I suggest we add some
> heuristics that try both the full name and prefix-trimmed name. python-
> urllib3's cpe name and vendor is python (vendor) urllib3 (name).
>
> Same story for CVE-2021-28305 and rust-diesel, though it doesnt even
> have a CPE entry yet.
Yes, that’s an issue. We can address these by adding a ‘cpe-name’
property (info "(guix) Invoking guix lint"), but that’s going to be
tedious. We can at least add it to high-profile packages for now.
Tooling that suggests or deduces the CPE name would help a lot:
https://issues.guix.gnu.org/42299
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-18 13:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16 9:29 bug#47188: "guix lint -c cve" does not account for language prefixes (rust-, python-, go-, ..) Léo Le Bouter via Bug reports for GNU Guix
2021-03-16 13:05 ` zimoun
2021-03-18 13:26 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).