Skip to content

python3Packages.mistune_0_8: mark knownVulnerabilities for CVE-2022-34749#184209

Merged
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
risicle:ris-mistune-0.8.4-known-vulnerabilities
Aug 11, 2022
Merged

python3Packages.mistune_0_8: mark knownVulnerabilities for CVE-2022-34749#184209
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
risicle:ris-mistune-0.8.4-known-vulnerabilities

Conversation

@risicle
Copy link
Contributor

@risicle risicle commented Jul 31, 2022

Description of changes

https://nvd.nist.gov/vuln/detail/CVE-2022-34749

If someone wants to backport the fix instead, be my guest. Ultimately we probably want to remove mistune_0_8, but we'll still need to apply this knownVulnerabilities to 22.05.

mistune_2_0 addressed in #184019 & #184050

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@risicle risicle added 1.severity: security Issues which raise a security issue, or PRs that fix one backport release-22.05 labels Jul 31, 2022
@risicle risicle requested review from FRidh and jonringer as code owners July 31, 2022 12:15
@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Jul 31, 2022
@risicle risicle changed the title python3Packages.mistune_0_8: mark knownVulnerabilities CVE-2022-34749 python3Packages.mistune_0_8: mark knownVulnerabilities for CVE-2022-34749 Jul 31, 2022
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 31, 2022
@dotlambda
Copy link
Member

dotlambda commented Aug 11, 2022

Can we also remove mistune_0_8 after merging this? Multiple versions of a single package aren't allowed within pythonPackages anyway.
cc @KAction

@dotlambda dotlambda requested review from mweinelt and sikmir August 11, 2022 13:34
@dotlambda
Copy link
Member

@risicle Please allow committers to edit your PR or pull my commit dotlambda@d3462c9.

@KAction
Copy link
Contributor

KAction commented Aug 11, 2022

Perfectly fine by me. I actually packaged version 2.0 as dependency of md2gemini, I left version 0.8 just in case anybody needed it.

@KAction
Copy link
Contributor

KAction commented Aug 11, 2022

BTW, I don't see how this vulnerability is "CRITICAL". For many use-cases it is completely harmless.

@dotlambda
Copy link
Member

BTW, I don't see how this vulnerability is "CRITICAL".

Nobody claimed it is.

@KAction
Copy link
Contributor

KAction commented Aug 11, 2022

https://nvd.nist.gov/vuln/detail/CVE-2022-34749 says Base Score: 9.8 CRITICAL.

@risicle
Copy link
Contributor Author

risicle commented Aug 11, 2022

CVSS is rather... robotic and I think lends itself to over-exaggeration.

@github-actions
Copy link
Contributor

Successfully created backport PR #186149 for release-22.05.

@risicle
Copy link
Contributor Author

risicle commented Aug 11, 2022

Oh I was going to include @dotlambda 's change. Ah well, separate PR @dotlambda ?

@dotlambda
Copy link
Member

@SuperSandro2000 You just disabled more than 1000 packages. I won't have time for a while to file a PR but this is urgent.

@SuperSandro2000
Copy link
Member

Sigh, yeah, converting your commit into a PR in an hour.

@dotlambda
Copy link
Member

Can we also remove mistune_0_8 after merging this?

#186272

@vcunat
Copy link
Member

vcunat commented Aug 12, 2022

This is an issue. Some of our channel-critical tests depend on mistune (transitively?), so we're stuck without evaluations: https://hydra.nixos.org/jobset/nixos/trunk-combined#tabs-errors

@vcunat
Copy link
Member

vcunat commented Aug 12, 2022

Oh, the worst or maybe all of that was already resolved by PR #186198

@SuperSandro2000
Copy link
Member

Sorry, didn't find the time yesterday but I see that others already started to work on this. Thanks!

@vcunat
Copy link
Member

vcunat commented Aug 12, 2022

I confirm that evaluations do happen again. (also on 22.05)

@Mic92
Copy link
Member

Mic92 commented Aug 13, 2022

I looked at the fix they applied and the affected code does not even exists in 0.8. The knownVulnerabilities is not correct.
Also the CVE itself says that the issue only ever existed in 2.0.2 onwards.

@risicle
Copy link
Contributor Author

risicle commented Aug 13, 2022

In mistune through 2.0.2...

Does not mean"starting from version 2.0.2"

@risicle
Copy link
Contributor Author

risicle commented Aug 14, 2022

Shall I revert this? It's been 3 days and we still haven't sorted out the mess.

@dotlambda
Copy link
Member

Shall I revert this? It's been 3 days and we still haven't sorted out the mess.

#186272 solves most issues

@risicle
Copy link
Contributor Author

risicle commented Aug 14, 2022

It appears to have become a bit derailed.

@dotlambda
Copy link
Member

dotlambda commented Aug 14, 2022

How so? I see no reason to keep waiting with the merge.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/jupyter-broken-in-22-05/21108/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants