static int virtualHostDirective(MaState *state, cchar *key, cchar *value)
{
    state = maPushState(state);
    if (state->enabled) {
        /*
            Inherit the current default route configuration (only)
            Other routes are not inherited due to the reset routes below
         */
        state->route = httpCreateInheritedRoute(httpGetHostDefaultRoute(state->host));
        state->route->ssl = 0;
        state->auth = state->route->auth;
        state->host = httpCloneHost(state->host);
        httpResetRoutes(state->host);
        httpSetRouteHost(state->route, state->host);
        httpSetHostDefaultRoute(state->host, state->route);

        /* Set a default host and route name */
        if (value) {
            httpSetHostName(state->host, ssplit(sclone(value), " \t,", NULL));
            httpSetRouteName(state->route, sfmt("default-%s", state->host->name));
            /*
                Save the endpoints until the close of the VirtualHost to closeVirtualHostDirective can
                add the virtual host to the specified endpoints.
             */
            state->endpoints = sclone(value);
        }
    }
    return 0;
}
NVD is only using a subset of CWE for mapping instead of the entire CWE, and the weakness type is not covered by that subset.