CWE
79
Advisory Published
Updated

CVE-2021-43523: XSS

First published: Wed Nov 10 2021(Updated: )

In uClibc and uClibc-ng before 1.0.39, incorrect handling of special characters in domain names returned by DNS servers via gethostbyname, getaddrinfo, gethostbyaddr, and getnameinfo can lead to output of wrong hostnames (leading to domain hijacking) or injection into applications (leading to remote code execution, XSS, applications crashes, etc.). In other words, a validation step, which is expected in any stub resolver, does not occur.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Uclibc Uclibc<=0.9.33.2
Uclibc-ng Project Uclibc-ng<1.0.39
<=0.9.33.2
<1.0.39

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-43523?

    CVE-2021-43523 has been classified as a medium severity vulnerability.

  • How do I fix CVE-2021-43523?

    To fix CVE-2021-43523, you should upgrade uClibc and uClibc-ng to versions that are 1.0.39 or later.

  • What are the potential risks associated with CVE-2021-43523?

    The risks associated with CVE-2021-43523 include domain hijacking and potential remote code execution due to incorrect handling of domain names.

  • Which software versions are affected by CVE-2021-43523?

    CVE-2021-43523 affects uClibc versions up to and including 0.9.33.2 and uClibc-ng versions 1.0.39 and earlier.

  • What are the specific functions impacted by CVE-2021-43523?

    CVE-2021-43523 impacts the functions gethostbyname, getaddrinfo, gethostbyaddr, and getnameinfo in uClibc and uClibc-ng.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203