# CVE-2022-0272: Improper Restriction of XML External Entity Reference in detekt/detekt

- Severity: High 7.3 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- 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.44%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-21T16:20:10.000Z
- Modified: 2026-06-17T04:20:15.863Z
- Also known as: GHSA-2cfc-865j-gm4w
- Weaknesses: CWE-611
- Assigned by: @huntrdev

## Description

Improper Restriction of XML External Entity Reference in GitHub repository detekt/detekt prior to 1.20.0.

(As written by CVE List.)

## Affected

- detekt detekt/detekt: from unspecified before 1.20.0
- io.gitlab.arturbosch.detekt:detekt-core (Maven): before 1.20.0
- detekt detekt: before 1.20.0

## Every score

- @huntrdev: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- 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://huntr.dev/bounties/23e37ba7-96d5-4037-a90a-8c8f4a70ce44> (exploit, patch, third-party-advisory, web)
- <https://github.com/detekt/detekt/commit/c965a8d2a6bbdb9bcfc6acfa7bbffd3da81f5395> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0272> (advisory)
- <https://github.com/detekt/detekt> (package)

## Sources

- CVE List: [CVE-2022-0272](https://www.cve.org/CVERecord?id=CVE-2022-0272), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-2cfc-865j-gm4w](https://github.com/advisories/GHSA-2cfc-865j-gm4w), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-0272](https://nvd.nist.gov/vuln/detail/CVE-2022-0272), Public domain, modified 2026-06-17

---

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