{"id":"GHSA-fv42-mx39-6fpw","summary":"Whole-script approval in Jenkins Script Security Plugin vulnerable to SHA-1 collisions","details":"Script Security Plugin 1189.vb_a_b_7c8fd5fde and earlier stores whole-script approvals as the [SHA-1 hash](https://en.wikipedia.org/wiki/SHA-1) of the approved script. SHA-1 no longer meets the security standards for producing a cryptographically secure message digest.\n\nScript Security Plugin 1190.v65867a_a_47126 uses SHA-512 for new whole-script approvals. Previously approved scripts will have their SHA-1 based whole-script approval replaced with a corresponding SHA-512 whole-script approval when the script is next used.\n\nWhole-script approval only stores the SHA-1 or SHA-512 hash, so it is not possible to migrate all previously approved scripts automatically on startup.\n\nAdministrators concerned about SHA-1 collision attacks on the whole-script approval feature are able to revoke all previous (SHA-1) script approvals on the In-Process Script Approval page.","aliases":["CVE-2022-45379"],"modified":"2024-01-04T12:44:01.035209Z","published":"2022-11-16T12:00:22Z","database_specific":{"nvd_published_at":"2022-11-15T20:15:00Z","cwe_ids":["CWE-326","CWE-328"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-11-21T22:20:41Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45379"},{"type":"WEB","url":"https://github.com/jenkinsci/script-security-plugin/commit/65867aa471265a16198b92fb439782ba3554da66"},{"type":"PACKAGE","url":"https://github.com/jenkinsci/script-security-plugin"},{"type":"WEB","url":"https://www.jenkins.io/security/advisory/2022-11-15/#SECURITY-2564"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2022/11/15/4"}],"affected":[{"package":{"name":"org.jenkins-ci.plugins:script-security","ecosystem":"Maven","purl":"pkg:maven/org.jenkins-ci.plugins/script-security"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1190.v65867a_a_47126"}]}],"versions":["1.0","1.0-beta-1","1.0-beta-2","1.0-beta-3","1.0-beta-4","1.0-beta-5","1.0-beta-6","1.1","1.10","1.11","1.12","1.13","1.14","1.15","1.16","1.17","1.18","1.18.1","1.19","1.2","1.20","1.21","1.22","1.23","1.24","1.25","1.26","1.27","1.28","1.29","1.29.1","1.3","1.30","1.31","1.33","1.34","1.35","1.36","1.37","1.38","1.39","1.4","1.40","1.41","1.42","1.43","1.44","1.44.1","1.45","1.46","1.46.1","1.47","1.48","1.49","1.5","1.50","1.51","1.52","1.53","1.54","1.54.1","1.54.2","1.54.3","1.54.4","1.55","1.56","1.57","1.57.1","1.57.2","1.57.3","1.57.4","1.57.5","1.57.6","1.58","1.59","1.6","1.60","1.60.1","1.61","1.62","1.63","1.63.1","1.64","1.65","1.66","1.66.1","1.66.2","1.66.3","1.66.4","1.66.5","1.67","1.68","1.69","1.7","1.70","1.71","1.72","1.73","1.74","1.75","1.76","1.77","1.78","1.78.1","1.8","1.9","1118.vba21ca2e3286","1125.v132f99385e1b_","1131.v8b_b_5eda_c328e","1138.v8e727069a_025","1140.vf967fb_efa_55a_","1145.1148.vf6d17a_a_a_eef6","1145.vb_cf6cf6ed960","1146.vdf547f19a_473","1158.v7c1b_73a_69a_08","1172.v35f6a_0b_8207e","1175.1177.vda_175b_77d144","1175.1179.vea_f7532629e1","1175.1180.v36a_3fb_2dec9c","1175.v4b_d517d6db_f0","1183.v774b_0b_0a_a_451","1184.v85d16b_d851b_3","1189.vb_a_b_7c8fd5fde"],"database_specific":{"last_known_affected_version_range":"\u003c= 1189.vb","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-fv42-mx39-6fpw/GHSA-fv42-mx39-6fpw.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"}]}