The vulnerability is an information disclosure issue where the exact version of Directus is exposed in the OpenAPI specification. The provided commit e74f3e4e92edc33b5f83eefb001a3d2a85af17a3 directly addresses this. The patch modifies the api/src/services/specifications.ts file, specifically within the OASSpecsService class. The change replaces the use of the imported version variable with a hashedVersion in the info object of the OpenAPI specification. The method responsible for generating this specification is getOAS. Therefore, OASSpecsService.getOAS is the function that, in its vulnerable state, exposed the sensitive version information. An attacker could have used this information to target the system with known exploits for that specific version.