{"id":"CVE-2024-23899","aliases":["CVE-2024-23899","GHSA-vph5-2q33-7r9h"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary file read vulnerability in Git server Plugin can lead to RCE","summary":"Jenkins Git server Plugin 99.va_0826a_b_cdfa_d and earlier does not disable a feature of its command parser that replaces an '@' character followed by a file path in an argument with the file's contents, allowing attackers with Overall/Read permission to read content from arbitrary files on the Jenkins controller file system.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Jenkins Git server Plugin 99.va_0826a_b_cdfa_d and earlier does not disable a feature of its command parser that replaces an '@' character followed by a file path in an argument with the file's contents, allowing attackers with Overall/Read permission to read content from arbitrary files on the Jenkins controller file system.","source":"cvelist"},{"lang":"en","text":"Jenkins Git server Plugin uses the [args4j](https://github.com/kohsuke/args4j) library to parse command arguments and options on the Jenkins controller when processing Git commands received via SSH. This command parser has a feature that replaces an @ character followed by a file path in an argument with the file’s contents (`expandAtFiles`). This feature is enabled by default and Git server Plugin 99.va_0826a_b_cdfa_d and earlier does not disable it.\n\nThis allows attackers with Overall/Read permission to read the first two lines of arbitrary files on the Jenkins controller file system using the default character encoding of the Jenkins controller process.\n\nSee [SECURITY-3314](https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3314) for further information about the potential impact of being able to read files on the Jenkins controller, as well as the [limitations for reading binary files](https://www.jenkins.io/security/advisory/2024-01-24/#binary-files-note). Note that for this issue, unlike SECURITY-3314, attackers need Overall/Read permission.\n\n## Fix Description\nGit server Plugin 99.101.v720e86326c09 disables the command parser feature that replaces an @ character followed by a file path in an argument with the file’s contents for CLI commands.\n\n## Workaround\nNavigate to Manage Jenkins » Security and ensure that the SSHD Port setting in the SSH Server section is set to Disable. This disables access to Git repositories hosted by Jenkins (and the Jenkins CLI) via SSH.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El complemento del servidor Jenkins Git 99.va_0826a_b_cdfa_d y versiones anteriores no desactiva una función de su analizador de comandos que reemplaza un carácter '@' seguido de una ruta de archivo en un argumento con el contenido del archivo, permitiendo a atacantes con permiso general/lectura leer contenido de archivos arbitrarios en el sistema de archivos del controlador Jenkins.","source":"nvd"}],"published":"2024-01-24T17:52:24.131Z","modified":"2026-06-17T07:13:49.663Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"maven","introduced":"0","lastAffected":"99.va_0826a_b_cdfa_d","status":"affected"}],"vendor":"Jenkins Project","product":"Jenkins Git server Plugin","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"99.101.v720e86326c09"}],"ecosystem":"Maven","package":"org.jenkins-ci.plugins:git-server","purl":"pkg:maven/org.jenkins-ci.plugins/git-server","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"99.va_0826a_b_cdfa_d"}],"vendor":"jenkins","product":"git_server","cpe":"cpe:2.3:a:jenkins:git_server:*:*:*:*:*:jenkins:*:*","source":"nvd"}],"references":[{"url":"https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3319","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2024/01/24/6","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23899","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/git-server-plugin/commit/068ac7cc2574882ef9f5a486e001228a71d881ad","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/git-server-plugin","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"jenkins","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-01-25T15:28:24.036Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-23899","url":"https://www.cve.org/CVERecord?id=CVE-2024-23899","licence":"CVE Terms of Use","modified":"2025-06-04T14:34:33.599Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vph5-2q33-7r9h","url":"https://github.com/advisories/GHSA-vph5-2q33-7r9h","licence":"CC-BY-4.0","modified":"2025-06-04T23:04:58.532Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-23899","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23899","licence":"Public domain","modified":"2026-06-17T07:13:49.663Z"}],"updatedAt":"2026-11-25T22:58:36.325Z","epss":{"score":0.01262,"percentile":0.70474,"date":"2026-12-01T12:00:22.000Z"}}