cve.bz

CVE-2020-22217 Out-of-bounds Read

5.9 mediumExploit referenceEPSS 1.0%Fix available

Medium (5.9). EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
Buffer overflow vulnerability in c-ares before 1_16_1 thru 1_17_0 via function ares_parse_soa_reply in ares_parse_soa_reply.c.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 63rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-10-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-22217 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-22217?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-22217?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-22217 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
c-ares:c-ares1.16.1
c-ares:c-ares1.17.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10c-ares1.14.0-1+deb10u4DLA-3567-1
Debian12, 13, 14c-ares1.17.1-1DEBIAN-CVE-2020-22217
Ubuntu20.04:LTSc-ares1.15.0-1ubuntu0.4UBUNTU-CVE-2020-22217 USN-6376-1
Ubuntu22.04:LTSc-ares1.18.1-1ubuntu0.22.04.4USN-8951-1
Ubuntu24.04:LTSc-ares1.27.0-1.0ubuntu1.1USN-8951-1
Ubuntu26.04:LTSc-ares1.34.6-1ubuntu0.2USN-8951-1
UbuntuPro:16.04:LTSc-ares1.10.0-3ubuntu0.2+esm4UBUNTU-CVE-2020-22217 USN-8951-1
UbuntuPro:18.04:LTSc-ares1.14.0-1ubuntu0.2+esm3UBUNTU-CVE-2020-22217 USN-8951-1
UbuntuPro:20.04:LTSc-ares1.15.0-1ubuntu0.5+esm1USN-8951-1
Red Hatenterprise_linux:8::baseosc-ares, c-ares-devel, c-ares-debuginfo and 1 more0:1.13.0-9.el8_9.1RHSA-2023:7207
Red Hatrhel_eus:8.6::baseosc-ares, c-ares-devel, c-ares-debuginfo and 1 more0:1.13.0-6.el8_6.3RHSA-2024:0419
Red Hatrhel_eus:8.8::baseosc-ares, c-ares-devel, c-ares-debuginfo and 1 more0:1.13.0-6.el8_8.4RHSA-2024:0578
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 and 1 morelibcares21.9.1-9.18.1SUSE-SU-2023:3690-1
AlmaLinux8c-ares, c-ares-devel1.13.0-9.el8_9.1ALSA-2023:7207
Rocky Linux8c-ares0:1.13.0-9.el8_9.1RLSA-2023:7207
Azure Linux2python-gevent21.1.2-1AZL-28597

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The attack vector for this flaw initiates from a malicious server (a SOA reply to a client query) which requires a attacker set up a server a make it to be queried by a victim through cache poisoning or MITM, raising the Attack Complexity to High.

This being a out of bounds reads does not bring a risk of memory corruption, which makes it of none impact to Integrity. Also the read limitis 2 bytes (16bit, unsigned short int) from the DNS_QUERY_TYPE MACRO[1] return and the read value would be ignored and not propagated anywhere since the subsequent check would also fail making the confidentiality impact as none.

[1] https://github.com/c-ares/c-ares/blob/4d4fb34075c90d8f2f9ff81890152ab60f65e48e/include/ares_dns.h#L95

[2] https://github.com/c-ares/c-ares/issues/333

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8c-ares-0:1.13.0-9.el8_9.1Fixed 2023-11-14RHSA-2023:7207
Red Hat Enterprise Linux 8.6 Extended Update Supportc-ares-0:1.13.0-6.el8_6.3Fixed 2024-01-25RHSA-2024:0419
Red Hat Enterprise Linux 8.8 Extended Update Supportc-ares-0:1.13.0-6.el8_8.4Fixed 2024-01-30RHSA-2024:0578
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ee-supported-rhel9Not affected
Red Hat Enterprise Linux 6c-aresOut of support scope
Red Hat Enterprise Linux 7c-aresOut of support scope
Red Hat Enterprise Linux 8nodejs:16/nodejsNot affected
Red Hat Enterprise Linux 8nodejs:18/nodejsNot affected
Red Hat Enterprise Linux 8nodejs:20/nodejsNot affected
Red Hat Enterprise Linux 9c-aresNot affected
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Enterprise Linux 9nodejs:18/nodejsNot affected
Red Hat Enterprise Linux 9nodejs:20/nodejsNot affected
Red Hat Software Collectionsrh-nodejs14-nodejsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-22217.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON