CVE-2018-12556
The signature verification routine in install.sh in yarnpkg/website through 2018-06-05 only verifies that the yarn release is signed by any (arbitrary) key in the local keyring of the user, and does not pin the signature to the yarn release key, which allows remote attackers to sign tampered yarn release packages with their own key.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-yarnpkg | Fix pending | UBUNTU-CVE-2018-12556 | |
| Ubuntu 26.04 | node-yarnpkg | Under investigation | UBUNTU-CVE-2018-12556 | |
| Ubuntu 25.10 | node-yarnpkg | Will not fix It appears this is about the install.sh that is run via a curl url | bash - auto-updated mechanism inside the program. It looks like it tries to determine if… | UBUNTU-CVE-2018-12556 | |
| Ubuntu 24.04 | node-yarnpkg | Under investigation | UBUNTU-CVE-2018-12556 | |
| Ubuntu 22.04 | node-yarnpkg | Under investigation | UBUNTU-CVE-2018-12556 | |
| Ubuntu 20.04 | node-yarnpkg | Will not fix It appears this is about the install.sh that is run via a curl url | bash - auto-updated mechanism inside the program. It looks like it tries to determine if… | UBUNTU-CVE-2018-12556 |
References
- https://github.com/yarnpkg/website/commits/master
- http://seclists.org/fulldisclosure/2019/Apr/38
- http://packetstormsecurity.com/files/152703/Johnny-You-Are-Fired.html
- https://www.openwall.com/lists/oss-security/2019/04/30/4
- https://github.com/RUB-NDS/Johnny-You-Are-Fired
- https://github.com/RUB-NDS/Johnny-You-Are-Fired/blob/master/paper/johnny-fired.pdf
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.