The software constructs an LDAP query, either partially or entirely, using input from an external source, but it fails to properly sanitize or incorrectly sanitizes special characters or elements that could alter the intended LDAP query when sent to a downstream component.