# CVE-2020-10797: An XSS vulnerability resides in the hostname field of the diagping.php page in pfsense before 2.4.5 version.

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- 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): 2.39%, higher than 84% of CVEs (2026-12-01)
- Published: 2020-04-29T13:29:52.000Z
- Modified: 2026-06-17T02:48:27.387Z
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

An XSS vulnerability resides in the hostname field of the diag_ping.php page in pfsense before 2.4.5 version. After passing inputs to the command and executing this command, the $result variable is not sanitized before it is printed.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- netgate pfsense: before 2.4.5

## Every score

- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://redmine.pfsense.org/issues/10355> (issue-tracking, third-party-advisory)
- <https://github.com/pfsense/pfsense/commit/cc3990a334059018b004c91eeb66c147d8afe83d> (patch, third-party-advisory)
- <https://docs.netgate.com/pfsense/en/latest/releases/2-4-5-new-features-and-changes.html> (release-notes, vendor-advisory)

## Sources

- CVE List: [CVE-2020-10797](https://www.cve.org/CVERecord?id=CVE-2020-10797), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-10797](https://nvd.nist.gov/vuln/detail/CVE-2020-10797), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-10797 · Whole record: https://cve.day/CVE-2020-10797.json · Rebuilt by cve.day 2026-11-25T22:57:52.222Z
