{"id":"CVE-2026-44798","aliases":["CVE-2026-44798","GHSA-p3hx-pwf3-j8wr","PYSEC-2026-2228"],"related":[],"kind":"vulnerability","state":"published","title":"Nautobot: GitRepository.current_head field should not be writable through REST API","summary":"Nautobot is a Network Source of Truth and Network Automation Platform. Prior to 2.4.33 and 3.1.2, a user with access to add/change a GitRepository record could use the REST API to directly set the current_head field on the record, which was not intended to be user-editable. Doing so could cause Nautobot's local clone(s) of the relevant repository to checkout a commit other than the latest commit on the specified branch (resulting in misleading state), or potentially to be unable to make use of the repository at all (until manually remediated) due to the current_head pointing to a nonexistent commit hash or malformed value. This vulnerability is fixed in 2.4.33 and 3.1.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Nautobot is a Network Source of Truth and Network Automation Platform. Prior to 2.4.33 and 3.1.2, a user with access to add/change a GitRepository record could use the REST API to directly set the current_head field on the record, which was not intended to be user-editable. Doing so could cause Nautobot's local clone(s) of the relevant repository to checkout a commit other than the latest commit on the specified branch (resulting in misleading state), or potentially to be unable to make use of the repository at all (until manually remediated) due to the current_head pointing to a nonexistent commit hash or malformed value. This vulnerability is fixed in 2.4.33 and 3.1.2.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA user with access to add/change a GitRepository record could use the REST API to directly set the `current_head` field on the record, which was not intended to be user-editable. Doing so could cause Nautobot's local clone(s) of the relevant repository to checkout a commit other than the latest commit on the specified `branch` (resulting in misleading state), or potentially to be unable to make use of the repository at all (until manually remediated) due to the `current_head` pointing to a nonexistent commit hash or malformed value.\n\n### Patches\n\nThe issue has been remediated in Nautobot v2.4.33 and 3.1.2.\n\n\n### Workarounds\n\nNote that many of the same end-result symptoms could be caused by a user with the same level of access simply changing the `branch` or `remote_url` of a GitRepository rather than crafting the `current_head`. Administrators are encouraged to carefully review which users are granted permissions to create and modify GitRepository records.\n\n\n### References\n\n- 2.4.33 (<a href=\"https://github.com/nautobot/nautobot/commit/9deddfc91ad9260ad17b5e20084e9e2d15be3609\">patch</a>)\n- 3.1.2 (<a href=\"https://github.com/nautobot/nautobot/commit/c46f97040b2bde4320be36b23577f19a8bcbd8c3\">patch</a>)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Nautobot es una Fuente de Verdad de Red y Plataforma de Automatización de Red. Antes de las versiones 2.4.33 y 3.1.2, un usuario con acceso para añadir/modificar un registro de GitRepository podía usar la API REST para establecer directamente el campo current_head en el registro, el cual no estaba destinado a ser editable por el usuario. Hacer esto podría causar que el/los clon(es) local(es) de Nautobot del repositorio relevante hiciera checkout de un commit diferente al último commit en la rama especificada (resultando en un estado engañoso), o potencialmente que no pudiera usar el repositorio en absoluto (hasta que se remediara manualmente) debido a que el current_head apuntara a un hash de commit inexistente o a un valor malformado. Esta vulnerabilidad está corregida en las versiones 2.4.33 y 3.1.2.","source":"nvd"}],"published":"2026-05-13T15:31:04.000Z","modified":"2026-10-14T20:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H","score":7.1,"rating":"HIGH"},{"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:H","score":7.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-471","CWE-749"],"affected":[{"ranges":[{"version":">= 3.0.0a2, < 3.1.2","status":"affected"},{"version":"< 2.4.33","status":"affected"}],"vendor":"nautobot","product":"nautobot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0a2","status":"affected","fixed":"3.1.2"}],"ecosystem":"PyPI","package":"nautobot","purl":"pkg:pypi/nautobot","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.33"}],"ecosystem":"PyPI","package":"nautobot","purl":"pkg:pypi/nautobot","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.4.33"},{"status":"affected","introduced":"3.0.0","fixed":"3.1.2"}],"vendor":"networktocode","product":"nautobot","cpe":"cpe:2.3:a:networktocode:nautobot:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.33"},{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.1.2"}],"ecosystem":"PyPI","package":"nautobot","purl":"pkg:pypi/nautobot","source":"pysec"}],"references":[{"url":"https://github.com/nautobot/nautobot/security/advisories/GHSA-p3hx-pwf3-j8wr","tags":["fix","mitigation","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nautobot/nautobot/commit/9deddfc91ad9260ad17b5e20084e9e2d15be3609","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nautobot/nautobot/commit/c46f97040b2bde4320be36b23577f19a8bcbd8c3","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nautobot/nautobot/releases/tag/v2.4.33","tags":["advisory","product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nautobot/nautobot/releases/tag/v3.1.2","tags":["advisory","product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44798","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nautobot/nautobot","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-28T19:01:54.215Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44798","url":"https://www.cve.org/CVERecord?id=CVE-2026-44798","licence":"CVE Terms of Use","modified":"2026-05-28T19:02:15.222Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p3hx-pwf3-j8wr","url":"https://github.com/advisories/GHSA-p3hx-pwf3-j8wr","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:52.275Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44798","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44798","licence":"Public domain","modified":"2026-10-14T20:10:00.190Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2228","url":"https://osv.dev/vulnerability/PYSEC-2026-2228","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:37.413Z"}],"updatedAt":"2026-11-25T22:59:22.983Z","epss":{"score":0.00277,"percentile":0.21582,"date":"2026-12-01T12:00:22.000Z"}}