{"id":"CVE-2021-21639","aliases":["CVE-2021-21639","GHSA-pvwx-3jx5-24r2","BIT-JENKINS-2021-21639"],"related":[],"kind":"vulnerability","state":"published","title":"Lack of type validation in agent related REST API in Jenkins","summary":"Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not validate the type of object created after loading the data submitted to the `config.xml` REST API endpoint of a node, allowing attackers with Computer/Configure permission to replace a node with one of a different type.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not validate the type of object created after loading the data submitted to the `config.xml` REST API endpoint of a node, allowing attackers with Computer/Configure permission to replace a node with one of a different type.","source":"cvelist"},{"lang":"en","text":"Jenkins 2.286 and earlier, LTS 2.277.1 and earlier does not validate the type of object created after loading the data submitted to the `config.xml` REST API endpoint of a node.\n\nThis allows attackers with Computer/Configure permission to replace a node with one of a different type.\n\nJenkins 2.287, LTS 2.277.2 validates the type of object created and rejects objects of unexpected types.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Jenkins versiones 2.286 y anteriores, LTS versiones 2.277.1 y anteriores,  no comprueba el tipo de objeto diseñado después de cargar los datos enviados al endpoint de la API REST \"config.xml\" de un nodo, permitiendo a atacantes con permiso Computer/Configure reemplazar un nodo con uno de un tipo diferente","source":"nvd"}],"published":"2021-04-07T13:50:13.000Z","modified":"2026-09-08T08:47:58.206Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","score":4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"2.286","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"LTS 2.277.1","status":"affected"}],"vendor":"Jenkins project","product":"Jenkins","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.277.2"}],"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.278","status":"affected","fixed":"2.287"}],"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.277.1"},{"status":"affected","lastAffected":"2.286"}],"vendor":"jenkins","product":"jenkins","cpe":"cpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.286.1"}],"ecosystem":"Bitnami","package":"jenkins","purl":"pkg:bitnami/jenkins","source":"bitnami"}],"references":[{"url":"https://www.jenkins.io/security/advisory/2021-04-07/#SECURITY-1721","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2021/04/07/2","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21639","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/jenkinsci/jenkins/commit/84210baed0c866bdee3e59271f98a767a14a5509","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/jenkins","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"jenkins","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21639","url":"https://www.cve.org/CVERecord?id=CVE-2021-21639","licence":"CVE Terms of Use","modified":"2024-08-03T18:16:23.927Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pvwx-3jx5-24r2","url":"https://github.com/advisories/GHSA-pvwx-3jx5-24r2","licence":"CC-BY-4.0","modified":"2024-02-16T08:06:14.423Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21639","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21639","licence":"Public domain","modified":"2026-06-17T03:35:55.010Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JENKINS-2021-21639","url":"https://osv.dev/vulnerability/BIT-JENKINS-2021-21639","licence":"Apache-2.0","modified":"2026-09-08T08:47:58.206Z"}],"updatedAt":"2026-11-25T22:58:00.661Z","epss":{"score":0.02725,"percentile":0.86461,"date":"2026-12-01T12:00:22.000Z"}}