# CVE-2022-31267: Unescaped control characters in Gitblit

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.81%, higher than 79% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-21T20:35:31.000Z
- Modified: 2026-06-17T04:45:15.603Z
- Also known as: GHSA-fh55-vwjc-69c7
- Weaknesses: CWE-269
- Assigned by: mitre

## Description

Gitblit 1.9.2 allows privilege escalation via the Config User Service: a control character can be placed in a profile data field, such as an emailAddress%3Atext 'attacker@example.com\n\trole = "#admin"' value.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- com.gitblit:gitblit (Maven): before 1.9.3
- gitblit gitblit: 1.9.2

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/gitblit/gitblit/issues/1410> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/gitblit/gitblit/releases/tag/v1.9.3> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31267> (advisory)
- <https://github.com/gitblit/gitblit/commit/9b4afad6f4be212474809533ec2c280cce86501a> (web)
- <https://github.com/gitblit/gitblit> (web)

## Sources

- CVE List: [CVE-2022-31267](https://www.cve.org/CVERecord?id=CVE-2022-31267), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-fh55-vwjc-69c7](https://github.com/advisories/GHSA-fh55-vwjc-69c7), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31267](https://nvd.nist.gov/vuln/detail/CVE-2022-31267), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31267 · Whole record: https://cve.day/CVE-2022-31267.json · Rebuilt by cve.day 2026-11-25T22:58:11.887Z
