When re-using a connection, curl was doing case insensitive comparisons of username and password with the existing connections.
This means that if an unused connection with proper credentials exists for a protocol that has connection-scoped credentials, an attacker can cause that connection to be reused if s/he knows the case-insensitive version of the correct password.